summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/widgets/tqmenubar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqmenubar.cpp')
-rw-r--r--tqtinterface/qt4/src/widgets/tqmenubar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqmenubar.cpp b/tqtinterface/qt4/src/widgets/tqmenubar.cpp
index aadb3ee..a0751f4 100644
--- a/tqtinterface/qt4/src/widgets/tqmenubar.cpp
+++ b/tqtinterface/qt4/src/widgets/tqmenubar.cpp
@@ -734,17 +734,17 @@ void TQMenuBar::openActPopup()
TQPoint pos = r.bottomLeft() + TQPoint(0,yoffset);
if( reverse ) {
pos = r.bottomRight() + TQPoint(0,yoffset);
- pos.rx() -= popup->tqsizeHint().width();
+ pos.rx() -= popup->sizeHint().width();
}
- int ph = popup->tqsizeHint().height();
+ int ph = popup->sizeHint().height();
pos = mapToGlobal(pos);
int sh = TQApplication::desktop()->height();
if ( defaultup || (pos.y() + ph > sh) ) {
TQPoint t = mapToGlobal( r.topLeft() );
if( reverse ) {
t = mapToGlobal( r.topRight() );
- t.rx() -= popup->tqsizeHint().width();
+ t.rx() -= popup->sizeHint().width();
}
t.ry() -= (TQCOORD)ph;
if ( !defaultup || t.y() >= 0 )
@@ -940,8 +940,8 @@ int TQMenuBar::calculateRects( int max_width )
if ( mi->widget()->parentWidget() != this ) {
mi->widget()->reparent( this, TQPoint(0,0) );
}
- w = mi->widget()->tqsizeHint().expandedTo( TQApplication::globalStrut() ).width()+2;
- h = mi->widget()->tqsizeHint().expandedTo( TQApplication::globalStrut() ).height()+2;
+ w = mi->widget()->sizeHint().expandedTo( TQApplication::globalStrut() ).width()+2;
+ h = mi->widget()->sizeHint().expandedTo( TQApplication::globalStrut() ).height()+2;
if ( i && separator < 0 )
separator = i;
} else if ( mi->pixmap() ) { // pixmap item
@@ -1031,7 +1031,7 @@ int TQMenuBar::calculateRects( int max_width )
irects[i].setHeight( max_item_height );
TQMenuItem *mi = mitems->at(i);
if ( mi->widget() ) {
- TQRect r ( TQPoint(0,0), mi->widget()->tqsizeHint() );
+ TQRect r ( TQPoint(0,0), mi->widget()->sizeHint() );
r.moveCenter( irects[i].center() );
mi->widget()->setGeometry( r );
if( mi->widget()->isHidden() )
@@ -1598,7 +1598,7 @@ void TQMenuBar::focusOutEvent( TQFocusEvent * )
\reimp
*/
-TQSize TQMenuBar::tqsizeHint() const
+TQSize TQMenuBar::sizeHint() const
{
int h = height();
if ( badSize )
@@ -1609,7 +1609,7 @@ TQSize TQMenuBar::tqsizeHint() const
s.setWidth( s.width() + irects[ i ].width() + 2 );
}
s.setHeight( h );
- return (tqstyle().tqsizeFromContents(TQStyle::CT_MenuBar, this, s.
+ return (tqstyle().sizeFromContents(TQStyle::CT_MenuBar, this, s.
expandedTo(TQApplication::globalStrut())));
}
@@ -1622,7 +1622,7 @@ TQSize TQMenuBar::tqminimumSize() const
#ifndef TQT_NO_TOOLBAR
TQToolBar *tb = ::tqqt_cast<TQToolBar*>(tqparent());
if ( tb )
- return tqsizeHint();
+ return sizeHint();
#endif
return TQFrame::tqminimumSize();
}