summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtAboutWidget.h')
-rw-r--r--Swift/QtUI/QtAboutWidget.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/Swift/QtUI/QtAboutWidget.h b/Swift/QtUI/QtAboutWidget.h
index c8b0356..fb54c6e 100644
--- a/Swift/QtUI/QtAboutWidget.h
+++ b/Swift/QtUI/QtAboutWidget.h
@@ -6,20 +6,33 @@
#pragma once
+#include <boost/signals2/connection.hpp>
+
#include <QDialog>
+class QLabel;
+
namespace Swift {
+ class SettingsProvider;
+
class QtAboutWidget : public QDialog {
Q_OBJECT
public:
- QtAboutWidget();
+ QtAboutWidget(SettingsProvider* settings);
private slots:
void handleLicenseClicked();
void handleChangelogClicked();
+ void handleChangeUpdateChannelClicked();
private:
void openPlainTextWindow(const QString& path);
+ void updateUpdateInfoLabel();
+
+ private:
+ SettingsProvider* settingsProvider_;
+ QLabel* updateInfoLabel_ = nullptr;
+ boost::signals2::scoped_connection settingsChangedConnection_;
};
}