Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCGuiApp::showMDIWidget ( QWidget *  widget  )  [private]

show/hide mdi widget

Definition at line 1779 of file dcgui.cpp.

References pWorkspace.

Referenced by slotActionHubSearch(), slotActionServerList(), slotActionSpy(), slotActionUpdateManager(), and slotActionUsers().

{
      if ( widget != 0 )
      {
            if ( widget->isMinimized() )
            {
                  widget->setEnabled(TRUE);
                  widget->showNormal();
            }
            else if ( widget->isVisible() )
            {
                  if ( pWorkspace->activeWindow() == widget )
                  {
                        widget->setEnabled(FALSE);
                        widget->hide();
                  }
                  else
                  {
                        widget->setEnabled(TRUE);
                        widget->setFocus();
                  }
            }
            else if ( widget->isMaximized() )
            {
                  widget->setEnabled(TRUE);
                  widget->showMaximized();
            }
            else
            {
                  widget->setEnabled(TRUE);
                  widget->show();
            }
      }
}


Generated by  Doxygen 1.6.0   Back to index