summaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.cpp
diff options
context:
space:
mode:
authorOrochimarufan <orochimarufan.x3@gmail.com>2013-02-13 00:35:35 +0100
committerOrochimarufan <orochimarufan.x3@gmail.com>2013-02-13 00:35:35 +0100
commit79c5ae121b4f4de24fe3edc57bf3f0e3a8fccfe4 (patch)
tree813a1211ed634db4dc7e7df9a8874e1cf32c14b1 /gui/mainwindow.cpp
parentb66be337fdb4d9fe023f1c4912573f99cca5437c (diff)
downloadMultiMC-79c5ae121b4f4de24fe3edc57bf3f0e3a8fccfe4.tar
MultiMC-79c5ae121b4f4de24fe3edc57bf3f0e3a8fccfe4.tar.gz
MultiMC-79c5ae121b4f4de24fe3edc57bf3f0e3a8fccfe4.tar.lz
MultiMC-79c5ae121b4f4de24fe3edc57bf3f0e3a8fccfe4.tar.xz
MultiMC-79c5ae121b4f4de24fe3edc57bf3f0e3a8fccfe4.zip
add first iteration of the integrated browser
Diffstat (limited to 'gui/mainwindow.cpp')
-rw-r--r--gui/mainwindow.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index bc0840a0..271a67fb 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -28,6 +28,7 @@
#include "gui/newinstancedialog.h"
#include "gui/logindialog.h"
#include "gui/taskdialog.h"
+#include "gui/browserdialog.h"
#include "data/appsettings.h"
#include "data/version.h"
@@ -36,7 +37,7 @@
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
- ui(new Ui::MainWindow)
+ ui(new Ui::MainWindow)
{
ui->setupUi(this);
@@ -88,12 +89,14 @@ void MainWindow::on_actionSettings_triggered()
void MainWindow::on_actionReportBug_triggered()
{
- QDesktopServices::openUrl(QUrl("http://bugs.forkk.net/"));
+ //QDesktopServices::openUrl(QUrl("http://bugs.forkk.net/"));
+ openWebPage(QUrl("http://bugs.forkk.net/"));
}
void MainWindow::on_actionNews_triggered()
{
- QDesktopServices::openUrl(QUrl("http://news.forkk.net/"));
+ //QDesktopServices::openUrl(QUrl("http://news.forkk.net/"));
+ openWebPage(QUrl("http://news.forkk.net/"));
}
void MainWindow::on_actionAbout_triggered()
@@ -155,3 +158,12 @@ void MainWindow::onLoginComplete(LoginResponse response)
QString("Logged in as %1 with session ID %2.").
arg(response.getUsername(), response.getSessionID()));
}
+
+// BrowserDialog
+void MainWindow::openWebPage(QUrl url)
+{
+ BrowserDialog *browser = new BrowserDialog(this);
+
+ browser->load(url);
+ browser->exec();
+}