From 591c8837e2fef95750172d454c08dab4a49e4f6b Mon Sep 17 00:00:00 2001 From: spycrab Date: Tue, 20 Mar 2018 10:12:11 +0100 Subject: Qt: Replace "OK" with "Close" buttons --- Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp') diff --git a/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp b/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp index 4b3d920378..d04f75d1b8 100644 --- a/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp +++ b/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp @@ -24,7 +24,6 @@ GraphicsWindow::GraphicsWindow(X11Utils::XRRConfiguration* xrr_config, MainWindo : QDialog(parent), m_xrr_config(xrr_config) { CreateMainLayout(); - ConnectWidgets(); setWindowTitle(tr("Graphics")); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); @@ -40,7 +39,9 @@ void GraphicsWindow::CreateMainLayout() m_description = new QLabel(tr("Move the mouse pointer over an option to display a detailed description.")); m_tab_widget = new QTabWidget(); - m_button_box = new QDialogButtonBox(QDialogButtonBox::Ok); + m_button_box = new QDialogButtonBox(QDialogButtonBox::Close); + + connect(m_button_box, &QDialogButtonBox::rejected, this, &QDialog::reject); description_box->setLayout(description_layout); description_box->setMinimumHeight(230); @@ -81,11 +82,6 @@ void GraphicsWindow::CreateMainLayout() setLayout(main_layout); } -void GraphicsWindow::ConnectWidgets() -{ - connect(m_button_box, &QDialogButtonBox::accepted, this, &QDialog::accept); -} - void GraphicsWindow::OnBackendChanged(const QString& backend) { setWindowTitle(tr("Dolphin %1 Graphics Configuration").arg(backend)); -- cgit v1.2.3