mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Use auto to avoid duplicating the type name
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
AddLabelDialog::AddLabelDialog(QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
QVBoxLayout *layout = new QVBoxLayout;
|
||||
auto layout = new QVBoxLayout;
|
||||
|
||||
layout->addWidget(new QLabel(tr("Label name:")));
|
||||
layout->addWidget(edit = new QLineEdit());
|
||||
@ -36,7 +36,7 @@ AddLabelDialog::AddLabelDialog(QWidget *parent)
|
||||
acceptButton = new QPushButton(tr("accept"), this);
|
||||
cancelButton = new QPushButton(tr("cancel"), this);
|
||||
|
||||
QHBoxLayout *buttons = new QHBoxLayout;
|
||||
auto buttons = new QHBoxLayout;
|
||||
buttons->addStretch();
|
||||
buttons->addWidget(acceptButton);
|
||||
buttons->addWidget(cancelButton);
|
||||
|
Reference in New Issue
Block a user