#21 Remember window size/position
This commit is contained in:
@@ -22,6 +22,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
QSettings s;
|
||||||
|
restoreGeometry(s.value("geometry").toByteArray());
|
||||||
|
|
||||||
// Status Bar
|
// Status Bar
|
||||||
setupStatusBar();
|
setupStatusBar();
|
||||||
|
|
||||||
@@ -68,6 +71,12 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
rpc->refresh(true); // Force refresh first time
|
rpc->refresh(true); // Force refresh first time
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::closeEvent(QCloseEvent* event) {
|
||||||
|
QSettings s;
|
||||||
|
s.setValue("geometry", saveGeometry());
|
||||||
|
QWidget::closeEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::turnstileProgress() {
|
void MainWindow::turnstileProgress() {
|
||||||
Ui_TurnstileProgress progress;
|
Ui_TurnstileProgress progress;
|
||||||
QDialog d(this);
|
QDialog d(this);
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ public:
|
|||||||
QLabel* loadingLabel;
|
QLabel* loadingLabel;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void closeEvent(QCloseEvent* event);
|
||||||
|
|
||||||
void setupSendTab();
|
void setupSendTab();
|
||||||
void setupTransactionsTab();
|
void setupTransactionsTab();
|
||||||
void setupRecieveTab();
|
void setupRecieveTab();
|
||||||
|
|||||||
Reference in New Issue
Block a user