-rw-r--r-- | korganizer/mainwindow.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 95bef66..87cef20 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -187,14 +187,17 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : } filterToolBar = new QPEToolBar ( this ); - filterMenubar = new QPEMenuBar( filterToolBar ); + filterMenubar = new QMenuBar( filterToolBar ); QFontMetrics fm ( filterMenubar->font() ); filterPopupMenu = new QPopupMenu( this ); filterMenubar->insertItem( i18n("No Filter"), filterPopupMenu,0 ); - QString addTest = "Ax"; + QString addTest = "A"; + filterMenubar->setMinimumWidth( fm.width( i18n("No Filter")+addTest ) ); #ifdef DESKTOP_VERSION - addTest = "AAAx"; -#endif - filterMenubar->setFixedWidth( fm.width( i18n("No Filter")+addTest ) ); + addTest = "AAABBBCCCx"; +#else + addTest = "AAx"; +#endif + filterMenubar->setMaximumWidth( fm.width( i18n("No Filter")+addTest ) ); addToolBar (filterToolBar , tbd ); connect ( filterPopupMenu , SIGNAL( activated ( int ) ), this, SLOT (selectFilterPopup( int ) ) ); |