set all menu bars to non-native
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 19 Feb 2011 20:49:33 +0000 (20:49 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 19 Feb 2011 20:49:33 +0000 (20:49 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@729 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/dialogs/configdialog.cpp
src/dialogs/login.cpp
src/dialogs/orderwin.cpp
src/mwin/aclwin.cpp
src/mwin/carttab.cpp
src/mwin/entrancetab.cpp
src/mwin/eventstab.cpp
src/mwin/overview.cpp
src/mwin/tabwin.cpp
src/templates/ticketedit.cpp

index 2b54711..4c60af5 100644 (file)
@@ -57,6 +57,7 @@ MConfigDialog::MConfigDialog()
        //create Menu Bar
        QMenuBar*mb;
        hl->setMenuBar(mb=new QMenuBar);
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu(tr("&Profile"));
        m->addAction(tr("&New Profile..."),this,SLOT(newProfile()));
        m->addAction(tr("&Delete Profile"),this,SLOT(deleteProfile()));
index f389c51..c31e5b8 100644 (file)
@@ -39,6 +39,7 @@ MLogin::MLogin()
        //create Menu Bar
        QMenuBar*mb;
        vl->setMenuBar(mb=new QMenuBar);
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu(tr("&File"));
        m->addAction(tr("&Exit"),this,SLOT(close()));
        m=mb->addMenu(tr("&Configure"));
index c71f9d9..64fc160 100644 (file)
@@ -86,6 +86,7 @@ MOrderWindow::MOrderWindow(QWidget*par,const MOOrder&o)
        m_changed=false;
        
        QMenuBar*mb=menuBar();
+       mb->setNativeMenuBar(false);
        QMenu *m=mb->addMenu(tr("&Order"));
        m_res2order=m->addAction(tr("&Order..."),this,SLOT(createOrder()));
        m_cancel=m->addAction(tr("C&ancel Order..."),this,SLOT(cancelOrder()));
index af15d0b..f3fe337 100644 (file)
@@ -52,6 +52,7 @@ MAclWindow::MAclWindow(QWidget*par)
 
        //menu
        QMenuBar*mb=menuBar();
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu(tr("&Window"));
        m->addAction(tr("&Close"),this,SLOT(close()));
        
index da74017..943d412 100644 (file)
@@ -137,6 +137,7 @@ MCartTab::MCartTab(QString pk)
 QMenuBar*MCartTab::menu()
 {
        QMenuBar*mb=new QMenuBar;
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu(tr("Ca&rt"));
        m->addAction(tr("Add &Ticket"),this,SLOT(cartAddTicket()));
        m->addAction(tr("Add &Voucher"),this,SLOT(cartAddVoucher()));
index c56909f..1421928 100644 (file)
@@ -88,6 +88,7 @@ MEntranceTab::MEntranceTab(QString pk)
 QMenuBar* MEntranceTab::menu() const
 {
        QMenuBar *mb=new QMenuBar;
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu("&Entrance");
        m->addAction("&Configure...",this,SLOT(configure()));
        m->addAction("&Recheck events",this,SLOT(initialize()));
index 2c747f2..e6e9b7b 100644 (file)
@@ -87,6 +87,7 @@ QMenuBar*MEventsTab::menu()
 {
        //menu
        QMenuBar*mb=new QMenuBar;
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu(tr("&Event"));
        m->addAction(tr("&Update Event List"),this,SLOT(updateEvents()))
         ->setEnabled(req->hasRight(req->RGetAllEvents));
index 971807f..d6b4531 100644 (file)
@@ -74,6 +74,7 @@ MOverview::MOverview(QString pk)
        
        //menu
        QMenuBar*mb=menuBar();
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu(tr("&Session"));
        m->addAction(tr("&Re-Login"),this,SLOT(relogin()));
        m->addAction(tr("Change my &Password"),this,SLOT(setMyPassword()))
index 64c72ea..fb92e41 100644 (file)
@@ -69,6 +69,7 @@ MTabWin::MTabWin(QString pk,QWidget*parent)
        hl->setMargin(0);
        hl->setContentsMargins(0,0,0,0);
        hl->addWidget(leftmenu=new QMenuBar,0);
+       leftmenu->setNativeMenuBar(false);
        QFrame*frm;
        hl->addWidget(frm=new QFrame,0);
        frm->setFrameStyle(QFrame::VLine|QFrame::Sunken);
@@ -77,6 +78,7 @@ MTabWin::MTabWin(QString pk,QWidget*parent)
        hl->addWidget(frm=new QFrame,0);
        frm->setFrameStyle(QFrame::VLine|QFrame::Sunken);
        hl->addWidget(rightmenu=new QMenuBar,0);
+       rightmenu->setNativeMenuBar(false);
        
        rightmenu->addMenu(helpmenu=MApplication::helpMenu());
        
index bb655f3..eacee75 100644 (file)
@@ -164,6 +164,7 @@ MTicketEditor::MTicketEditor(QWidget* parent, Qt::WindowFlags f): QMainWindow(pa
 {
        //menu
        QMenuBar*mb=menuBar();
+       mb->setNativeMenuBar(false);
        QMenu*m=mb->addMenu(tr("&File"));
        m->addAction(tr("&Open File..."),this,SLOT(openFile()))
         ->setShortcut(QKeySequence(Qt::Key_Control|Qt::Key_O));