From 1b1ab3119a743035b6e1877a97e3a4824d4caf38 Mon Sep 17 00:00:00 2001 From: spycrab Date: Fri, 16 Jun 2017 01:39:59 +0200 Subject: [PATCH] Qt: Add Graphics option to tool bar --- Source/Core/DolphinQt2/ToolBar.cpp | 4 ++++ Source/Core/DolphinQt2/ToolBar.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Source/Core/DolphinQt2/ToolBar.cpp b/Source/Core/DolphinQt2/ToolBar.cpp index 0cea6f151f..cc5992ca52 100644 --- a/Source/Core/DolphinQt2/ToolBar.cpp +++ b/Source/Core/DolphinQt2/ToolBar.cpp @@ -83,6 +83,9 @@ void ToolBar::MakeActions() m_config_action = addAction(tr("Settings"), this, SIGNAL(SettingsPressed())); widgetForAction(m_config_action)->setMinimumWidth(button_width); + m_graphics_action = addAction(tr("Graphics"), this, SIGNAL(GraphicsPressed())); + widgetForAction(m_graphics_action)->setMinimumWidth(button_width); + m_controllers_action = addAction(tr("Controllers"), this, SIGNAL(ControllersPressed())); widgetForAction(m_controllers_action)->setMinimumWidth(button_width); m_controllers_action->setEnabled(true); @@ -98,4 +101,5 @@ void ToolBar::UpdateIcons() m_screenshot_action->setIcon(Resources::GetScaledThemeIcon("screenshot")); m_config_action->setIcon(Resources::GetScaledThemeIcon("config")); m_controllers_action->setIcon(Resources::GetScaledThemeIcon("classic")); + m_graphics_action->setIcon(Resources::GetScaledThemeIcon("graphics")); } diff --git a/Source/Core/DolphinQt2/ToolBar.h b/Source/Core/DolphinQt2/ToolBar.h index 1150a26f81..179c0f5729 100644 --- a/Source/Core/DolphinQt2/ToolBar.h +++ b/Source/Core/DolphinQt2/ToolBar.h @@ -30,6 +30,7 @@ signals: void SettingsPressed(); void ControllersPressed(); + void GraphicsPressed(); private: void MakeActions(); @@ -43,4 +44,5 @@ private: QAction* m_screenshot_action; QAction* m_config_action; QAction* m_controllers_action; + QAction* m_graphics_action; };