diff options
author | Sky <git@bunnies.cc> | 2014-04-11 02:59:30 +0100 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2014-04-11 02:59:30 +0100 |
commit | 1657313105804e3c0230ad39255684927e29625c (patch) | |
tree | ef38caf637fac021de6e76d4b1eded3da3641a96 | |
parent | 50d18a06d57ce1bb6b8cd77230ff8d79968aebb3 (diff) | |
download | MultiMC-1657313105804e3c0230ad39255684927e29625c.tar MultiMC-1657313105804e3c0230ad39255684927e29625c.tar.gz MultiMC-1657313105804e3c0230ad39255684927e29625c.tar.lz MultiMC-1657313105804e3c0230ad39255684927e29625c.tar.xz MultiMC-1657313105804e3c0230ad39255684927e29625c.zip |
Add Patreon button. Needs an icon (used I for now).
-rw-r--r-- | gui/MainWindow.cpp | 5 | ||||
-rw-r--r-- | gui/MainWindow.h | 2 | ||||
-rw-r--r-- | gui/MainWindow.ui | 17 |
3 files changed, 24 insertions, 0 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index 19c5c66f..dcb6d3b5 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -1015,6 +1015,11 @@ void MainWindow::on_actionReportBug_triggered() openWebPage(QUrl("https://github.com/MultiMC/MultiMC5/issues")); } +void MainWindow::on_actionPatreon_triggered() +{ + openWebPage(QUrl("http://www.patreon.com/multimc")); +} + void MainWindow::on_actionMoreNews_triggered() { openWebPage(QUrl("http://multimc.org/posts.html")); diff --git a/gui/MainWindow.h b/gui/MainWindow.h index 5ddfef7b..d610a87d 100644 --- a/gui/MainWindow.h +++ b/gui/MainWindow.h @@ -85,6 +85,8 @@ slots: void on_actionReportBug_triggered(); + void on_actionPatreon_triggered(); + void on_actionMoreNews_triggered(); void newsButtonClicked(); diff --git a/gui/MainWindow.ui b/gui/MainWindow.ui index 2bd8ec22..74b7a0f3 100644 --- a/gui/MainWindow.ui +++ b/gui/MainWindow.ui @@ -74,6 +74,7 @@ <addaction name="actionReportBug"/> <addaction name="actionAbout"/> <addaction name="separator"/> + <addaction name="actionPatreon"/> <addaction name="actionCAT"/> </widget> <widget class="QStatusBar" name="statusBar"/> @@ -268,6 +269,22 @@ <string>Open the bug tracker to report a bug with MultiMC.</string> </property> </action> + <action name="actionPatreon"> + <property name="icon"> + <iconset theme="about"> + <normaloff/> + </iconset> + </property> + <property name="text"> + <string>Support us on Patreon</string> + </property> + <property name="toolTip"> + <string>Open the MultiMC Patreon page.</string> + </property> + <property name="statusTip"> + <string>Open the MultiMC Patreon page.</string> + </property> + </action> <action name="actionMoreNews"> <property name="icon"> <iconset theme="news"> |