diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-15 23:02:21 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-28 22:47:02 +0200 |
commit | 00994a425e0ea83b15e160e62486329d2c8c41d9 (patch) | |
tree | f554be41a877dc318076bf6f65f540cb3689c192 /application/MainWindow.cpp | |
parent | ccb5fc6f4ab09fac602f268f36d077a42aaef1bd (diff) | |
download | MultiMC-00994a425e0ea83b15e160e62486329d2c8c41d9.tar MultiMC-00994a425e0ea83b15e160e62486329d2c8c41d9.tar.gz MultiMC-00994a425e0ea83b15e160e62486329d2c8c41d9.tar.lz MultiMC-00994a425e0ea83b15e160e62486329d2c8c41d9.tar.xz MultiMC-00994a425e0ea83b15e160e62486329d2c8c41d9.zip |
GH-1238 add reddit button
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index a3a62f30..ecf0f371 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -56,6 +56,7 @@ public: QAction *actionDeleteInstance; QAction *actionConfig_Folder; QAction *actionCAT; + QAction *actionREDDIT; QAction *actionCopyInstance; QAction *actionManageAccounts; QAction *actionLaunchInstanceOffline; @@ -134,6 +135,9 @@ public: actionCAT->setObjectName(QStringLiteral("actionCAT")); actionCAT->setCheckable(true); actionCAT->setIcon(MMC->getThemedIcon("cat")); + actionREDDIT = new QAction(MainWindow); + actionREDDIT->setObjectName(QStringLiteral("actionREDDIT")); + actionREDDIT->setIcon(MMC->getThemedIcon("reddit-alien")); actionCopyInstance = new QAction(MainWindow); actionCopyInstance->setObjectName(QStringLiteral("actionCopyInstance")); actionCopyInstance->setIcon(MMC->getThemedIcon("copy")); @@ -197,6 +201,7 @@ public: mainToolBar->addAction(actionAbout); mainToolBar->addSeparator(); mainToolBar->addAction(actionPatreon); + mainToolBar->addAction(actionREDDIT); mainToolBar->addAction(actionCAT); instanceToolBar->addAction(actionChangeInstIcon); instanceToolBar->addAction(actionLaunchInstance); @@ -283,6 +288,8 @@ public: actionConfig_Folder->setToolTip(QApplication::translate("MainWindow", "Open the instance's config folder", 0)); actionCAT->setText(QApplication::translate("MainWindow", "Meow", 0)); actionCAT->setToolTip(QApplication::translate("MainWindow", "<html><head/><body><p align=\"center\">It's a fluffy kitty :3</p></body></html>", 0)); + actionREDDIT->setText(QApplication::translate("MainWindow", "Reddit", 0)); + actionREDDIT->setToolTip(QApplication::translate("MainWindow", "Open MultiMC subreddit", 0)); actionCopyInstance->setText(QApplication::translate("MainWindow", "Copy Instance", 0)); actionCopyInstance->setToolTip(QApplication::translate("MainWindow", "Copy the selected instance.", 0)); actionCopyInstance->setStatusTip(QApplication::translate("MainWindow", "Add a new instance.", 0)); @@ -1234,6 +1241,12 @@ void MainWindow::on_actionAddInstance_triggered() } } +void MainWindow::on_actionREDDIT_triggered() +{ + openWebPage(QUrl("https://www.reddit.com/r/MultiMC/")); +} + + void MainWindow::on_actionCopyInstance_triggered() { if (!m_selectedInstance) |