summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtAboutWidget.h')
-rw-r--r--Swift/QtUI/QtAboutWidget.h33
1 files changed, 25 insertions, 8 deletions
diff --git a/Swift/QtUI/QtAboutWidget.h b/Swift/QtUI/QtAboutWidget.h
index d09010b..fb54c6e 100644
--- a/Swift/QtUI/QtAboutWidget.h
+++ b/Swift/QtUI/QtAboutWidget.h
@@ -1,21 +1,38 @@
/*
- * Copyright (c) 2010 Isode Limited.
+ * Copyright (c) 2010-2016 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#pragma once
+#include <boost/signals2/connection.hpp>
+
#include <QDialog>
+class QLabel;
+
namespace Swift {
- class QtAboutWidget : public QDialog {
- Q_OBJECT
+ class SettingsProvider;
+
+ class QtAboutWidget : public QDialog {
+ Q_OBJECT
+
+ public:
+ QtAboutWidget(SettingsProvider* settings);
+
+ private slots:
+ void handleLicenseClicked();
+ void handleChangelogClicked();
+ void handleChangeUpdateChannelClicked();
- public:
- QtAboutWidget();
+ private:
+ void openPlainTextWindow(const QString& path);
+ void updateUpdateInfoLabel();
- private slots:
- void handleLicenseClicked();
- };
+ private:
+ SettingsProvider* settingsProvider_;
+ QLabel* updateInfoLabel_ = nullptr;
+ boost::signals2::scoped_connection settingsChangedConnection_;
+ };
}