diff --git a/client/build-number/build_number.h b/client/build-number/build_number.h
index 52fe12f..a0f2ae3 100644
--- a/client/build-number/build_number.h
+++ b/client/build-number/build_number.h
@@ -1,2 +1,2 @@
// Auto generated file ! Please do not edit !
-#define APP_BUILD_NUMBER 170
\ No newline at end of file
+#define APP_BUILD_NUMBER 177
\ No newline at end of file
diff --git a/client/mainwindow.cpp b/client/mainwindow.cpp
index d2c256f..4752889 100644
--- a/client/mainwindow.cpp
+++ b/client/mainwindow.cpp
@@ -264,6 +264,9 @@ void MainWindow::initClient()
mTimeFrameHeight = 64;//ui->mTimeFrame->height();
ui->mStartRecentTaskMenu->setEnabled(false);
+ // connect(ui->mIncreaseLevelAction, SIGNAL(triggered()), this, SLOT(onIncreaseFontSize()));
+ // connect(ui->mDecreaseLevelAction, SIGNAL(triggered()), this, SLOT(onDecreaseFontSize()));
+
buildOpenOrCreateView();
buildPasswordView();
}
@@ -1724,3 +1727,15 @@ void MainWindow::showFatal(const QString& message)
std::cerr << message.toStdString() << std::endl;
exit(EXIT_FAILURE);
}
+
+void MainWindow::onIncreaseFontSize()
+{
+ QFont f = QApplication::font("QWidget");
+ f.setPixelSize(f.pixelSize() + 1);
+ QApplication::setFont(f, "QWidget");
+}
+
+void MainWindow::onDecreaseFontSize()
+{
+
+}
diff --git a/client/mainwindow.h b/client/mainwindow.h
index 6cbb324..f943d72 100644
--- a/client/mainwindow.h
+++ b/client/mainwindow.h
@@ -235,6 +235,9 @@ public slots:
void onDbPasswordCancelled();
void onNewDbPasswordEntered(const QString& password);
void onDatabaseChanged(const QString& path);
+
+ void onIncreaseFontSize();
+ void onDecreaseFontSize();
};
#endif // MAINWINDOW_H
diff --git a/client/mainwindow.ui b/client/mainwindow.ui
index a3c8d6b..358541b 100644
--- a/client/mainwindow.ui
+++ b/client/mainwindow.ui
@@ -7,7 +7,7 @@
0
0
1206
- 522
+ 630
@@ -734,6 +734,28 @@
Ctrl+Shift+Down
+
+
+ Increase font size
+
+
+ Increase font size
+
+
+ Ctrl+=
+
+
+
+
+ Decrease font size
+
+
+ Decrease font size
+
+
+ Ctrl+-
+
+
@@ -1296,6 +1318,38 @@
+
+ mIncreaseFontSizeAction
+ triggered()
+ MainWindow
+ onIncreaseFontSize()
+
+
+ -1
+ -1
+
+
+ 602
+ 314
+
+
+
+
+ mDecreaseFontSize
+ triggered()
+ MainWindow
+ onDecreaseFontSize()
+
+
+ -1
+ -1
+
+
+ 602
+ 314
+
+
+
save()
@@ -1334,5 +1388,7 @@
newSibling()
moveUp()
moveDown()
+ onIncreaseFontSize()
+ onDecreaseFontSize()