summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-03-16 17:52:01 -0400
committerLouie S <louie@example.com>2024-03-16 17:52:01 -0400
commit3a9b931e6a8c5d21fb776791cbfaad4bcdb8cc56 (patch)
tree8e89cbe0c0131a8e5d7e466ba4034bcd4b3dfc33 /src
parent84137fe7739f14c9dc5697105cf1ae2af4271b4e (diff)
Tidy up about page
Diffstat (limited to 'src')
-rw-r--r--src/assignmentList.cpp7
-rw-r--r--src/assignmentList.ui8
-rw-r--r--src/icon/assignment-list.diabin0 -> 1426 bytes
3 files changed, 13 insertions, 2 deletions
diff --git a/src/assignmentList.cpp b/src/assignmentList.cpp
index abd2bda..8d041e4 100644
--- a/src/assignmentList.cpp
+++ b/src/assignmentList.cpp
@@ -14,6 +14,7 @@
#include <QDebug>
#include <QErrorMessage>
+#include "../config.h"
#include "addGroupForm.h"
#include "assignmentList.h"
#include "backend/db_sqlite.h"
@@ -140,5 +141,9 @@ void AssignmentList::cleanHidden() {
void AssignmentList::aboutDialog() {
QMessageBox about;
- about.about(this, "About Assignment List", "Created by Louie S. - 2023");
+ QString title("About " + QString(PROJECT_TITLE));
+ QString text(
+ QString(PROJECT_TITLE) + " " + QString(VERSION) + "\n" +
+ "Created by Louie S. - 2024");
+ about.about(this, title, text);
}
diff --git a/src/assignmentList.ui b/src/assignmentList.ui
index bc3c0fb..60c66da 100644
--- a/src/assignmentList.ui
+++ b/src/assignmentList.ui
@@ -13,6 +13,10 @@
<property name="windowTitle">
<string>Assignment List</string>
</property>
+ <property name="windowIcon">
+ <iconset resource="../resources.qrc">
+ <normaloff>:/data/assignment-list.svg</normaloff>:/data/assignment-list.svg</iconset>
+ </property>
<widget class="QWidget" name="centralwidget">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
@@ -202,6 +206,8 @@
</property>
</action>
</widget>
- <resources/>
+ <resources>
+ <include location="../resources.qrc"/>
+ </resources>
<connections/>
</ui>
diff --git a/src/icon/assignment-list.dia b/src/icon/assignment-list.dia
new file mode 100644
index 0000000..91404e1
--- /dev/null
+++ b/src/icon/assignment-list.dia
Binary files differ