Guest User

Untitled

a guest
Apr 21st, 2015
240
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. connect(showMenu, SIGNAL(triggered()), this, SLOT(menuToggled()));
  2.  
  3. void MainWindow::menuToggled()
  4. {
  5.     bool toggled = true;
  6.     if(toggled)
  7.     {
  8.         container->setCurrentWidget(menuWidget);
  9.         toggled = false;
  10.     }
  11.     else if(toggled == false)
  12.     {
  13.         container->setCurrentWidget(mdiContainer);
  14.         toggled = true;
  15.     }
  16. }
RAW Paste Data