forked from qt-creator/qt-creator
Utils: Unify CheckableMessageBox and make it look more native
Change-Id: I5690c16f38cfd2058e01441283bec28d44cadf75 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include <QCheckBox>
|
||||
#include <QComboBox>
|
||||
#include <QDebug>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QDir>
|
||||
#include <QFormLayout>
|
||||
#include <QGroupBox>
|
||||
@@ -2691,14 +2692,14 @@ void BreakpointManager::gotoLocation(const GlobalBreakpoint &gbp) const
|
||||
|
||||
void BreakpointManager::executeDeleteAllBreakpointsDialog()
|
||||
{
|
||||
QDialogButtonBox::StandardButton pressed =
|
||||
CheckableMessageBox::doNotAskAgainQuestion(ICore::dialogParent(),
|
||||
Tr::tr("Remove All Breakpoints"),
|
||||
Tr::tr("Are you sure you want to remove all breakpoints "
|
||||
"from all files in the current session?"),
|
||||
ICore::settings(),
|
||||
"RemoveAllBreakpoints");
|
||||
if (pressed != QDialogButtonBox::Yes)
|
||||
QMessageBox::StandardButton pressed
|
||||
= CheckableMessageBox::question(ICore::dialogParent(),
|
||||
Tr::tr("Remove All Breakpoints"),
|
||||
Tr::tr("Are you sure you want to remove all breakpoints "
|
||||
"from all files in the current session?"),
|
||||
ICore::settings(),
|
||||
"RemoveAllBreakpoints");
|
||||
if (pressed != QMessageBox::Yes)
|
||||
return;
|
||||
|
||||
for (GlobalBreakpoint gbp : globalBreakpoints())
|
||||
|
||||
Reference in New Issue
Block a user