From de127b1f5cfa60521f68c318ec98e9e3951db85f Mon Sep 17 00:00:00 2001 From: hjk <hjk@theqtcompany.com> Date: Wed, 9 Mar 2016 17:58:26 +0100 Subject: [PATCH] Debugger: Remove unused showPromptDialog function Change-Id: Ie8f2cc905cb5e39c5419837e298c37ed4e1ec377 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> --- src/plugins/debugger/debuggerplugin.cpp | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 30b4c286cd3..6b0a35aff67 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -954,10 +954,6 @@ public: bool parseArguments(const QStringList &args, QString *errorMessage); void parseCommandLineArguments(); - // Ex-Analyzer - bool showPromptDialog(const QString &title, const QString &text, - const QString &stopButtonText, const QString &cancelButtonText) const; - // Called when all dependent plugins have loaded. void initialize(); @@ -3360,23 +3356,6 @@ void DebuggerPluginPrivate::updateActiveLanguages() // return QObject::eventFilter(obj, event); //} -bool DebuggerPluginPrivate::showPromptDialog(const QString &title, const QString &text, - const QString &stopButtonText, const QString &cancelButtonText) const -{ - CheckableMessageBox messageBox(ICore::mainWindow()); - messageBox.setWindowTitle(title); - messageBox.setText(text); - messageBox.setStandardButtons(QDialogButtonBox::Yes|QDialogButtonBox::Cancel); - if (!stopButtonText.isEmpty()) - messageBox.button(QDialogButtonBox::Yes)->setText(stopButtonText); - if (!cancelButtonText.isEmpty()) - messageBox.button(QDialogButtonBox::Cancel)->setText(cancelButtonText); - messageBox.setDefaultButton(QDialogButtonBox::Yes); - messageBox.setCheckBoxVisible(false); - messageBox.exec(); - return messageBox.clickedStandardButton() == QDialogButtonBox::Yes; -} - void DebuggerPluginPrivate::onModeChanged(IMode *mode) { // FIXME: This one gets always called, even if switching between modes -- GitLab