Changeset 052d1b9331 in tspsg for src/mainwindow.cpp


Ignore:
Timestamp:
Oct 13, 2007, 2:26:06 PM (17 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
f99964aa0b
Parents:
5515c2c2a7
Message:

Load English language as default if locale language not available
Center Main Window at application start
Some svn:ignore's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    r5515c2c2a7 r052d1b9331  
    2222#include "mainwindow.h"
    2323
     24// TODO: Saving window state on close
     25
    2426MainWindow::MainWindow(QWidget *parent)
    2527        : QMainWindow(parent)
     
    2729        setupUi(this);
    2830        connect(actionSettingsSettings,SIGNAL(triggered()),this,SLOT(ChangeSettings()));
     31        // Centering MainWindow
     32        // TODO: Loading of saved window state
     33QRect rect = geometry();
     34    rect.moveCenter(QApplication::desktop()->screenGeometry(QApplication::desktop()->primaryScreen()).center());
     35        setGeometry(rect);
     36
    2937}
    3038
Note: See TracChangeset for help on using the changeset viewer.