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

Use QStringLiteral

parent 472deb39
......@@ -113,7 +113,7 @@ bool MainWindow::loadPart()
return false;
}
m_part->setObjectName(QLatin1String("akregator_part"));
m_part->setObjectName(QStringLiteral("akregator_part"));
setCentralWidget(m_part->widget());
connect(m_part, SIGNAL(setWindowCaption(QString)), this, SLOT(setCaption(QString)));
......
......@@ -57,7 +57,7 @@ public:
explicit CompactStyleForm(QWidget *parent)
: QWidget(parent)
{
setObjectName(QLatin1String("AppearancePage"));
setObjectName(QStringLiteral("AppearancePage"));
setupUi(this);
}
};
......
......@@ -337,7 +337,7 @@ public:
QWidget *w = new QWidget;
dnOrderWidget = Kleo::DNAttributeMapper::instance()->configWidget(w);
dnOrderWidget->setObjectName(QLatin1String("dnOrderWidget"));
dnOrderWidget->setObjectName(QStringLiteral("dnOrderWidget"));
(new QVBoxLayout(w))->addWidget(dnOrderWidget);
tabWidget->addTab(w, i18n("DN-Attribute Order"));
......
......@@ -384,7 +384,7 @@ extern "C"
{
DirectoryServicesConfigurationPage *page =
new DirectoryServicesConfigurationPage(parent, args);
page->setObjectName(QLatin1String("kleopatra_config_dirserv"));
page->setObjectName(QStringLiteral("kleopatra_config_dirserv"));
return page;
}
}
......
......@@ -118,7 +118,7 @@ ResultItemWidget::ResultItemWidget(const shared_ptr<const Task::Result> &result,
topLayout->setMargin(0);
topLayout->setSpacing(0);
QFrame *frame = new QFrame;
frame->setObjectName(QLatin1String("resultFrame"));
frame->setObjectName(QStringLiteral("resultFrame"));
topLayout->addWidget(frame);
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->setMargin(0);
......
......@@ -264,7 +264,7 @@ void KWatchGnuPGMainWindow::slotConfigure()
{
if (!mConfig) {
mConfig = new KWatchGnuPGConfig(this);
mConfig->setObjectName(QLatin1String("config dialog"));
mConfig->setObjectName(QStringLiteral("config dialog"));
connect(mConfig, &KWatchGnuPGConfig::reconfigure,
this, &KWatchGnuPGMainWindow::slotReadConfig);
}
......
......@@ -49,7 +49,7 @@ using namespace MailCommon;
CollectionMailingListPage::CollectionMailingListPage(QWidget *parent) :
CollectionPropertiesPage(parent), mGroupWidget(Q_NULLPTR), mLastItem(0), changed(false)
{
setObjectName(QLatin1String("KMail::CollectionMailingListPage"));
setObjectName(QStringLiteral("KMail::CollectionMailingListPage"));
setPageTitle(i18nc("@title:tab Mailing list settings for a folder.", "Mailing List"));
}
......
......@@ -393,7 +393,7 @@ ComposerPageGeneralTab::ComposerPageGeneralTab(QWidget *parent)
// "Warn if too many recipients" checkbox/spinbox
mRecipientCheck = new QCheckBox(
GlobalSettings::self()->tooManyRecipientsItem()->label(), this);
mRecipientCheck->setObjectName(QLatin1String("kcfg_TooManyRecipients"));
mRecipientCheck->setObjectName(QStringLiteral("kcfg_TooManyRecipients"));
helpText = i18n(GlobalSettings::self()->tooManyRecipientsItem()->whatsThis().toUtf8());
mRecipientCheck->setWhatsThis(helpText);
mRecipientCheck->setToolTip(i18n("Warn if too many recipients are specified"));
......@@ -403,7 +403,7 @@ ComposerPageGeneralTab::ComposerPageGeneralTab(QWidget *parent)
mRecipientSpin->setMinimum(1/*min*/);
mRecipientSpin->setSingleStep(1/*step*/);
mRecipientSpin->setValue(5/*init*/);
mRecipientSpin->setObjectName(QLatin1String("kcfg_RecipientThreshold"));
mRecipientSpin->setObjectName(QStringLiteral("kcfg_RecipientThreshold"));
mRecipientSpin->setEnabled(false);
helpText = i18n(GlobalSettings::self()->recipientThresholdItem()->whatsThis().toUtf8());
mRecipientSpin->setWhatsThis(helpText);
......@@ -642,7 +642,7 @@ ComposerPageExternalEditorTab::ComposerPageExternalEditorTab(QWidget *parent)
mExternalEditorCheck = new QCheckBox(
GlobalSettings::self()->useExternalEditorItem()->label(), this);
mExternalEditorCheck->setObjectName(QLatin1String("kcfg_UseExternalEditor"));
mExternalEditorCheck->setObjectName(QStringLiteral("kcfg_UseExternalEditor"));
connect(mExternalEditorCheck, SIGNAL(toggled(bool)),
this, SLOT(slotEmitChanged()));
......
......@@ -283,7 +283,7 @@ KMComposeWin::KMComposeWin(const KMime::Message::Ptr &aMsg, bool lastSignState,
mMainWidget = new QWidget(this);
// splitter between the headers area and the actual editor
mHeadersToEditorSplitter = new QSplitter(Qt::Vertical, mMainWidget);
mHeadersToEditorSplitter->setObjectName(QLatin1String("mHeadersToEditorSplitter"));
mHeadersToEditorSplitter->setObjectName(QStringLiteral("mHeadersToEditorSplitter"));
mHeadersToEditorSplitter->setChildrenCollapsible(false);
mHeadersArea = new QWidget(mHeadersToEditorSplitter);
mHeadersArea->setSizePolicy(mHeadersToEditorSplitter->sizePolicy().horizontalPolicy(),
......@@ -321,11 +321,11 @@ KMComposeWin::KMComposeWin(const KMime::Message::Ptr &aMsg, bool lastSignState,
connect(transport, static_cast<void (MailTransport::TransportComboBox::*)(int)>(&MailTransport::TransportComboBox::activated), this, &KMComposeWin::slotTransportChanged);
mEdtFrom = new MessageComposer::ComposerLineEdit(false, mHeadersArea);
mEdtFrom->setObjectName(QLatin1String("fromLine"));
mEdtFrom->setObjectName(QStringLiteral("fromLine"));
mEdtFrom->setRecentAddressConfig(MessageComposer::MessageComposerSettings::self()->config());
mEdtFrom->setToolTip(i18n("Set the \"From:\" email address for this message"));
mEdtReplyTo = new MessageComposer::ComposerLineEdit(true, mHeadersArea);
mEdtReplyTo->setObjectName(QLatin1String("replyToLine"));
mEdtReplyTo->setObjectName(QStringLiteral("replyToLine"));
mEdtReplyTo->setRecentAddressConfig(MessageComposer::MessageComposerSettings::self()->config());
mEdtReplyTo->setToolTip(i18n("Set the \"Reply-To:\" email address for this message"));
connect(mEdtReplyTo, &MessageComposer::ComposerLineEdit::completionModeChanged, this, &KMComposeWin::slotCompletionModeChanged);
......@@ -363,10 +363,10 @@ KMComposeWin::KMComposeWin(const KMime::Message::Ptr &aMsg, bool lastSignState,
mFixedFontAction = Q_NULLPTR;
// the attachment view is separated from the editor by a splitter
mSplitter = new QSplitter(Qt::Vertical, mMainWidget);
mSplitter->setObjectName(QLatin1String("mSplitter"));
mSplitter->setObjectName(QStringLiteral("mSplitter"));
mSplitter->setChildrenCollapsible(false);
mSnippetSplitter = new QSplitter(Qt::Horizontal, mSplitter);
mSnippetSplitter->setObjectName(QLatin1String("mSnippetSplitter"));
mSnippetSplitter->setObjectName(QStringLiteral("mSnippetSplitter"));
mSplitter->addWidget(mSnippetSplitter);
QWidget *editorAndCryptoStateIndicators = new QWidget(mSplitter);
......
......@@ -157,7 +157,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
QVBoxLayout *vlay = new QVBoxLayout(page);
vlay->setMargin(0);
mTabWidget = new QTabWidget(page);
mTabWidget->setObjectName(QLatin1String("config-identity-tab"));
mTabWidget->setObjectName(QStringLiteral("config-identity-tab"));
vlay->addWidget(mTabWidget);
tab = new QWidget(mTabWidget);
......@@ -387,7 +387,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
++row;
mReplyToEdit = new KPIM::AddresseeLineEdit(tab, true);
mReplyToEdit->setClearButtonShown(true);
mReplyToEdit->setObjectName(QLatin1String("mReplyToEdit"));
mReplyToEdit->setObjectName(QStringLiteral("mReplyToEdit"));
glay->addWidget(mReplyToEdit, row, 1);
label = new QLabel(i18n("&Reply-To address:"), tab);
label->setBuddy(mReplyToEdit);
......@@ -409,7 +409,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
++row;
mCcEdit = new KPIM::AddresseeLineEdit(tab, true);
mCcEdit->setClearButtonShown(true);
mCcEdit->setObjectName(QLatin1String("mCcEdit"));
mCcEdit->setObjectName(QStringLiteral("mCcEdit"));
glay->addWidget(mCcEdit, row, 1);
label = new QLabel(i18n("&CC addresses:"), tab);
label->setBuddy(mCcEdit);
......@@ -429,7 +429,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
++row;
mBccEdit = new KPIM::AddresseeLineEdit(tab, true);
mBccEdit->setClearButtonShown(true);
mBccEdit->setObjectName(QLatin1String("mBccEdit"));
mBccEdit->setObjectName(QStringLiteral("mBccEdit"));
glay->addWidget(mBccEdit, row, 1);
label = new QLabel(i18n("&BCC addresses:"), tab);
label->setBuddy(mBccEdit);
......
......@@ -1028,7 +1028,7 @@ KMCommand::Result KMRedirectCommand::execute()
: MailCommon::RedirectDialog::SendLater;
MessageViewer::AutoQPointer<MailCommon::RedirectDialog> dlg(new MailCommon::RedirectDialog(sendMode, parentWidget()));
dlg->setObjectName(QLatin1String("redirect"));
dlg->setObjectName(QStringLiteral("redirect"));
if (dlg->exec() == QDialog::Rejected || !dlg) {
return Failed;
}
......
......@@ -1497,7 +1497,7 @@ void KMKernel::slotShowConfigurationDialog()
if (!mConfigureDialog) {
mConfigureDialog = new ConfigureDialog(Q_NULLPTR, false);
mConfigureDialog->setObjectName(QLatin1String("configure"));
mConfigureDialog->setObjectName(QStringLiteral("configure"));
connect(mConfigureDialog, &ConfigureDialog::configChanged, this, &KMKernel::slotConfigChanged);
}
......@@ -1961,7 +1961,7 @@ void KMKernel::openFilterDialog(bool createDummyFilter)
{
if (!mFilterEditDialog) {
mFilterEditDialog = new MailCommon::KMFilterDialog(getKMMainWidget()->actionCollections(), Q_NULLPTR, createDummyFilter);
mFilterEditDialog->setObjectName(QLatin1String("filterdialog"));
mFilterEditDialog->setObjectName(QStringLiteral("filterdialog"));
}
mFilterEditDialog->show();
mFilterEditDialog->raise();
......
......@@ -684,10 +684,10 @@ void KMMainWidget::layoutSplitters()
//
// Set splitter properties
//
mSplitter1->setObjectName(QLatin1String("splitter1"));
mSplitter1->setObjectName(QStringLiteral("splitter1"));
mSplitter1->setOpaqueResize(opaqueResize);
//mSplitter1->setChildrenCollapsible( false );
mSplitter2->setObjectName(QLatin1String("splitter2"));
mSplitter2->setObjectName(QStringLiteral("splitter2"));
mSplitter2->setOpaqueResize(opaqueResize);
//mSplitter2->setChildrenCollapsible( false );
......@@ -1257,7 +1257,7 @@ bool KMMainWidget::slotSearch()
if (!mSearchWin) {
mSearchWin = new SearchWindow(this, mCurrentFolder ? mCurrentFolder->collection() : Akonadi::Collection());
mSearchWin->setModal(false);
mSearchWin->setObjectName(QLatin1String("Search"));
mSearchWin->setObjectName(QStringLiteral("Search"));
} else {
mSearchWin->activateFolder(mCurrentFolder ? mCurrentFolder->collection() : Akonadi::Collection());
}
......
......@@ -476,7 +476,7 @@ void SummaryViewPart::initGUI(KontactInterface::Core *core)
sa->setWidgetResizable(true);
mMainWidget = new QFrame;
mMainWidget->setObjectName(QLatin1String("mMainWidget"));
mMainWidget->setObjectName(QStringLiteral("mMainWidget"));
sa->setWidget(mMainWidget);
mMainWidget->setFocusPolicy(Qt::StrongFocus);
setWidget(sa);
......
......@@ -100,7 +100,7 @@ void SummaryView::doSync()
KParts::ReadOnlyPart *SummaryView::createPart()
{
mPart = new SummaryViewPart(core(), "summarypartframe", aboutData(), this);
mPart->setObjectName(QLatin1String("summaryPart"));
mPart->setObjectName(QStringLiteral("summaryPart"));
return mPart;
}
......
......@@ -67,7 +67,7 @@ KOAlarmClient::KOAlarmClient(QObject *parent)
QStringList mimeTypes;
mimeTypes << Event::eventMimeType() << Todo::todoMimeType();
mCalendar = Akonadi::ETMCalendar::Ptr(new Akonadi::ETMCalendar(mimeTypes));
mCalendar->setObjectName(QLatin1String("KOrgac's calendar"));
mCalendar->setObjectName(QStringLiteral("KOrgac's calendar"));
mETM = mCalendar->entityTreeModel();
connect(&mCheckTimer, &QTimer::timeout, this, &KOAlarmClient::checkAlarms);
......
......@@ -224,7 +224,7 @@ void ActionManager::createCalendarAkonadi()
AkonadiCollectionViewFactory factory(mCalendarView);
mCalendarView->addExtension(&factory);
mCollectionView = factory.collectionView();
mCollectionView->setObjectName(QLatin1String("Resource View"));
mCollectionView->setObjectName(QStringLiteral("Resource View"));
connect(mCollectionView, &AkonadiCollectionView::resourcesAddedRemoved, this, &ActionManager::slotResourcesAddedRemoved);
connect(mCollectionView, SIGNAL(defaultResourceChanged(Akonadi::Collection)),
SLOT(slotDefaultResourceChanged(Akonadi::Collection)));
......
......@@ -120,7 +120,7 @@ CalendarView::CalendarView(QWidget *parent)
// calendars in korganizer shouldn't affect kontact's summary view
mCalendar = Akonadi::ETMCalendar::Ptr(new Akonadi::ETMCalendar(CalendarSupport::calendarSingleton().data()));
mCalendar->setObjectName(QLatin1String("KOrg Calendar"));
mCalendar->setObjectName(QStringLiteral("KOrg Calendar"));
mCalendarClipboard = new Akonadi::CalendarClipboard(mCalendar, mChanger, this);
mITIPHandler = new Akonadi::ITIPHandler(this);
mITIPHandler->setCalendar(mCalendar);
......@@ -149,28 +149,28 @@ CalendarView::CalendarView(QWidget *parent)
// create the main layout frames.
mPanner = new QSplitter(Qt::Horizontal, this);
mPanner->setObjectName(QLatin1String("CalendarView::Panner"));
mPanner->setObjectName(QStringLiteral("CalendarView::Panner"));
topLayout->addWidget(mPanner);
mLeftSplitter = new QSplitter(Qt::Vertical, mPanner);
mLeftSplitter->setObjectName(QLatin1String("CalendarView::LeftFrame"));
mLeftSplitter->setObjectName(QStringLiteral("CalendarView::LeftFrame"));
// The GUI checkboxes of "show widget XYZ" are confusing when the QSplitter
// hides the widget magically. I know I blamed Akonadi for not showing my
// calendar more than once.
mLeftSplitter->setChildrenCollapsible(false);
mDateNavigatorContainer = new DateNavigatorContainer(mLeftSplitter);
mDateNavigatorContainer->setObjectName(QLatin1String("CalendarView::DateNavigator"));
mDateNavigatorContainer->setObjectName(QStringLiteral("CalendarView::DateNavigator"));
mTodoList = new KOTodoView(true/*sidebar*/, mLeftSplitter);
mTodoList->setObjectName(QLatin1String("todolist"));
mTodoList->setObjectName(QStringLiteral("todolist"));
mEventViewerBox = new QWidget(mLeftSplitter);
QVBoxLayout *mEventViewerBoxVBoxLayout = new QVBoxLayout(mEventViewerBox);
mEventViewerBoxVBoxLayout->setMargin(0);
mEventViewerBoxVBoxLayout->setMargin(0);
mEventViewer = new CalendarSupport::IncidenceViewer(mCalendar.data(), mEventViewerBox);
mEventViewer->setObjectName(QLatin1String("EventViewer"));
mEventViewer->setObjectName(QStringLiteral("EventViewer"));
mEventViewerBoxVBoxLayout->addWidget(mEventViewer);
QWidget *rightBox = new QWidget(mPanner);
......
......@@ -56,7 +56,7 @@ KOrganizer::KOrganizer() : KParts::MainWindow(), KOrg::MainWindow()
// setMinimumSize(600,400); // make sure we don't get resized too small...
mCalendarView = new CalendarView(this);
mCalendarView->setObjectName(QLatin1String("KOrganizer::CalendarView"));
mCalendarView->setObjectName(QStringLiteral("KOrganizer::CalendarView"));
setCentralWidget(mCalendarView);
mActionManager = new ActionManager(this, mCalendarView, this, this, false, menuBar());
......
......@@ -1050,7 +1050,7 @@ KOPrefsDialogGroupwareScheduling::KOPrefsDialogGroupwareScheduling(QWidget *pare
{
mGroupwarePage = new Ui::KOGroupwarePrefsPage();
QWidget *widget = new QWidget(this);
widget->setObjectName(QLatin1String("KOGrouparePrefsPage"));
widget->setObjectName(QStringLiteral("KOGrouparePrefsPage"));
mGroupwarePage->setupUi(widget);
......
......@@ -592,7 +592,7 @@ void KTNEFMain::createOpenWithMenu(QMenu *topMenu)
if (offers.count() > 1) { // submenu 'open with'
menu = new QMenu(i18nc("@title:menu", "&Open With"), topMenu);
menu->menuAction()->setObjectName(QLatin1String("openWith_submenu")); // for the unittest
menu->menuAction()->setObjectName(QStringLiteral("openWith_submenu")); // for the unittest
topMenu->addMenu(menu);
}
......
......@@ -38,7 +38,7 @@ QWidget *SieveActionAbstractFlags::createParamWidget(QWidget *parent) const
w->setLayout(lay);
SelectFlagsWidget *flagsWidget = new SelectFlagsWidget;
connect(flagsWidget, &SelectFlagsWidget::valueChanged, this, &SieveActionAbstractFlags::valueChanged);
flagsWidget->setObjectName(QLatin1String("flagswidget"));
flagsWidget->setObjectName(QStringLiteral("flagswidget"));
lay->addWidget(flagsWidget);
return w;
}
......
......@@ -112,13 +112,13 @@ QWidget *SieveActionFileInto::createParamWidget(QWidget *parent) const
if (mHasCopySupport) {
QCheckBox *copy = new QCheckBox(i18n("Keep a copy"));
copy->setObjectName(QLatin1String("copy"));
copy->setObjectName(QStringLiteral("copy"));
lay->addWidget(copy);
connect(copy, &QCheckBox::clicked, this, &SieveActionFileInto::valueChanged);
}
if (mHasMailBoxSupport) {
QCheckBox *create = new QCheckBox(i18n("Create folder"));
create->setObjectName(QLatin1String("create"));
create->setObjectName(QStringLiteral("create"));
connect(create, &QCheckBox::clicked, this, &SieveActionFileInto::valueChanged);
lay->addWidget(create);
}
......@@ -128,7 +128,7 @@ QWidget *SieveActionFileInto::createParamWidget(QWidget *parent) const
QLineEdit *edit = new QLineEdit;
connect(edit, &QLineEdit::textChanged, this, &SieveActionFileInto::valueChanged);
lay->addWidget(edit);
edit->setObjectName(QLatin1String("fileintolineedit"));
edit->setObjectName(QStringLiteral("fileintolineedit"));
return w;
}
......
......@@ -54,7 +54,7 @@ QWidget *SieveActionVacation::createParamWidget(QWidget *parent) const
QLabel *lab = Q_NULLPTR;
if (mHasVacationSecondsSupport) {
SelectVacationComboBox *vacation = new SelectVacationComboBox;
vacation->setObjectName(QLatin1String("vacationcombobox"));
vacation->setObjectName(QStringLiteral("vacationcombobox"));
connect(vacation, &SelectVacationComboBox::valueChanged, this, &SieveActionVacation::valueChanged);
grid->addWidget(vacation, 0 , 0);
} else {
......@@ -65,7 +65,7 @@ QWidget *SieveActionVacation::createParamWidget(QWidget *parent) const
QSpinBox *day = new QSpinBox;
day->setMinimum(1);
day->setMaximum(999);
day->setObjectName(QLatin1String("day"));
day->setObjectName(QStringLiteral("day"));
connect(day, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &SieveActionVacation::valueChanged);
grid->addWidget(day, 0 , 1);
......@@ -73,7 +73,7 @@ QWidget *SieveActionVacation::createParamWidget(QWidget *parent) const
grid->addWidget(lab, 1 , 0);
QLineEdit *subject = new QLineEdit;
subject->setObjectName(QLatin1String("subject"));
subject->setObjectName(QStringLiteral("subject"));
connect(subject, &QLineEdit::textChanged, this, &SieveActionVacation::valueChanged);
grid->addWidget(subject, 1 , 1);
......@@ -81,7 +81,7 @@ QWidget *SieveActionVacation::createParamWidget(QWidget *parent) const
grid->addWidget(lab, 2 , 0);
QLineEdit *addresses = new QLineEdit;
addresses->setObjectName(QLatin1String("addresses"));
addresses->setObjectName(QStringLiteral("addresses"));
connect(addresses, &QLineEdit::textChanged, this, &SieveActionVacation::valueChanged);
grid->addWidget(addresses, 2 , 1);
......@@ -90,7 +90,7 @@ QWidget *SieveActionVacation::createParamWidget(QWidget *parent) const
MultiLineEdit *text = new MultiLineEdit;
connect(text, &MultiLineEdit::valueChanged, this, &SieveActionVacation::valueChanged);
text->setObjectName(QLatin1String("text"));
text->setObjectName(QStringLiteral("text"));
grid->addWidget(text, 3 , 1);
return w;
......
......@@ -48,7 +48,7 @@ QWidget *SieveConditionServerMetaData::createParamWidget(QWidget *parent) const
w->setLayout(lay);
SelectMatchTypeComboBox *selectType = new SelectMatchTypeComboBox;
selectType->setObjectName(QLatin1String("selecttype"));
selectType->setObjectName(QStringLiteral("selecttype"));
connect(selectType, &SelectMatchTypeComboBox::valueChanged, this, &SieveConditionServerMetaData::valueChanged);
lay->addWidget(selectType);
......@@ -60,7 +60,7 @@ QWidget *SieveConditionServerMetaData::createParamWidget(QWidget *parent) const
grid->addWidget(lab, 0, 0);
QLineEdit *mailbox = new QLineEdit;
mailbox->setObjectName(QLatin1String("mailbox"));
mailbox->setObjectName(QStringLiteral("mailbox"));
connect(mailbox, &QLineEdit::textChanged, this, &SieveConditionServerMetaData::valueChanged);
grid->addWidget(mailbox, 0, 1);
......@@ -69,7 +69,7 @@ QWidget *SieveConditionServerMetaData::createParamWidget(QWidget *parent) const
QLineEdit *annotation = new QLineEdit;
connect(annotation, &QLineEdit::textChanged, this, &SieveConditionServerMetaData::valueChanged);
annotation->setObjectName(QLatin1String("annotation"));
annotation->setObjectName(QStringLiteral("annotation"));
grid->addWidget(annotation, 1, 1);
lab = new QLabel(i18n("Value:"));
......@@ -77,7 +77,7 @@ QWidget *SieveConditionServerMetaData::createParamWidget(QWidget *parent) const
QLineEdit *value = new QLineEdit;
connect(value, &QLineEdit::textChanged, this, &SieveConditionServerMetaData::valueChanged);
value->setObjectName(QLatin1String("value"));
value->setObjectName(QStringLiteral("value"));
grid->addWidget(value, 2, 1);
return w;
......
......@@ -46,7 +46,7 @@ QWidget *SieveConditionSize::createParamWidget(QWidget *parent) const
w->setLayout(lay);
QComboBox *combo = new QComboBox;
combo->setObjectName(QLatin1String("combosize"));
combo->setObjectName(QStringLiteral("combosize"));
combo->addItem(i18n("under"), QStringLiteral(":under"));
combo->addItem(i18n("over"), QStringLiteral(":over"));
lay->addWidget(combo);
......@@ -54,7 +54,7 @@ QWidget *SieveConditionSize::createParamWidget(QWidget *parent) const
SelectSizeWidget *sizeWidget = new SelectSizeWidget;
connect(sizeWidget, &SelectSizeWidget::valueChanged, this, &SieveConditionSize::valueChanged);
sizeWidget->setObjectName(QLatin1String("sizewidget"));
sizeWidget->setObjectName(QStringLiteral("sizewidget"));
lay->addWidget(sizeWidget);
return w;
......
......@@ -49,18 +49,18 @@ QWidget *SieveConditionVirusTest::createParamWidget(QWidget *parent) const
SelectRelationalMatchType *relation = new SelectRelationalMatchType;
connect(relation, &SelectRelationalMatchType::valueChanged, this, &SieveConditionVirusTest::valueChanged);
relation->setObjectName(QLatin1String("relation"));
relation->setObjectName(QStringLiteral("relation"));
lay->addWidget(relation);
SelectComparatorComboBox *comparator = new SelectComparatorComboBox;
connect(comparator, &SelectComparatorComboBox::valueChanged, this, &SieveConditionVirusTest::valueChanged);
comparator->setObjectName(QLatin1String("comparator"));
comparator->setObjectName(QStringLiteral("comparator"));
lay->addWidget(comparator);
QSpinBox *spinbox = new QSpinBox;
spinbox->setMaximum(5);
spinbox->setMinimum(0);
spinbox->setObjectName(QLatin1String("value"));
spinbox->setObjectName(QStringLiteral("value"));
connect(spinbox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &SieveConditionVirusTest::valueChanged);
lay->addWidget(spinbox);
return w;
......
......@@ -58,7 +58,7 @@ CollectionGeneralPage::CollectionGeneralPage(QWidget *parent)
mNameEdit(0),
mFolderCollection(0)
{
setObjectName(QLatin1String("MailCommon::CollectionGeneralPage"));
setObjectName(QStringLiteral("MailCommon::CollectionGeneralPage"));
setPageTitle(i18nc("@title:tab General settings for a folder.", "General"));
}
......
......@@ -39,7 +39,7 @@ FilterAction *FilterActionSetTransport::newAction()
QWidget *FilterActionSetTransport::createParamWidget(QWidget *parent) const
{
MailTransport::TransportComboBox *transportCombobox = new MailTransport::TransportComboBox(parent);
transportCombobox->setObjectName(QLatin1String("transportcombobox"));
transportCombobox->setObjectName(QStringLiteral("transportcombobox"));
setParamWidgetValue(transportCombobox);
connect(transportCombobox, static_cast<void (MailTransport::TransportComboBox::*)(int)>(&MailTransport::TransportComboBox::currentIndexChanged), this, &FilterActionSetTransport::filterActionModified);
......
......@@ -44,7 +44,7 @@ QWidget *FilterActionWithFolder::createParamWidget(QWidget *parent) const
FolderRequester *requester = new FolderRequester(parent);
requester->setShowOutbox(false);
setParamWidgetValue(requester);
requester->setObjectName(QLatin1String("folderrequester"));
requester->setObjectName(QStringLiteral("folderrequester"));
connect(requester, &FolderRequester::folderChanged, this, &FilterActionWithFolder::filterActionModified);
......
......@@ -39,7 +39,7 @@ QWidget *FilterActionWithString::createParamWidget(QWidget *parent) const
{
KLineEdit *lineEdit = new KLineEdit(parent);
lineEdit->setClearButtonEnabled(true);
lineEdit->setObjectName(QLatin1String("lineedit"));
lineEdit->setObjectName(QStringLiteral("lineedit"));
lineEdit->setTrapReturnKey(true);
lineEdit->setText(mParameter);
......
......@@ -31,7 +31,7 @@ FilterActionWithStringList::FilterActionWithStringList(const QString &name, cons
QWidget *FilterActionWithStringList::createParamWidget(QWidget *parent) const
{
PimCommon::MinimumComboBox *comboBox = new PimCommon::MinimumComboBox(parent);
comboBox->setObjectName(QLatin1String("combobox"));
comboBox->setObjectName(QStringLiteral("combobox"));
comboBox->setEditable(false);
comboBox->addItems(mParameterList);
setParamWidgetValue(comboBox);
......
......@@ -43,7 +43,7 @@ QWidget *FilterActionWithTest::createParamWidget(QWidget *parent) const
{
SoundTestWidget *soundWidget = new SoundTestWidget(parent);
soundWidget->setUrl(mParameter);
soundWidget->setObjectName(QLatin1String("soundwidget"));
soundWidget->setObjectName(QStringLiteral("soundwidget"));
connect(soundWidget, &SoundTestWidget::textChanged, this, &FilterActionWithTest::filterActionModified);
......
......@@ -64,10 +64,10 @@ QWidget *FilterActionWithUrl::createParamWidget(QWidget *parent) const
widget->setLayout(layout);
KUrlRequester *requester = new KUrlRequester(parent);
requester->setUrl(QUrl::fromLocalFile(mParameter));
requester->setObjectName(QLatin1String("requester"));
requester->setObjectName(QStringLiteral("requester"));
layout->addWidget(requester);
mHelpButton = new FilterActionWithUrlHelpButton(parent);
mHelpButton->setObjectName(QLatin1String("helpbutton"));
mHelpButton->setObjectName(QStringLiteral("helpbutton"));
connect(mHelpButton, SIGNAL(clicked()), this, SLOT(slotHelp()));
layout->addWidget(mHelpButton);
......
......@@ -48,11 +48,11 @@ InvalidFilterDialog::InvalidFilterDialog(QWidget *parent)
QVBoxLayout *vbox = new QVBoxLayout;
w->setLayout(vbox);
mInvalidFilterWidget = new InvalidFilterWidget(this);
mInvalidFilterWidget->setObjectName(QLatin1String("invalid_filter_widget"));
mInvalidFilterWidget->setObjectName(QStringLiteral("invalid_filter_widget"));
vbox->addWidget(mInvalidFilterWidget);
mInvalidFilterInfoWidget = new InvalidFilterInfoWidget(this);
mInvalidFilterInfoWidget->setObjectName(QLatin1String("invalid_filter_infowidget"));
mInvalidFilterInfoWidget->setObjectName(QStringLiteral("invalid_filter_infowidget"));
vbox->addWidget(mInvalidFilterInfoWidget);
connect(mInvalidFilterWidget, SIGNAL(showDetails(QString)), mInvalidFilterInfoWidget, SLOT(slotShowDetails(QString)));
connect(mInvalidFilterWidget, SIGNAL(hideInformationWidget()), mInvalidFilterInfoWidget, SLOT(animatedHide()));
......
......@@ -31,7 +31,7 @@ InvalidFilterWidget::InvalidFilterWidget(QWidget *parent)
QLabel *lab = new QLabel(i18n("The following filters are invalid (e.g. containing no actions "
"or no search rules). Discard or edit invalid filters?"));
lab->setWordWrap(true);
lab->setObjectName(QLatin1String("label"));
lab->setObjectName(QStringLiteral("label"));
vbox->addWidget(lab);
mInvalidFilterListWidget = new InvalidFilterListView(this);
......