forked from qt-creator/qt-creator
Core: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7a9cc3499e
commit
5646480f27
@@ -87,7 +87,7 @@ FancyTabBar::FancyTabBar(QWidget *parent)
|
||||
m_triggerTimer.setSingleShot(true);
|
||||
|
||||
// We use a zerotimer to keep the sidebar responsive
|
||||
connect(&m_triggerTimer, SIGNAL(timeout()), this, SLOT(emitCurrentIndex()));
|
||||
connect(&m_triggerTimer, &QTimer::timeout, this, &FancyTabBar::emitCurrentIndex);
|
||||
}
|
||||
|
||||
FancyTabBar::~FancyTabBar()
|
||||
@@ -468,7 +468,7 @@ FancyTabWidget::FancyTabWidget(QWidget *parent)
|
||||
mainLayout->addLayout(vlayout);
|
||||
setLayout(mainLayout);
|
||||
|
||||
connect(m_tabBar, SIGNAL(currentChanged(int)), this, SLOT(showWidget(int)));
|
||||
connect(m_tabBar, &FancyTabBar::currentChanged, this, &FancyTabWidget::showWidget);
|
||||
}
|
||||
|
||||
void FancyTabWidget::setSelectionWidgetVisible(bool visible)
|
||||
|
||||
Reference in New Issue
Block a user