forked from qt-creator/qt-creator
Debugger: De-slot
Most Qt4 connects are gone. Change-Id: Ie74cfb11fc4b4c531f9e22c95a4d18336e1c29e8 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
fc59423f2f
commit
7d31cb0e18
@@ -48,11 +48,10 @@ public:
|
|||||||
|
|
||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void chooseSettings(int setting);
|
void chooseSettings(int setting);
|
||||||
void restoreGlobal();
|
void restoreGlobal();
|
||||||
|
|
||||||
private:
|
|
||||||
QWidget *m_configWidget;
|
QWidget *m_configWidget;
|
||||||
ProjectExplorer::IRunConfigurationAspect *m_aspect;
|
ProjectExplorer::IRunConfigurationAspect *m_aspect;
|
||||||
ProjectExplorer::ISettingsAspect *m_config;
|
ProjectExplorer::ISettingsAspect *m_config;
|
||||||
|
@@ -96,7 +96,6 @@ public:
|
|||||||
void setParameters(const BreakpointParameters &data);
|
void setParameters(const BreakpointParameters &data);
|
||||||
BreakpointParameters parameters() const;
|
BreakpointParameters parameters() const;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void typeChanged(int index);
|
void typeChanged(int index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -116,7 +116,7 @@ public:
|
|||||||
|
|
||||||
static QString extensionLibraryName(bool is64Bit);
|
static QString extensionLibraryName(bool is64Bit);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void readyReadStandardOut();
|
void readyReadStandardOut();
|
||||||
void readyReadStandardError();
|
void readyReadStandardError();
|
||||||
void processError();
|
void processError();
|
||||||
@@ -132,7 +132,6 @@ private slots:
|
|||||||
|
|
||||||
void handleDoInterruptInferior(const QString &errorMessage);
|
void handleDoInterruptInferior(const QString &errorMessage);
|
||||||
|
|
||||||
private:
|
|
||||||
typedef QHash<BreakpointModelId, BreakpointResponse> PendingBreakPointMap;
|
typedef QHash<BreakpointModelId, BreakpointResponse> PendingBreakPointMap;
|
||||||
typedef QPair<QString, QString> SourcePathMapping;
|
typedef QPair<QString, QString> SourcePathMapping;
|
||||||
struct NormalizedSourceFileName // Struct for caching mapped/normalized source files.
|
struct NormalizedSourceFileName // Struct for caching mapped/normalized source files.
|
||||||
|
@@ -44,8 +44,6 @@ public:
|
|||||||
void emitSizeHintChanged(const QModelIndex &index);
|
void emitSizeHintChanged(const QModelIndex &index);
|
||||||
QColor drawBackground(QPainter *painter, const QRect &rect, const QModelIndex &index,
|
QColor drawBackground(QPainter *painter, const QRect &rect, const QModelIndex &index,
|
||||||
bool selected) const;
|
bool selected) const;
|
||||||
|
|
||||||
public slots:
|
|
||||||
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -51,7 +51,6 @@ public:
|
|||||||
int sizeOfFile(const QFont &font);
|
int sizeOfFile(const QFont &font);
|
||||||
int sizeOfLineNumber(const QFont &font);
|
int sizeOfLineNumber(const QFont &font);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void clear();
|
void clear();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
@@ -39,7 +39,6 @@ class ConsoleProxyModel : public QSortFilterProxyModel
|
|||||||
public:
|
public:
|
||||||
explicit ConsoleProxyModel(QObject *parent);
|
explicit ConsoleProxyModel(QObject *parent);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void setShowLogs(bool show);
|
void setShowLogs(bool show);
|
||||||
void setShowWarnings(bool show);
|
void setShowWarnings(bool show);
|
||||||
void setShowErrors(bool show);
|
void setShowErrors(bool show);
|
||||||
|
@@ -39,7 +39,6 @@ class ConsoleView : public Utils::TreeView
|
|||||||
public:
|
public:
|
||||||
ConsoleView(ConsoleItemModel *model, QWidget *parent);
|
ConsoleView(ConsoleItemModel *model, QWidget *parent);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void onScrollToBottom();
|
void onScrollToBottom();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -3076,9 +3076,7 @@ void showModuleSections(const QString &moduleName, const Sections §ions)
|
|||||||
|
|
||||||
void DebuggerPluginPrivate::aboutToShutdown()
|
void DebuggerPluginPrivate::aboutToShutdown()
|
||||||
{
|
{
|
||||||
disconnect(SessionManager::instance(),
|
disconnect(SessionManager::instance(), &SessionManager::startupProjectChanged, this, nullptr);
|
||||||
SIGNAL(startupProjectChanged(ProjectExplorer::Project*)),
|
|
||||||
this, 0);
|
|
||||||
|
|
||||||
m_mainWindow->saveCurrentPerspective();
|
m_mainWindow->saveCurrentPerspective();
|
||||||
delete m_mainWindow;
|
delete m_mainWindow;
|
||||||
|
@@ -62,7 +62,7 @@ public:
|
|||||||
static SourcePathMap mergePlatformQtPath(const DebuggerRunParameters &sp,
|
static SourcePathMap mergePlatformQtPath(const DebuggerRunParameters &sp,
|
||||||
const SourcePathMap &in);
|
const SourcePathMap &in);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotAdd();
|
void slotAdd();
|
||||||
void slotAddQt();
|
void slotAddQt();
|
||||||
void slotRemove();
|
void slotRemove();
|
||||||
@@ -70,7 +70,6 @@ private slots:
|
|||||||
void slotEditSourceFieldChanged();
|
void slotEditSourceFieldChanged();
|
||||||
void slotEditTargetFieldChanged();
|
void slotEditTargetFieldChanged();
|
||||||
|
|
||||||
private:
|
|
||||||
void resizeColumns();
|
void resizeColumns();
|
||||||
void updateEnabled();
|
void updateEnabled();
|
||||||
QString editSourceField() const;
|
QString editSourceField() const;
|
||||||
|
@@ -122,7 +122,7 @@ protected: ////////// Gdb Process Management //////////
|
|||||||
// Make sure to clean up everything before emitting this signal.
|
// Make sure to clean up everything before emitting this signal.
|
||||||
void handleAdapterCrashed(const QString &msg);
|
void handleAdapterCrashed(const QString &msg);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
friend class GdbPlainEngine;
|
friend class GdbPlainEngine;
|
||||||
friend class GdbCoreEngine;
|
friend class GdbCoreEngine;
|
||||||
void handleInterruptDeviceInferior(const QString &error);
|
void handleInterruptDeviceInferior(const QString &error);
|
||||||
@@ -132,7 +132,6 @@ private slots:
|
|||||||
void readGdbStandardError();
|
void readGdbStandardError();
|
||||||
void readDebuggeeOutput(const QByteArray &ba);
|
void readDebuggeeOutput(const QByteArray &ba);
|
||||||
|
|
||||||
private:
|
|
||||||
QTextCodec *m_gdbOutputCodec;
|
QTextCodec *m_gdbOutputCodec;
|
||||||
QTextCodec::ConverterState m_gdbOutputCodecState;
|
QTextCodec::ConverterState m_gdbOutputCodecState;
|
||||||
QTextCodec *m_inferiorOutputCodec;
|
QTextCodec *m_inferiorOutputCodec;
|
||||||
|
@@ -45,7 +45,7 @@ public:
|
|||||||
|
|
||||||
void run();
|
void run();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void handleRemoteError(const QString &errorMessage);
|
void handleRemoteError(const QString &errorMessage);
|
||||||
void portGathererError(const QString &errorMessage);
|
void portGathererError(const QString &errorMessage);
|
||||||
void portListReady();
|
void portListReady();
|
||||||
@@ -56,7 +56,6 @@ private slots:
|
|||||||
void handleProcessStarted();
|
void handleProcessStarted();
|
||||||
void handleConnectionError();
|
void handleConnectionError();
|
||||||
|
|
||||||
private:
|
|
||||||
void attach(int port);
|
void attach(int port);
|
||||||
void logMessage(const QString &line);
|
void logMessage(const QString &line);
|
||||||
StartGdbServerDialogPrivate *d;
|
StartGdbServerDialogPrivate *d;
|
||||||
|
@@ -310,7 +310,6 @@ public:
|
|||||||
(void) new OutputHighlighter(this);
|
(void) new OutputHighlighter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public slots:
|
|
||||||
void gotoResult(int i)
|
void gotoResult(int i)
|
||||||
{
|
{
|
||||||
QString needle = QString::number(i) + QLatin1Char('^');
|
QString needle = QString::number(i) + QLatin1Char('^');
|
||||||
|
@@ -64,7 +64,6 @@ public:
|
|||||||
static QChar charForChannel(int channel);
|
static QChar charForChannel(int channel);
|
||||||
static LogChannel channelForChar(QChar c);
|
static LogChannel channelForChar(QChar c);
|
||||||
|
|
||||||
public slots:
|
|
||||||
void clearContents();
|
void clearContents();
|
||||||
void sendCommand();
|
void sendCommand();
|
||||||
void executeLine();
|
void executeLine();
|
||||||
|
@@ -55,7 +55,7 @@ public:
|
|||||||
|
|
||||||
void expressionEvaluated(quint32 queryId, const QVariant &result);
|
void expressionEvaluated(quint32 queryId, const QVariant &result);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void disconnected();
|
void disconnected();
|
||||||
void errorMessageBoxFinished(int result);
|
void errorMessageBoxFinished(int result);
|
||||||
void updateCurrentContext();
|
void updateCurrentContext();
|
||||||
@@ -67,7 +67,6 @@ private slots:
|
|||||||
void appStartupFailed(const QString &errorMessage);
|
void appStartupFailed(const QString &errorMessage);
|
||||||
void appendMessage(const QString &msg, Utils::OutputFormat);
|
void appendMessage(const QString &msg, Utils::OutputFormat);
|
||||||
|
|
||||||
private:
|
|
||||||
void notifyEngineRemoteServerRunning(const QString &, int pid) override;
|
void notifyEngineRemoteServerRunning(const QString &, int pid) override;
|
||||||
void notifyEngineRemoteSetupFinished(const RemoteSetupResult &result) override;
|
void notifyEngineRemoteSetupFinished(const RemoteSetupResult &result) override;
|
||||||
|
|
||||||
|
@@ -37,7 +37,6 @@ class RegisterTreeView : public Utils::BaseTreeView
|
|||||||
public:
|
public:
|
||||||
RegisterTreeView();
|
RegisterTreeView();
|
||||||
|
|
||||||
public slots:
|
|
||||||
void reloadRegisters();
|
void reloadRegisters();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -37,44 +37,44 @@ ModelTest::ModelTest(QAbstractItemModel *_model, QObject *parent) : QObject(pare
|
|||||||
{
|
{
|
||||||
Q_ASSERT(model);
|
Q_ASSERT(model);
|
||||||
|
|
||||||
connect(model, SIGNAL(columnsAboutToBeInserted(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::columnsAboutToBeInserted,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(columnsAboutToBeRemoved(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::columnsAboutToBeRemoved,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(columnsInserted(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::columnsInserted,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(columnsRemoved(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::columnsRemoved,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
|
connect(model, &QAbstractItemModel::dataChanged,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(headerDataChanged(Qt::Orientation,int,int)),
|
connect(model, &QAbstractItemModel::headerDataChanged,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(layoutAboutToBeChanged()), this, SLOT(runAllTests()));
|
connect(model, &QAbstractItemModel::layoutAboutToBeChanged, this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(layoutChanged()), this, SLOT(runAllTests()));
|
connect(model, &QAbstractItemModel::layoutChanged, this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(modelReset()), this, SLOT(runAllTests()));
|
connect(model, &QAbstractItemModel::modelReset, this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsAboutToBeInserted,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsAboutToBeRemoved,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsInserted,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsRemoved,
|
||||||
this, SLOT(runAllTests()));
|
this, &ModelTest::runAllTests);
|
||||||
|
|
||||||
// Special checks for inserting/removing
|
// Special checks for inserting/removing
|
||||||
connect(model, SIGNAL(layoutAboutToBeChanged()),
|
connect(model, &QAbstractItemModel::layoutAboutToBeChanged,
|
||||||
this, SLOT(layoutAboutToBeChanged()));
|
this, &ModelTest::layoutAboutToBeChanged);
|
||||||
connect(model, SIGNAL(layoutChanged()),
|
connect(model, &QAbstractItemModel::layoutChanged,
|
||||||
this, SLOT(layoutChanged()));
|
this, &ModelTest::layoutChanged);
|
||||||
|
|
||||||
connect(model, SIGNAL(rowsAboutToBeInserted(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsAboutToBeInserted,
|
||||||
this, SLOT(rowsAboutToBeInserted(QModelIndex,int,int)));
|
this, &ModelTest::rowsAboutToBeInserted);
|
||||||
connect(model, SIGNAL(rowsAboutToBeRemoved(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsAboutToBeRemoved,
|
||||||
this, SLOT(rowsAboutToBeRemoved(QModelIndex,int,int)));
|
this, &ModelTest::rowsAboutToBeRemoved);
|
||||||
connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsInserted,
|
||||||
this, SLOT(rowsInserted(QModelIndex,int,int)));
|
this, &ModelTest::rowsInserted);
|
||||||
connect(model, SIGNAL(rowsRemoved(QModelIndex,int,int)),
|
connect(model, &QAbstractItemModel::rowsRemoved,
|
||||||
this, SLOT(rowsRemoved(QModelIndex,int,int)));
|
this, &ModelTest::rowsRemoved);
|
||||||
|
|
||||||
runAllTests();
|
runAllTests();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user