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

void main_windows::saveWindowSize (  )  [private]

save window size

See also:
restoreWindowSize
Before quit, save window size

Definition at line 186 of file main_windows.cpp.

Referenced by closeEvent().

{
      debugQt("main_windows::saveWindowSize()");
      QSettings settings(QSettings::UserScope,"adella.org", "qtsmbstatus");
      settings.beginGroup("/MainWindow");
            settings.beginGroup("/Geometry");
                  QRect rec= this->geometry ();
                  settings.setValue( "left", rec.left () );
                  settings.setValue( "top", rec.top () );
                  settings.setValue( "width", rec.width () );
                  settings.setValue( "height", rec.height () );
            settings.endGroup();
      settings.endGroup();
}


Generated by  Doxygen 1.6.0   Back to index