Changeset 052d1b9331 in tspsg
- Timestamp:
- Oct 13, 2007, 2:26:06 PM (17 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- f99964aa0b
- Parents:
- 5515c2c2a7
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main.cpp
r5515c2c2a7 r052d1b9331 29 29 QLocale *qlocale = &QLocale::system(); 30 30 QTranslator translator; 31 // Getting current locale languge name and trying to load it 31 32 if (translator.load(qlocale->languageToString(qlocale->language()),"i18n")) 33 app.installTranslator(&translator); 34 // If language loading failed and locale language is not 35 // application's "native" we're trying to load English 36 else if (qlocale->languageToString(qlocale->language()).compare("Russian") && translator.load("English","i18n")) 32 37 app.installTranslator(&translator);//*/ 33 38 -
src/mainwindow.cpp
r5515c2c2a7 r052d1b9331 22 22 #include "mainwindow.h" 23 23 24 // TODO: Saving window state on close 25 24 26 MainWindow::MainWindow(QWidget *parent) 25 27 : QMainWindow(parent) … … 27 29 setupUi(this); 28 30 connect(actionSettingsSettings,SIGNAL(triggered()),this,SLOT(ChangeSettings())); 31 // Centering MainWindow 32 // TODO: Loading of saved window state 33 QRect rect = geometry(); 34 rect.moveCenter(QApplication::desktop()->screenGeometry(QApplication::desktop()->primaryScreen()).center()); 35 setGeometry(rect); 36 29 37 } 30 38
Note: See TracChangeset
for help on using the changeset viewer.