summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/widgets/tqpopupmenu.cpp')
-rw-r--r--tqtinterface/qt4/src/widgets/tqpopupmenu.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp
index d9a9f58..bbfdb60 100644
--- a/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp
+++ b/tqtinterface/qt4/src/widgets/tqpopupmenu.cpp
@@ -483,7 +483,7 @@ void TQPopupMenu::frameChanged()
you cannot rely on the popup menu's current size(). For
performance reasons, the popup adapts its size only when
necessary, so in many cases, the size before and after the show is
- different. Instead, use sizeHint(). It calculates the proper size
+ different. Instead, use tqsizeHint(). It calculates the proper size
depending on the menu's current contents.
*/
@@ -613,7 +613,7 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint )
register TQMenuItem *mi = NULL;
TQMenuItemListIt it(*mitems);
for(int tmp_y = 0; tmp_y < off_top && (mi=it.current()); ) {
- TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(0, itemHeight( mi )),
TQStyleOption(mi,maxPMWidth,0));
tmp_y += sz.height();
@@ -940,7 +940,7 @@ int TQPopupMenu::itemAtPos( const TQPoint &pos, bool ignoreSeparator ) const
}
int itemh = itemHeight( mi );
- sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(0, itemh),
TQStyleOption(mi,maxPMWidth));
sz = sz.expandedTo(TQSize(itemw, sz.height()));
@@ -999,7 +999,7 @@ TQRect TQPopupMenu::itemGeometry( int index )
}
int itemh = itemHeight( mi );
- sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(0, itemh),
TQStyleOption(mi,maxPMWidth));
sz = sz.expandedTo(TQSize(itemw, sz.height()));
@@ -1086,7 +1086,7 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize)
int itemHeight = TQPopupMenu::itemHeight( mi );
if ( mi->widget() ) {
- TQSize s( mi->widget()->sizeHint() );
+ TQSize s( mi->widget()->tqsizeHint() );
s = s.expandedTo( mi->widget()->tqminimumSize() );
mi->widget()->resize( s );
if ( s.width() > maxWidgetWidth )
@@ -1097,9 +1097,9 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize)
if ( mi->custom() ) {
if ( mi->custom()->fullSpan() ) {
maxWidgetWidth = TQMAX( maxWidgetWidth,
- mi->custom()->sizeHint().width() );
+ mi->custom()->tqsizeHint().width() );
} else {
- TQSize s ( mi->custom()->sizeHint() );
+ TQSize s ( mi->custom()->tqsizeHint() );
w += s.width();
}
}
@@ -1125,14 +1125,14 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize)
w += mi->pixmap()->width();
} else {
if ( mi->custom() ) {
- TQSize s ( mi->custom()->sizeHint() );
+ TQSize s ( mi->custom()->tqsizeHint() );
w += s.width();
} else {
w = itemHeight = 2;
}
}
- TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(w, itemHeight),
TQStyleOption(mi,maxPMWidth));
@@ -1202,7 +1202,7 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize)
int itemh = itemHeight( mi );
- sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(0, itemh), TQStyleOption(mi,maxPMWidth));
sz = sz.expandedTo(TQSize(itemw, sz.height()));
itemw = sz.width();
@@ -1439,7 +1439,7 @@ int TQPopupMenu::itemHeight( TQMenuItem *mi ) const
if ( mi->widget() )
return mi->widget()->height();
if ( mi->custom() && mi->custom()->fullSpan() )
- return mi->custom()->sizeHint().height();
+ return mi->custom()->tqsizeHint().height();
TQFontMetrics fm(fontMetrics());
int h = 0;
@@ -1454,7 +1454,7 @@ int TQPopupMenu::itemHeight( TQMenuItem *mi ) const
h = TQMAX(h, mi->iconSet()->pixmap( TQIconSet::Small,
TQIconSet::Normal ).height());
if ( mi->custom() )
- h = TQMAX(h, mi->custom()->sizeHint().height());
+ h = TQMAX(h, mi->custom()->tqsizeHint().height());
return h;
}
@@ -1536,7 +1536,7 @@ void TQPopupMenu::drawContents( TQPainter* p )
continue;
}
int itemh = itemHeight( mi );
- sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(0, itemh),
TQStyleOption(mi,maxPMWidth,0)
);
@@ -2157,7 +2157,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
for(int i = 0, y = ((d->scroll.scrollable & TQPopupMenuPrivate::Scroll::ScrollUp) ? sh : 0); it.current(); i++, ++it) {
if(i >= d->scroll.topScrollableIndex) {
int itemh = itemHeight(it.current());
- TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(0, itemh),
TQStyleOption(it.current(),maxPMWidth,0));
y += sz.height();
@@ -2235,7 +2235,7 @@ void TQPopupMenu::enabledChange( bool )
This functions returns the number of columns necessary.
- \sa sizeHint()
+ \sa tqsizeHint()
*/
int TQPopupMenu::columns() const
{
@@ -2278,7 +2278,7 @@ void TQPopupMenu::subScrollTimer() {
for(int i = 0, y = contentsRect().y() + sh; it.current(); i++, ++it) {
if(i >= d->scroll.topScrollableIndex) {
int itemh = itemHeight(it.current());
- TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh),
+ TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this, TQSize(0, itemh),
TQStyleOption(it.current(),maxPMWidth,0));
y += sz.height();
if(y > contentsRect().height() - sh) {
@@ -2328,7 +2328,7 @@ void TQPopupMenu::subMenuTimer() {
TQRect r( itemGeometry( actItem ) );
TQPoint p;
- TQSize ps = popup->sizeHint();
+ TQSize ps = popup->tqsizeHint();
if( TQApplication::reverseLayout() ) {
p = TQPoint( r.left() + motifArrowHMargin - ps.width(), r.top() + motifArrowVMargin );
p = mapToGlobal( p );
@@ -2440,10 +2440,10 @@ void TQPopupMenu::updateRow( int row )
you cannot rely on the popup menu's current size(). For
performance reasons, the popup adapts its size only when
necessary. So in many cases, the size before and after the show is
- different. Instead, use sizeHint(). It calculates the proper size
+ different. Instead, use tqsizeHint(). It calculates the proper size
depending on the menu's current contents.
- \sa popup(), sizeHint()
+ \sa popup(), tqsizeHint()
*/
int TQPopupMenu::exec( const TQPoint & pos, int indexAtPoint )
@@ -2564,11 +2564,11 @@ void TQPopupMenu::setActiveItem( int i )
/*!
\reimp
*/
-TQSize TQPopupMenu::sizeHint() const
+TQSize TQPopupMenu::tqsizeHint() const
{
constPolish();
TQPopupMenu* that = (TQPopupMenu*) this;
- //We do not need a resize here, just the sizeHint..
+ //We do not need a resize here, just the tqsizeHint..
return that->updateSize(FALSE, FALSE).expandedTo( TQApplication::globalStrut() );
}
@@ -2674,7 +2674,7 @@ public:
return TRUE;
}
- TQSize sizeHint()
+ TQSize tqsizeHint()
{
return TQSize( 20, 6 );
}
@@ -2834,7 +2834,7 @@ TQPopupMenu::updateScrollerState()
while ( (mi=it.current()) ) {
++it;
int myheight = contentsRect().height();
- TQSize sz = tqstyle().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
+ TQSize sz = tqstyle().tqsizeFromContents(TQStyle::CT_PopupMenuItem, this,
TQSize(0, itemHeight( mi )),
TQStyleOption(mi,maxPMWidth));
if(y + sz.height() >= myheight) {