Changeset 174 for trunk/src/widgets/qmenubar.cpp
- Timestamp:
- Nov 6, 2007, 11:27:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/widgets/qmenubar.cpp
r2 r174 295 295 int h = 2*motifBarVMargin + fm.height() + motifItemVMargin + 2*frameWidth() + 2*motifItemFrame; 296 296 297 if ( style().styleHint( QStyle::SH_GUIStyle ) == QStyle::PMStyle ) 298 h++; 299 297 300 setGeometry( 0, 0, width(), h ); 298 301 … … 483 486 void QMenuBar::languageChange() 484 487 { 485 menuContentsChanged(); 488 menuContentsChanged(); 486 489 } 487 490 … … 729 732 bool reverse = QApplication::reverseLayout(); 730 733 const int yoffset = 1; //(style().styleHint( QStyle::SH_GUIStyle ) == QStyle::WindowsStyle) ? 4 : 1; ### this breaks designer mainwindow editing 731 QPoint pos = r.bottomLeft() + QPoint(0,yoffset); 734 // Warp4style: popup menus are displaced by 4 735 const int xoffset = ( style().styleHint( QStyle::SH_GUIStyle ) == QStyle::PMStyle ) ? -4 : 0; 736 QPoint pos = r.bottomLeft() + QPoint( xoffset, yoffset ); 732 737 if( reverse ) { 733 pos = r.bottomRight() + QPoint( 0,yoffset);738 pos = r.bottomRight() + QPoint( -xoffset, yoffset ); 734 739 pos.rx() -= popup->sizeHint().width(); 735 740 } … … 913 918 x += 2; 914 919 y += 2; 920 } else if ( gs == PMStyle ) { 921 x += 4; 915 922 } 916 923 if ( reverse ) … … 976 983 x += motifBarHMargin; 977 984 y += motifBarVMargin; 985 } else if ( gs == PMStyle ) { 986 x += 5; 978 987 } 979 988 if ( reverse )
Note:
See TracChangeset
for help on using the changeset viewer.