Convert to new connect api

Change-Id: I80aad51340bcde953763dec36cf989d6e19d4cd0
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Montel Laurent
2015-01-30 10:19:13 +01:00
committed by hjk
parent f479c1979e
commit 0df6780176
18 changed files with 53 additions and 49 deletions

View File

@@ -87,7 +87,7 @@ DocumentWarningWidget::DocumentWarningWidget(DesignModeWidget *parent) :
m_errorMessage->setForegroundRole(QPalette::ToolTipText);
m_goToError->setText(tr("<a href=\"goToError\">Go to error</a>"));
m_goToError->setForegroundRole(QPalette::Link);
connect(m_goToError, SIGNAL(linkActivated(QString)), this, SLOT(goToError()));
connect(m_goToError, &QLabel::linkActivated, this, &DocumentWarningWidget::goToError);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(20);
@@ -405,8 +405,8 @@ void DesignModeWidget::setup()
m_toolBar->setToolbarCreationFlags(Core::EditorToolBar::FlagsStandalone);
m_toolBar->setNavigationVisible(true);
connect(m_toolBar, SIGNAL(goForwardClicked()), this, SLOT(toolBarOnGoForwardClicked()));
connect(m_toolBar, SIGNAL(goBackClicked()), this, SLOT(toolBarOnGoBackClicked()));
connect(m_toolBar, &Core::EditorToolBar::goForwardClicked, this, &DesignModeWidget::toolBarOnGoForwardClicked);
connect(m_toolBar, &Core::EditorToolBar::goBackClicked, this, &DesignModeWidget::toolBarOnGoBackClicked);
if (currentDesignDocument())
setupNavigatorHistory(currentDesignDocument()->textEditor());