forked from qt-creator/qt-creator
Normalized connect()s
Change-Id: Id353ab140a46e06ffc3abf667ab3b234e749e17c Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Robert Löhning
parent
9f05e6495d
commit
b41171c847
@@ -215,16 +215,16 @@ NewDialog::NewDialog(QWidget *parent) :
|
||||
|
||||
m_ui->templatesView->setIconSize(QSize(ICON_SIZE, ICON_SIZE));
|
||||
|
||||
connect(m_ui->templateCategoryView, SIGNAL(clicked(const QModelIndex&)),
|
||||
this, SLOT(currentCategoryChanged(const QModelIndex&)));
|
||||
connect(m_ui->templatesView, SIGNAL(clicked(const QModelIndex&)),
|
||||
this, SLOT(currentItemChanged(const QModelIndex&)));
|
||||
connect(m_ui->templateCategoryView, SIGNAL(clicked(QModelIndex)),
|
||||
this, SLOT(currentCategoryChanged(QModelIndex)));
|
||||
connect(m_ui->templatesView, SIGNAL(clicked(QModelIndex)),
|
||||
this, SLOT(currentItemChanged(QModelIndex)));
|
||||
|
||||
connect(m_ui->templateCategoryView->selectionModel(),
|
||||
SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)),
|
||||
this, SLOT(currentCategoryChanged(const QModelIndex&)));
|
||||
SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(currentCategoryChanged(QModelIndex)));
|
||||
connect(m_ui->templatesView,
|
||||
SIGNAL(doubleClicked(const QModelIndex&)),
|
||||
SIGNAL(doubleClicked(QModelIndex)),
|
||||
this, SLOT(okButtonClicked()));
|
||||
|
||||
connect(m_okButton, SIGNAL(clicked()), this, SLOT(okButtonClicked()));
|
||||
@@ -409,8 +409,8 @@ void NewDialog::currentCategoryChanged(const QModelIndex &index)
|
||||
m_ui->templatesView->setCurrentIndex(m_ui->templatesView->rootIndex().child(0,0));
|
||||
|
||||
connect(m_ui->templatesView->selectionModel(),
|
||||
SIGNAL(currentChanged(const QModelIndex&,const QModelIndex&)),
|
||||
this, SLOT(currentItemChanged(const QModelIndex&)));
|
||||
SIGNAL(currentChanged(QModelIndex,QModelIndex)),
|
||||
this, SLOT(currentItemChanged(QModelIndex)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user