forked from qt-creator/qt-creator
Avoid signal overloading
Choose a different name for them. Change-Id: Ie2cc2c85dca72b7f7ff84c95fb0abd0a0e99a63d Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -102,7 +102,7 @@ GitSubmitEditor::GitSubmitEditor() :
|
||||
VcsBaseSubmitEditor(new GitSubmitEditorWidget)
|
||||
{
|
||||
connect(this, &VcsBaseSubmitEditor::diffSelectedRows, this, &GitSubmitEditor::slotDiffSelected);
|
||||
connect(submitEditorWidget(), &GitSubmitEditorWidget::show, this, &GitSubmitEditor::showCommit);
|
||||
connect(submitEditorWidget(), &GitSubmitEditorWidget::showRequested, this, &GitSubmitEditor::showCommit);
|
||||
connect(GitPlugin::versionControl(), &Core::IVersionControl::repositoryChanged,
|
||||
this, &GitSubmitEditor::forceUpdateFileModel);
|
||||
connect(&m_fetchWatcher, &QFutureWatcher<CommitDataFetchResult>::finished,
|
||||
|
||||
@@ -101,7 +101,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
|
||||
logChangeGroupBox->setLayout(logChangeLayout);
|
||||
m_logChangeWidget = new LogChangeWidget;
|
||||
m_logChangeWidget->init(repository);
|
||||
connect(m_logChangeWidget, &LogChangeWidget::commitActivated, this, &GitSubmitEditorWidget::show);
|
||||
connect(m_logChangeWidget, &LogChangeWidget::commitActivated, this, &GitSubmitEditorWidget::showRequested);
|
||||
logChangeLayout->addWidget(m_logChangeWidget);
|
||||
insertLeftWidget(logChangeGroupBox);
|
||||
m_gitSubmitPanelUi.editGroup->hide();
|
||||
|
||||
@@ -76,7 +76,7 @@ protected:
|
||||
QString commitName() const override;
|
||||
|
||||
signals:
|
||||
void show(const QString &commit);
|
||||
void showRequested(const QString &commit);
|
||||
|
||||
private:
|
||||
void authorInformationChanged();
|
||||
|
||||
@@ -152,7 +152,7 @@ ApplicationLauncherPrivate::ApplicationLauncherPrivate(ApplicationLauncher *pare
|
||||
this, &ApplicationLauncherPrivate::localConsoleProcessError);
|
||||
connect(&m_consoleProcess, &ConsoleProcess::processStopped,
|
||||
this, &ApplicationLauncherPrivate::localProcessDone);
|
||||
connect(&m_consoleProcess, QOverload<QProcess::ProcessError>::of(&ConsoleProcess::error),
|
||||
connect(&m_consoleProcess, &ConsoleProcess::errorOccurred,
|
||||
q, &ApplicationLauncher::error);
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
|
||||
@@ -195,7 +195,7 @@ void SshDeviceProcess::handleConnected()
|
||||
d->process->requestX11Forwarding(display);
|
||||
if (runInTerminal()) {
|
||||
d->process->requestTerminal();
|
||||
connect(&d->consoleProcess, QOverload<QProcess::ProcessError>::of(&ConsoleProcess::error),
|
||||
connect(&d->consoleProcess, &ConsoleProcess::errorOccurred,
|
||||
this, &DeviceProcess::error);
|
||||
connect(&d->consoleProcess, &ConsoleProcess::processStarted,
|
||||
this, &SshDeviceProcess::handleProcessStarted);
|
||||
|
||||
@@ -138,10 +138,10 @@ SessionDialog::SessionDialog(QWidget *parent) : QDialog(parent)
|
||||
m_ui.sessionView, &SessionView::switchToCurrentSession);
|
||||
connect(m_ui.btRename, &QAbstractButton::clicked,
|
||||
m_ui.sessionView, &SessionView::renameCurrentSession);
|
||||
connect(m_ui.sessionView, &SessionView::activated,
|
||||
connect(m_ui.sessionView, &SessionView::sessionActivated,
|
||||
m_ui.sessionView, &SessionView::switchToCurrentSession);
|
||||
|
||||
connect(m_ui.sessionView, &SessionView::selected,
|
||||
connect(m_ui.sessionView, &SessionView::sessionsSelected,
|
||||
this, &SessionDialog::updateActions);
|
||||
connect(m_ui.sessionView, &SessionView::sessionSwitched,
|
||||
this, &QDialog::reject);
|
||||
|
||||
@@ -77,10 +77,10 @@ SessionView::SessionView(QWidget *parent)
|
||||
SelectCurrent);
|
||||
|
||||
connect(this, &Utils::TreeView::activated, [this](const QModelIndex &index){
|
||||
emit activated(m_sessionModel.sessionAt(index.row()));
|
||||
emit sessionActivated(m_sessionModel.sessionAt(index.row()));
|
||||
});
|
||||
connect(selectionModel(), &QItemSelectionModel::selectionChanged, [this] {
|
||||
emit selected(selectedSessions());
|
||||
emit sessionsSelected(selectedSessions());
|
||||
});
|
||||
|
||||
connect(&m_sessionModel, &SessionModel::sessionSwitched,
|
||||
|
||||
@@ -52,8 +52,8 @@ public:
|
||||
void selectSession(const QString &sessionName);
|
||||
|
||||
signals:
|
||||
void activated(const QString &session);
|
||||
void selected(const QStringList &sessions);
|
||||
void sessionActivated(const QString &session);
|
||||
void sessionsSelected(const QStringList &sessions);
|
||||
void sessionSwitched();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user