diff options
| author | Mat M <mathew1800@gmail.com> | 2019-03-04 17:40:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-04 17:40:27 -0500 |
| commit | 147f7ca3213aef22dfe45bfab86e2d221aa248bf (patch) | |
| tree | b32f19c11585ea4e1b205eb2e959e695636e5a19 /Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp | |
| parent | a59010fa29ab10ca031bea87fc5df165e70e2dff (diff) | |
| parent | 70da86f1c3c933ce28d122f95f34ff6c24f89d80 (diff) | |
Merge pull request #7849 from spycrab/qt_modal_again
Qt: Make every messagebox modal
Diffstat (limited to 'Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp index 0e03543dc7..09cc4657e5 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp @@ -10,7 +10,6 @@ #include <QAction> #include <QDateTime> -#include <QMessageBox> #include <QPainter> #include <QTimer> @@ -23,6 +22,7 @@ #include "InputCommon/ControllerEmu/Setting/NumericSetting.h" #include "InputCommon/ControllerInterface/Device.h" +#include "DolphinQt/QtUtils/ModalMessageBox.h" #include "DolphinQt/Settings.h" // Color constants to keep things looking consistent: @@ -480,11 +480,9 @@ CalibrationWidget::CalibrationWidget(ControllerEmu::ReshapableInput& input, if (*std::max_element(m_calibration_data.begin(), m_calibration_data.end()) > 0.5) return; - QMessageBox msg(QMessageBox::Information, tr("Calibration"), - tr("For best results please slowly move your input to all possible regions."), - QMessageBox::Ok, this); - msg.setWindowModality(Qt::WindowModal); - msg.exec(); + ModalMessageBox::information( + this, tr("Calibration"), + tr("For best results please slowly move your input to all possible regions.")); }); m_informative_timer->setSingleShot(true); } |
