mirror of
https://github.com/YACReader/yacreader
synced 2025-07-17 20:44:32 -04:00
Use auto to avoid duplicating the type name
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user