source/MainGUI.cpp
/**
 * Configuration options which are only applied once after startup.
 */
Configuration options which are only applied once after startup.
Configuration options which are only applied once after startup .
void MainGUI::initConfigurations()
{
    Config* config = gproxy->getConfig();
    restoreGeometry(config->mainWindowGeometry());
    applyConfig();
}
void MainGUI :: initConfigurations ( ) { Config * config = gproxy -> getConfig ( ) ; restoreGeometry ( config -> mainWindowGeometry ( ) ) ; applyConfig ( ) ; }
Configuration options which are only applied once after startup.
Configuration options which are only applied once after startup .
//    QDesktopWidget* desktop = QApplication::desktop(); //    int screenWidth = desktop->width(); //    int screenHeight = desktop->height(); //    int appWidth = config->getInt("width"); //    int appHeight = config->getInt("height"); //    // Resize if possible. App would crash if the window size is too small. //    if (appWidth >= 500 && appHeight >= 200) //    { //        this->resize(appWidth, appHeight); //    } //    // Center the window. //    this->move((screenWidth - this->width()) / 2, (screenHeight - this->height()) / 2 - 50);