Klaas Freitag 14 лет назад
Родитель
Сommit
37d6fb6022
2 измененных файлов с 20 добавлено и 2 удалено
  1. 2 2
      src/mirall/statusdialog.cpp
  2. 18 0
      src/mirall/version.h

+ 2 - 2
src/mirall/statusdialog.cpp

@@ -17,7 +17,7 @@
 
 #include "statusdialog.h"
 #include "folder.h"
-
+#include "version.h"
 
 namespace Mirall {
 FolderViewDelegate::FolderViewDelegate()
@@ -107,7 +107,7 @@ StatusDialog::StatusDialog(QWidget *parent) :
     QDialog(parent)
 {
   setupUi( this  );
-  setWindowTitle( tr("Mirall Status") );
+  setWindowTitle( tr("Mirall %1").arg( VERSION_STRING ) );
 
   _model = new QStandardItemModel();
   FolderViewDelegate *delegate = new FolderViewDelegate();

+ 18 - 0
src/mirall/version.h

@@ -0,0 +1,18 @@
+/*
+ * Copyright (C) by Klaas Freitag <freitag@kde.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ */#ifndef VERSION_H
+#define VERSION_H
+
+#define VERSION_STRING "0.1.1"
+
+#endif // VERSION_H