Commit f000b91e authored by Laurent Montel's avatar Laurent Montel 😁

Use QStringLiteral

parent 3bd854b2
......@@ -205,7 +205,7 @@ void EditDisplayAlarmDlg::type_init(QWidget* parent, QVBoxLayout* frameLayout)
// File browse button
mFileBrowseButton = new QPushButton(mFileBox);
fileBoxHLayout->addWidget(mFileBrowseButton);
mFileBrowseButton->setIcon(SmallIcon(QLatin1String("document-open")));
mFileBrowseButton->setIcon(SmallIcon(QStringLiteral("document-open")));
int size = mFileBrowseButton->sizeHint().height();
mFileBrowseButton->setFixedSize(size, size);
mFileBrowseButton->setToolTip(i18nc("@info:tooltip", "Choose a file"));
......@@ -805,7 +805,7 @@ void EditCommandAlarmDlg::type_init(QWidget* parent, QVBoxLayout* frameLayout)
// The file browser dialog is activated by the PickLogFileRadio class.
QPushButton* browseButton = new QPushButton(box);
boxHLayout->addWidget(browseButton);
browseButton->setIcon(SmallIcon(QLatin1String("document-open")));
browseButton->setIcon(SmallIcon(QStringLiteral("document-open")));
int size = browseButton->sizeHint().height();
browseButton->setFixedSize(size, size);
browseButton->setToolTip(i18nc("@info:tooltip", "Choose a file"));
......@@ -1110,7 +1110,7 @@ void EditEmailAlarmDlg::type_init(QWidget* parent, QVBoxLayout* frameLayout)
grid->addWidget(mEmailToEdit, 1, 1);
mEmailAddressButton = new QPushButton(parent);
mEmailAddressButton->setIcon(SmallIcon(QLatin1String("help-contents")));
mEmailAddressButton->setIcon(SmallIcon(QStringLiteral("help-contents")));
int size = mEmailAddressButton->sizeHint().height();
mEmailAddressButton->setFixedSize(size, size);
connect(mEmailAddressButton, &QPushButton::clicked, this, &EditEmailAlarmDlg::openAddressBook);
......
......@@ -1333,7 +1333,7 @@ EditPrefTab::EditPrefTab(StackedScrollGroup* scrollGroup)
mSoundFile = new QLineEdit(box);
mSoundFileLabel->setBuddy(mSoundFile);
mSoundFileBrowse = new QPushButton(box);
mSoundFileBrowse->setIcon(QIcon(SmallIcon(QLatin1String("document-open"))));
mSoundFileBrowse->setIcon(QIcon(SmallIcon(QStringLiteral("document-open"))));
int size = mSoundFileBrowse->sizeHint().height();
mSoundFileBrowse->setFixedSize(size, size);
connect(mSoundFileBrowse, SIGNAL(clicked()), SLOT(slotBrowseSoundFile()));
......
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