From 7c130216275c1387e177ed0bb4ea84ba81a07080 Mon Sep 17 00:00:00 2001 From: waddlesplash Date: Sat, 12 Sep 2015 13:20:45 -0400 Subject: [PATCH] DolphinQt: Add 'Screenshot' button. --- Source/Core/DolphinQt/MainWindow.cpp | 4 ++++ Source/Core/DolphinQt/MainWindow.ui | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 91eef1f0a5..391022971d 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -76,6 +76,9 @@ DMainWindow::DMainWindow(QWidget* parent_widget) connect(m_game_tracker, &DGameTracker::StartGame, this, &DMainWindow::OnPlay); connect(m_ui->actionStop, &QAction::triggered, this, &DMainWindow::OnStop); connect(m_ui->actionReset, &QAction::triggered, this, &DMainWindow::OnReset); + connect(m_ui->actionScreenshot, &QAction::triggered, this, [&]() { + Core::SaveScreenShot(); + }); connect(m_ui->actionWebsite, &QAction::triggered, this, [&]() { QDesktopServices::openUrl(QUrl(SL("https://dolphin-emu.org/"))); @@ -361,4 +364,5 @@ void DMainWindow::UpdateIcons() { // Play/Pause is handled in OnCoreStateChanged(). m_ui->actionStop->setIcon(Resources::GetIcon(Resources::TOOLBAR_STOP)); + m_ui->actionScreenshot->setIcon(Resources::GetIcon(Resources::TOOLBAR_SCREENSHOT)); } diff --git a/Source/Core/DolphinQt/MainWindow.ui b/Source/Core/DolphinQt/MainWindow.ui index 26db42cd1f..4f1a209d09 100644 --- a/Source/Core/DolphinQt/MainWindow.ui +++ b/Source/Core/DolphinQt/MainWindow.ui @@ -52,6 +52,8 @@ + + @@ -119,6 +121,7 @@ + @@ -236,6 +239,14 @@ &Reset + + + Screenshot + + + false + +