Qt: Add Graphics option to tool bar
This commit is contained in:
parent
7c97c14eba
commit
1b1ab3119a
|
@ -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"));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue