summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorAugustin Cavalier <waddlesplash@gmail.com>2014-10-18 11:07:17 -0400
committerAugustin Cavalier <waddlesplash@gmail.com>2014-10-19 15:36:37 -0400
commit8d4068527bf2e74aae36f33fabbbdfde29fcb8e9 (patch)
tree59906e1c4cdfe8b5a6423cebf50040d0af7168b1 /Source/Core/DolphinQt/MainWindow.cpp
parent742f9c6b14348b7279cb6b666a342fb2fcf4792c (diff)
DolphinQt: Stub Host_* functions & Resource system.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 2b82949b01..b67ec2198a 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -5,16 +5,23 @@
#include <QDesktopServices>
#include <QUrl>
-#include "AboutDialog.h"
-#include "MainWindow.h"
#include "ui_MainWindow.h"
+
#include "Common/StdMakeUnique.h"
-DMainWindow::DMainWindow(QWidget* p)
- : QMainWindow(p)
+#include "DolphinQt/AboutDialog.h"
+#include "DolphinQt/MainWindow.h"
+#include "DolphinQt/Utils/Resources.h"
+#include "DolphinQt/Utils/Utils.h"
+
+DMainWindow::DMainWindow(QWidget* parent_widget)
+ : QMainWindow(parent_widget)
{
ui = std::make_unique<Ui::DMainWindow>();
ui->setupUi(this);
+
+ Resources::Init();
+ ui->actOpen->setIcon(Resources::GetIcon(Resources::TOOLBAR_OPEN));
}
DMainWindow::~DMainWindow()
@@ -23,17 +30,17 @@ DMainWindow::~DMainWindow()
void DMainWindow::on_actWebsite_triggered()
{
- QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/")));
+ QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/")));
}
void DMainWindow::on_actOnlineDocs_triggered()
{
- QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides/")));
+ QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/docs/guides/")));
}
void DMainWindow::on_actGitHub_triggered()
{
- QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/dolphin-emu/dolphin/")));
+ QDesktopServices::openUrl(QUrl(SL("https://github.com/dolphin-emu/dolphin/")));
}
void DMainWindow::on_actAbout_triggered()