diff options
| author | Léo Lam <leolino.lam@gmail.com> | 2018-03-26 22:48:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-26 22:48:26 +0200 |
| commit | b0e4e35cc54780b79e376b74a965bcf95c6dcc39 (patch) | |
| tree | 9fe0341e4a99b95b9303b1e5bcc8dd19f0d179fb /Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp | |
| parent | d3f432946f1a709a4e6f1b8e9b472473b6e0fd22 (diff) | |
| parent | 591c8837e2fef95750172d454c08dab4a49e4f6b (diff) | |
Merge pull request #6478 from spycrab/qt_default_btns
Qt: Replace "OK" with "Close" buttons
Diffstat (limited to 'Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp b/Source/Core/DolphinQt2/Config/Graphics/GraphicsWindow.cpp index 3d9b4ac539..be92290d44 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->setFixedHeight(230); @@ -82,11 +83,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)); |
