forked from qt-creator/qt-creator
Utils: De-slot and complete Qt5 connects
The only Qt4-style [dis]connects left are in BaseTreeView::setModel. Change-Id: I53bb715750c65827005cc96939a6714606e60f81 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
b14d9c00ff
commit
eacd012b96
@@ -103,7 +103,7 @@ signals:
|
|||||||
void stubStarted();
|
void stubStarted();
|
||||||
void stubStopped();
|
void stubStopped();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void stubConnectionAvailable();
|
void stubConnectionAvailable();
|
||||||
void readStubOutput();
|
void readStubOutput();
|
||||||
void stubExited();
|
void stubExited();
|
||||||
@@ -111,7 +111,6 @@ private slots:
|
|||||||
void inferiorExited();
|
void inferiorExited();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
|
||||||
static QString modeOption(Mode m);
|
static QString modeOption(Mode m);
|
||||||
static QString msgCommChannelFailed(const QString &error);
|
static QString msgCommChannelFailed(const QString &error);
|
||||||
static QString msgPromptToClose();
|
static QString msgPromptToClose();
|
||||||
|
@@ -60,10 +60,8 @@ signals:
|
|||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent *);
|
void resizeEvent(QResizeEvent *);
|
||||||
|
|
||||||
private slots:
|
|
||||||
void emitElementClicked();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void emitElementClicked();
|
||||||
void resizeButtons();
|
void resizeButtons();
|
||||||
void setBackgroundStyle();
|
void setBackgroundStyle();
|
||||||
|
|
||||||
|
@@ -87,7 +87,7 @@ signals:
|
|||||||
void linkActivated(const QString &link);
|
void linkActivated(const QString &link);
|
||||||
void expanded(bool);
|
void expanded(bool);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void setExpanded(bool);
|
void setExpanded(bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -140,7 +140,7 @@ bool DropSupport::eventFilter(QObject *obj, QEvent *event)
|
|||||||
// after the drag operation.
|
// after the drag operation.
|
||||||
// If we do not do this, e.g. dragging from Outline view crashes if the editor and
|
// If we do not do this, e.g. dragging from Outline view crashes if the editor and
|
||||||
// the selected item changes
|
// the selected item changes
|
||||||
QTimer::singleShot(100, this, SLOT(emitFilesDropped()));
|
QTimer::singleShot(100, this, &DropSupport::emitFilesDropped);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fileDropMimeData && !fileDropMimeData->values().isEmpty()) {
|
if (fileDropMimeData && !fileDropMimeData->values().isEmpty()) {
|
||||||
@@ -150,7 +150,7 @@ bool DropSupport::eventFilter(QObject *obj, QEvent *event)
|
|||||||
m_values.append(fileDropMimeData->values());
|
m_values.append(fileDropMimeData->values());
|
||||||
m_dropPos = de->pos();
|
m_dropPos = de->pos();
|
||||||
if (needToScheduleEmit)
|
if (needToScheduleEmit)
|
||||||
QTimer::singleShot(100, this, SLOT(emitValuesDropped()));
|
QTimer::singleShot(100, this, &DropSupport::emitValuesDropped);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!accepted) {
|
if (!accepted) {
|
||||||
|
@@ -68,11 +68,10 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *obj, QEvent *event);
|
bool eventFilter(QObject *obj, QEvent *event);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void emitFilesDropped();
|
void emitFilesDropped();
|
||||||
void emitValuesDropped();
|
void emitValuesDropped();
|
||||||
|
|
||||||
private:
|
|
||||||
DropFilterFunction m_filterFunction;
|
DropFilterFunction m_filterFunction;
|
||||||
QList<FileSpec> m_files;
|
QList<FileSpec> m_files;
|
||||||
QList<QVariant> m_values;
|
QList<QVariant> m_values;
|
||||||
|
@@ -87,7 +87,7 @@ public:
|
|||||||
{
|
{
|
||||||
show();
|
show();
|
||||||
raise();
|
raise();
|
||||||
QTimer::singleShot(ms, this, SLOT(runInternal()));
|
QTimer::singleShot(ms, this, &FadingIndicatorPrivate::runInternal);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -104,7 +104,7 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void runInternal()
|
void runInternal()
|
||||||
{
|
{
|
||||||
QPropertyAnimation *anim = new QPropertyAnimation(m_effect, "opacity", this);
|
QPropertyAnimation *anim = new QPropertyAnimation(m_effect, "opacity", this);
|
||||||
@@ -114,7 +114,6 @@ private slots:
|
|||||||
anim->start(QAbstractAnimation::DeleteWhenStopped);
|
anim->start(QAbstractAnimation::DeleteWhenStopped);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
QGraphicsOpacityEffect *m_effect;
|
QGraphicsOpacityEffect *m_effect;
|
||||||
QLabel *m_label;
|
QLabel *m_label;
|
||||||
QPixmap m_pixmap;
|
QPixmap m_pixmap;
|
||||||
|
@@ -79,10 +79,9 @@ protected:
|
|||||||
void showEvent(QShowEvent *event);
|
void showEvent(QShowEvent *event);
|
||||||
void contextMenuEvent(QContextMenuEvent *event);
|
void contextMenuEvent(QContextMenuEvent *event);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void onDockActionTriggered();
|
void onDockActionTriggered();
|
||||||
|
|
||||||
private:
|
|
||||||
void handleVisibilityChanged(bool visible);
|
void handleVisibilityChanged(bool visible);
|
||||||
|
|
||||||
FancyMainWindowPrivate *d;
|
FancyMainWindowPrivate *d;
|
||||||
|
@@ -66,16 +66,14 @@ public:
|
|||||||
bool watchesDirectory(const QString &file) const;
|
bool watchesDirectory(const QString &file) const;
|
||||||
QStringList directories() const;
|
QStringList directories() const;
|
||||||
|
|
||||||
private slots:
|
|
||||||
void slotFileChanged(const QString &path);
|
|
||||||
void slotDirectoryChanged(const QString &path);
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void fileChanged(const QString &path);
|
void fileChanged(const QString &path);
|
||||||
void directoryChanged(const QString &path);
|
void directoryChanged(const QString &path);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void init();
|
void init();
|
||||||
|
void slotFileChanged(const QString &path);
|
||||||
|
void slotDirectoryChanged(const QString &path);
|
||||||
|
|
||||||
FileSystemWatcherPrivate *d;
|
FileSystemWatcherPrivate *d;
|
||||||
};
|
};
|
||||||
|
@@ -65,11 +65,10 @@ public slots:
|
|||||||
void setPath(const QString &path);
|
void setPath(const QString &path);
|
||||||
void setFileName(const QString &name);
|
void setFileName(const QString &name);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotValidChanged();
|
void slotValidChanged();
|
||||||
void slotActivated();
|
void slotActivated();
|
||||||
|
|
||||||
private:
|
|
||||||
FileWizardPagePrivate *d;
|
FileWizardPagePrivate *d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -149,15 +149,13 @@ public slots:
|
|||||||
*/
|
*/
|
||||||
void suggestClassNameFromBase();
|
void suggestClassNameFromBase();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotUpdateFileNames(const QString &t);
|
void slotUpdateFileNames(const QString &t);
|
||||||
void slotValidChanged();
|
void slotValidChanged();
|
||||||
void slotActivated();
|
void slotActivated();
|
||||||
void classNameEdited();
|
void classNameEdited();
|
||||||
void slotFormInputChecked();
|
void slotFormInputChecked();
|
||||||
void slotBaseClassEdited(const QString &);
|
void slotBaseClassEdited(const QString &);
|
||||||
|
|
||||||
private:
|
|
||||||
void setFormInputCheckable(bool checkable, bool force);
|
void setFormInputCheckable(bool checkable, bool force);
|
||||||
|
|
||||||
QString fixSuffix(const QString &suffix);
|
QString fixSuffix(const QString &suffix);
|
||||||
|
@@ -73,11 +73,10 @@ public slots:
|
|||||||
void setUseAsDefaultPath(bool u);
|
void setUseAsDefaultPath(bool u);
|
||||||
void setProjectNameRegularExpression(const QRegularExpression ®Ex);
|
void setProjectNameRegularExpression(const QRegularExpression ®Ex);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotChanged();
|
void slotChanged();
|
||||||
void slotActivated();
|
void slotActivated();
|
||||||
|
|
||||||
private:
|
|
||||||
enum StatusLabelMode { Error, Warning, Hint };
|
enum StatusLabelMode { Error, Warning, Hint };
|
||||||
|
|
||||||
bool validate();
|
bool validate();
|
||||||
|
@@ -60,12 +60,10 @@ public:
|
|||||||
static QString stringWithAppendedShortcut(const QString &str, const QKeySequence &shortcut);
|
static QString stringWithAppendedShortcut(const QString &str, const QKeySequence &shortcut);
|
||||||
static ProxyAction *proxyActionWithIcon(QAction *original, const QIcon &newIcon);
|
static ProxyAction *proxyActionWithIcon(QAction *original, const QIcon &newIcon);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void actionChanged();
|
void actionChanged();
|
||||||
void updateState();
|
void updateState();
|
||||||
void updateToolTipWithKeySequence();
|
void updateToolTipWithKeySequence();
|
||||||
|
|
||||||
private:
|
|
||||||
void disconnectAction();
|
void disconnectAction();
|
||||||
void connectAction();
|
void connectAction();
|
||||||
void update(QAction *action, bool initialize);
|
void update(QAction *action, bool initialize);
|
||||||
|
@@ -67,12 +67,11 @@ signals:
|
|||||||
void rename(int index, const QString &newName);
|
void rename(int index, const QString &newName);
|
||||||
void currentChanged(int index);
|
void currentChanged(int index);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void removeButtonClicked();
|
void removeButtonClicked();
|
||||||
void renameButtonClicked();
|
void renameButtonClicked();
|
||||||
void updateButtonState();
|
void updateButtonState();
|
||||||
|
|
||||||
private:
|
|
||||||
QLabel *m_label;
|
QLabel *m_label;
|
||||||
QComboBox *m_configurationCombo;
|
QComboBox *m_configurationCombo;
|
||||||
QPushButton *m_addButton;
|
QPushButton *m_addButton;
|
||||||
|
@@ -43,10 +43,8 @@ public slots:
|
|||||||
void showStatusMessage(const QString &message, int timeoutMS = 5000);
|
void showStatusMessage(const QString &message, int timeoutMS = 5000);
|
||||||
void clearStatusMessage();
|
void clearStatusMessage();
|
||||||
|
|
||||||
private slots:
|
|
||||||
void slotTimeout();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void slotTimeout();
|
||||||
void stopTimer();
|
void stopTimer();
|
||||||
|
|
||||||
QTimer *m_timer;
|
QTimer *m_timer;
|
||||||
|
@@ -155,14 +155,12 @@ signals:
|
|||||||
public slots:
|
public slots:
|
||||||
bool terminate();
|
bool terminate();
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotTimeout();
|
void slotTimeout();
|
||||||
void finished(int exitCode, QProcess::ExitStatus e);
|
void finished(int exitCode, QProcess::ExitStatus e);
|
||||||
void error(QProcess::ProcessError);
|
void error(QProcess::ProcessError);
|
||||||
void stdOutReady();
|
void stdOutReady();
|
||||||
void stdErrReady();
|
void stdErrReady();
|
||||||
|
|
||||||
private:
|
|
||||||
void processStdOut(bool emitSignals);
|
void processStdOut(bool emitSignals);
|
||||||
void processStdErr(bool emitSignals);
|
void processStdErr(bool emitSignals);
|
||||||
QString convertOutput(const QByteArray &, QTextCodec::ConverterState *state) const;
|
QString convertOutput(const QByteArray &, QTextCodec::ConverterState *state) const;
|
||||||
|
@@ -51,10 +51,9 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void textChanged(const QString &);
|
void textChanged(const QString &);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotStateChanged(int);
|
void slotStateChanged(int);
|
||||||
|
|
||||||
private:
|
|
||||||
QString m_trueText;
|
QString m_trueText;
|
||||||
QString m_falseText;
|
QString m_falseText;
|
||||||
};
|
};
|
||||||
|
@@ -46,10 +46,9 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void text4Changed(const QString &); // Do not conflict with Qt 3 compat signal.
|
void text4Changed(const QString &); // Do not conflict with Qt 3 compat signal.
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotCurrentIndexChanged(int);
|
void slotCurrentIndexChanged(int);
|
||||||
|
|
||||||
private:
|
|
||||||
inline QString valueAt(int) const;
|
inline QString valueAt(int) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -99,7 +99,7 @@ class LinearProgressWidget : public QWidget
|
|||||||
public:
|
public:
|
||||||
LinearProgressWidget(WizardProgress *progress, QWidget *parent = 0);
|
LinearProgressWidget(WizardProgress *progress, QWidget *parent = 0);
|
||||||
|
|
||||||
private slots:
|
private:
|
||||||
void slotItemAdded(WizardProgressItem *item);
|
void slotItemAdded(WizardProgressItem *item);
|
||||||
void slotItemRemoved(WizardProgressItem *item);
|
void slotItemRemoved(WizardProgressItem *item);
|
||||||
void slotItemChanged(WizardProgressItem *item);
|
void slotItemChanged(WizardProgressItem *item);
|
||||||
@@ -107,8 +107,6 @@ private slots:
|
|||||||
void slotNextShownItemChanged(WizardProgressItem *item, WizardProgressItem *nextItem);
|
void slotNextShownItemChanged(WizardProgressItem *item, WizardProgressItem *nextItem);
|
||||||
void slotStartItemChanged(WizardProgressItem *item);
|
void slotStartItemChanged(WizardProgressItem *item);
|
||||||
void slotCurrentItemChanged(WizardProgressItem *item);
|
void slotCurrentItemChanged(WizardProgressItem *item);
|
||||||
|
|
||||||
private:
|
|
||||||
void recreateLayout();
|
void recreateLayout();
|
||||||
void updateProgress();
|
void updateProgress();
|
||||||
void disableUpdates();
|
void disableUpdates();
|
||||||
|
Reference in New Issue
Block a user