forked from qt-creator/qt-creator
Debugger: Move convenience function to only user
Change-Id: I50952521bdd45faa8a31da674e7ea5f0796d75d9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
#include <functional>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QMessageBox;
|
||||
class QWidget;
|
||||
class QMenu;
|
||||
class QAction;
|
||||
@@ -71,9 +70,6 @@ bool boolSetting(int code);
|
||||
QString stringSetting(int code);
|
||||
QStringList stringListSetting(int code);
|
||||
|
||||
QMessageBox *showMessageBox(int icon, const QString &title,
|
||||
const QString &text, int buttons = 0);
|
||||
|
||||
QAction *addAction(QMenu *menu, const QString &display, bool on,
|
||||
const std::function<void()> &onTriggered = {});
|
||||
QAction *addAction(QMenu *menu, const QString &d1, const QString &d2, bool on,
|
||||
|
@@ -2029,17 +2029,6 @@ void DebuggerPluginPrivate::remoteCommand(const QStringList &options)
|
||||
runScheduled();
|
||||
}
|
||||
|
||||
QMessageBox *showMessageBox(int icon, const QString &title, const QString &text, int buttons)
|
||||
{
|
||||
QMessageBox *mb = new QMessageBox(QMessageBox::Icon(icon),
|
||||
title, text, QMessageBox::StandardButtons(buttons),
|
||||
ICore::mainWindow());
|
||||
mb->setAttribute(Qt::WA_DeleteOnClose);
|
||||
mb->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||
mb->show();
|
||||
return mb;
|
||||
}
|
||||
|
||||
void addDebugInfoTask(unsigned id, const QString &cmd)
|
||||
{
|
||||
dd->m_debugInfoTaskHandler.addTask(id, cmd);
|
||||
|
@@ -103,6 +103,17 @@ static bool isMostlyHarmlessMessage(const QStringRef &msg)
|
||||
"Invalid argument\\n";
|
||||
}
|
||||
|
||||
static QMessageBox *showMessageBox(QMessageBox::Icon icon,
|
||||
const QString &title, const QString &text,
|
||||
QMessageBox::StandardButtons buttons)
|
||||
{
|
||||
auto mb = new QMessageBox(icon, title, text, buttons, ICore::mainWindow());
|
||||
mb->setAttribute(Qt::WA_DeleteOnClose);
|
||||
mb->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||
mb->show();
|
||||
return mb;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// GdbEngine
|
||||
|
Reference in New Issue
Block a user