Core: Use QList's initializer list contructor for output panes

More concise code.

Change-Id: I0c83a02de725648294e1b6b49669bdec0c47fafe
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2016-07-06 17:00:20 +02:00
committed by hjk
parent 0dec19173c
commit 08dc992aef
6 changed files with 7 additions and 15 deletions

View File

@@ -67,11 +67,7 @@ QWidget *TodoOutputPane::outputWidget(QWidget *parent)
QList<QWidget*> TodoOutputPane::toolBarWidgets() const
{
return QList<QWidget*>()
<< m_spacer
<< m_currentFileButton
<< m_wholeProjectButton
<< m_subProjectButton;
return { m_spacer, m_currentFileButton, m_wholeProjectButton, m_subProjectButton };
}
QString TodoOutputPane::displayName() const