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

void DCGuiApp::slotFileOptions (  )  [private, slot]

reset or set theme

Definition at line 1228 of file dcgui.cpp.

References DCOptions::GetValues(), SetTheme(), and DCOptions::SetValues().

Referenced by initActions(), initToolBar(), and ShowOptionsDialog().

{
      DCOptions * od;

      statusBar()->message(tr("Open options dialog..."));

      od = new DCOptions();

      od->SetValues();

      if ( QDialog::Accepted == od->exec() )
      {
            // move values to dcconfig
            od->GetValues();
            // save values
            g_pConfig->Save();
            // update connected servers
                g_pConnectionManager->SendMyInfoToConnectedServers();
      }

      delete od;

      /** reset or set theme */
      SetTheme();

      statusBar()->message(tr("Ready."));
}


Generated by  Doxygen 1.6.0   Back to index