Commit 9e2468b7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add more auto

parent 9dc2a90a
Pipeline #40255 failed with stage
in 11 minutes and 55 seconds
......@@ -204,7 +204,7 @@ AlarmDialog::AlarmDialog(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *par
topLayout->setContentsMargins({});
setContentsMargins({});
QLabel *label = new QLabel(
auto *label = new QLabel(
i18nc("@label",
"Reminders: "
"Clicking on the title toggles details for item"),
......@@ -262,7 +262,7 @@ AlarmDialog::AlarmDialog(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *par
suspendBoxHBoxLayout->setContentsMargins({});
topLayout->addWidget(suspendBox);
QLabel *l = new QLabel(i18nc("@label:spinbox", "Suspend &duration:"), suspendBox);
auto *l = new QLabel(i18nc("@label:spinbox", "Suspend &duration:"), suspendBox);
suspendBoxHBoxLayout->addWidget(l);
mSuspendSpin = new QSpinBox(suspendBox);
......
......@@ -45,7 +45,7 @@ void CollectionGeneralPage::init(const Akonadi::Collection &collection)
auto *hbox = new QHBoxLayout();
topLayout->addItem(hbox);
QLabel *label = new QLabel(i18nc("@label:textbox Name of the folder.", "&Name:"), this);
auto *label = new QLabel(i18nc("@label:textbox Name of the folder.", "&Name:"), this);
hbox->addWidget(label);
mNameEdit = new QLineEdit(this);
......
......@@ -339,7 +339,7 @@ void KCMDesignerFields::initGUI()
" to be edited, set the widget name in Qt Designer.</p></qt>",
applicationName(), applicationName());
QLabel *activeLabel = new QLabel(
auto *activeLabel = new QLabel(
i18n("<a href=\"whatsthis:%1\">How does this work?</a>", cwHowto), this);
activeLabel->setTextInteractionFlags(Qt::LinksAccessibleByMouse
|Qt::LinksAccessibleByKeyboard);
......
......@@ -282,7 +282,7 @@ void TodoSummaryWidget::updateView()
} //foreach
if (counter == 0) {
QLabel *noTodos = new QLabel(
auto *noTodos = new QLabel(
i18np("No pending to-dos due within the next day",
"No pending to-dos due within the next %1 days",
mDaysToGo), this);
......
......@@ -13,7 +13,7 @@ QDialogButtonBox::StandardButton PIMMessageBox::fourBtnMsgBox(QWidget *parent, Q
{
QDialog *dialog = new QDialog(parent);
dialog->setWindowTitle(caption);
QDialogButtonBox *box = new QDialogButtonBox(QDialogButtonBox::Yes | QDialogButtonBox::No | QDialogButtonBox::Cancel | QDialogButtonBox::Ok, parent);
auto *box = new QDialogButtonBox(QDialogButtonBox::Yes | QDialogButtonBox::No | QDialogButtonBox::Cancel | QDialogButtonBox::Ok, parent);
dialog->setObjectName(QStringLiteral("PIMMessageBox"));
box->button(QDialogButtonBox::Ok)->setText(button3Text);
box->button(QDialogButtonBox::Yes)->setText(button1Text);
......
......@@ -37,7 +37,7 @@ KOPrefsDialogGroupScheduling::KOPrefsDialogGroupScheduling(QWidget *parent)
= addWidBool(Akonadi::CalendarSettings::self()->bccItem(), topFrame);
topLayout->addWidget(bcc->checkBox(), 1, 0, 1, 2);
QLabel *aTransportLabel = new QLabel(
auto *aTransportLabel = new QLabel(
i18nc("@label", "Mail transport:"), topFrame);
topLayout->addWidget(aTransportLabel, 2, 0, 1, 2);
......
......@@ -100,7 +100,7 @@ KOPrefsDialogMain::KOPrefsDialogMain(QWidget *parent)
i18nc("@info:tooltip", "Enable this setting to show the KOrganizer "
"reminder daemon in your system tray (recommended)."));
QLabel *note = new QLabel(
auto *note = new QLabel(
xi18nc("@info",
"<note>The daemon will continue running even if it is not shown "
"in the system tray.</note>"));
......
......@@ -69,7 +69,7 @@ KOPrefsDialogTime::KOPrefsDialogTime(QWidget *parent)
holidayRegBoxHBoxLayout->setContentsMargins({});
holidaysLayout->addWidget(holidayRegBox, 1, 0, 1, 2);
QLabel *holidayLabel = new QLabel(i18nc("@label", "Use holiday region:"), holidayRegBox);
auto *holidayLabel = new QLabel(i18nc("@label", "Use holiday region:"), holidayRegBox);
holidayLabel->setToolTip(KOPrefs::instance()->holidaysItem()->toolTip());
holidayLabel->setWhatsThis(KOPrefs::instance()->holidaysItem()->whatsThis());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment