QTfrontend/ui/page/pageoptions.cpp
branch0.9.19
changeset 8924 13ac59499066
parent 8902 a94c074fd483
parent 8880 71ed64b18540
child 9048 c58a9829e1cc
equal deleted inserted replaced
8904:6ea838b8dcd5 8924:13ac59499066
   592             {
   592             {
   593                 QLocale loc(locs[i].replace(QRegExp("hedgewars_(.*)\\.qm"), "\\1"));
   593                 QLocale loc(locs[i].replace(QRegExp("hedgewars_(.*)\\.qm"), "\\1"));
   594                 CBLanguage->addItem(QLocale::languageToString(loc.language()) + " (" + QLocale::countryToString(loc.country()) + ")", loc.name());
   594                 CBLanguage->addItem(QLocale::languageToString(loc.language()) + " (" + QLocale::countryToString(loc.country()) + ")", loc.name());
   595             }
   595             }
   596 
   596 
       
   597             QLabel *restartNoticeLabel = new QLabel(groupMisc);
       
   598             restartNoticeLabel->setText(QLabel::tr("This setting will be effective at next restart."));
       
   599             groupMisc->layout()->addWidget(restartNoticeLabel, 1, 1);
       
   600 
       
   601 
   597             // Divider
   602             // Divider
   598 
   603 
   599             groupMisc->addDivider(); // row 1
   604             groupMisc->addDivider(); // row 1
   600 
   605 
   601             // Append date and time to record file name
   606             // Append date and time to record file name
   602 
   607 
   603             CBNameWithDate = new QCheckBox(groupMisc);
   608             CBNameWithDate = new QCheckBox(groupMisc);
   604             CBNameWithDate->setText(QCheckBox::tr("Append date and time to record file name"));
   609             CBNameWithDate->setText(QCheckBox::tr("Append date and time to record file name"));
   605             groupMisc->layout()->addWidget(CBNameWithDate, 2, 0, 1, 2);
   610             groupMisc->layout()->addWidget(CBNameWithDate, 3, 0, 1, 2);
   606 
   611 
   607             // Associate file extensions
   612             // Associate file extensions
   608 
   613 
   609             BtnAssociateFiles = new QPushButton(groupMisc);
   614             BtnAssociateFiles = new QPushButton(groupMisc);
   610             BtnAssociateFiles->setText(QPushButton::tr("Associate file extensions"));
   615             BtnAssociateFiles->setText(QPushButton::tr("Associate file extensions"));
   611             BtnAssociateFiles->setVisible(!custom_data && !custom_config);
   616             BtnAssociateFiles->setVisible(!custom_data && !custom_config);
   612             groupMisc->layout()->addWidget(BtnAssociateFiles, 3, 0, 1, 2);
   617             groupMisc->layout()->addWidget(BtnAssociateFiles, 4, 0, 1, 2);
   613         }
   618         }
   614 
   619 
   615 #ifdef __APPLE__
   620 #ifdef __APPLE__
   616 #ifdef SPARKLE_ENABLED
   621 #ifdef SPARKLE_ENABLED
   617         { // group: updates
   622         { // group: updates