Use auto to avoid duplicating the type name

This commit is contained in:
Luis Ángel San Martín
2019-05-31 20:58:06 +02:00
parent 923ad40057
commit bb334cfd50
55 changed files with 286 additions and 286 deletions

View File

@ -8,12 +8,12 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget *parent)
: QStackedWidget(parent)
{
//elementos interactivos
QWidget *normal = new QWidget(this); // container widget
QWidget *quickNavi = new QWidget(this); // container widget
auto normal = new QWidget(this); // container widget
auto quickNavi = new QWidget(this); // container widget
addWidget(normal);
addWidget(quickNavi);
QHBoxLayout *normalLayout = new QHBoxLayout(normal);
QHBoxLayout *naviLayout = new QHBoxLayout(quickNavi);
auto normalLayout = new QHBoxLayout(normal);
auto naviLayout = new QHBoxLayout(quickNavi);
normal->setLayout(normalLayout);
quickNavi->setLayout(naviLayout);