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

void main_windows::restoreWindowSize (  )  [private]

restore window size

See also:
saveWindowSize
On startup, restore windows size.

Definition at line 164 of file main_windows.cpp.

{
      debugQt("main_windows::restoreWindowSize()");
      QSettings settings(QSettings::UserScope,"adella.org", "qtsmbstatus");
      settings.beginGroup("/MainWindow");
            settings.beginGroup("/Geometry");
                  QRect rec= this->geometry ();
                  int left=settings.value( "left",20 ).toInt();
                  int top=settings.value( "top", 20 ).toInt();
                  int width=settings.value( "width",300 ).toInt();
                  int height=settings.value( "height", 600 ).toInt();
            settings.endGroup();
      settings.endGroup();
      this->setGeometry(QRect( left, top, width, height ));
}


Generated by  Doxygen 1.6.0   Back to index