aboutsummaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-03 10:56:34 +0200
committerDanilo M. <danix@danix.xyz>2026-08-04 12:53:08 +0200
commitbd8a1ba4b259a9c8edb08c4d61c55696f695ae69 (patch)
tree68b9e42b3db653d268eb3c1e108d24221549d833 /src/mainwindow.cpp
parent2b31474c7cf104d0fdb4dfe2604a9010d3e098c0 (diff)
downloadqtmaildir-bd8a1ba4b259a9c8edb08c4d61c55696f695ae69.tar.gz
qtmaildir-bd8a1ba4b259a9c8edb08c4d61c55696f695ae69.zip
Add GPLv2-only license and per-file headers
Confirmed with the maintainer as v2-only rather than v2-or-later. LICENSE is the official text from gnu.org. Every file under src/ and tests/ carries the matching notice. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c24a48f..2a484fb 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1,3 +1,21 @@
+/*
+ * qtmaildir - a Qt6 mail client for notmuch-indexed Maildirs
+ * Copyright (C) 2026 Danilo M. <danix@danix.xyz>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
#include "mainwindow.h"
#include <QComboBox>
@@ -21,6 +39,7 @@
#include "mimeparser.h"
#include "notmuchworker.h"
#include "threadlistmodel.h"
+#include "version.h"
QStringList MainWindow::registeredActionNames()
{
@@ -184,7 +203,7 @@ void MainWindow::buildUi()
setCentralWidget(central);
resize(1200, 800);
- setWindowTitle(tr("qtmaildir"));
+ setWindowTitle(QStringLiteral("qtmaildir %1").arg(QTMAILDIR_VERSION));
}
void MainWindow::registerActions()