Rename tqsizeHint* to sizeHint*

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1241971 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 4f2f95ce18
commit 73cc29bc4e

@ -140,7 +140,7 @@ TopLevel::TopLevel( const char *name )
new KAction( i18n( "Configure &Style..." ), "colorize", 0, TQT_TQOBJECT(this),
TQT_SLOT( editStyle() ), actionCollection(), "configure_style" );
// TODO remove resize and fix so tqsizeHints() determines default size.
// TODO remove resize and fix so sizeHints() determines default size.
if (!initialGeometrySet())
resize( 640, 480 );
setupGUI(ToolBar | Keys | StatusBar | Create);

@ -21,7 +21,7 @@ GeometryTip::GeometryTip( const XSizeHints* xSizeHints, bool save_under ):
setLineWidth(1);
setFrameStyle( TQFrame::Raised | TQFrame::StyledPanel );
tqsetAlignment( AlignCenter | AlignTop );
tqsizeHints = xSizeHints;
sizeHints = xSizeHints;
if( save_under )
{
XSetWindowAttributes attr;
@ -39,12 +39,12 @@ void GeometryTip::setGeometry( const TQRect& geom )
int w = geom.width();
int h = geom.height();
if (tqsizeHints)
if (sizeHints)
{
if (tqsizeHints->flags & PResizeInc)
if (sizeHints->flags & PResizeInc)
{
w = ( w - tqsizeHints->base_width ) / tqsizeHints->width_inc;
h = ( h - tqsizeHints->base_height ) / tqsizeHints->height_inc;
w = ( w - sizeHints->base_width ) / sizeHints->width_inc;
h = ( h - sizeHints->base_height ) / sizeHints->height_inc;
}
}

@ -26,7 +26,7 @@ class GeometryTip: public TQLabel
void setGeometry( const TQRect& geom );
private:
const XSizeHints* tqsizeHints;
const XSizeHints* sizeHints;
};
} // namespace

Loading…
Cancel
Save