Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Pim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Unmaintained
KDE Pim
Commits
fb70c702
Commit
fb70c702
authored
May 03, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
David told me that it's a usercase when QLatin1String is better than QStringLiteral
parent
e9064f54
Changes
68
Hide whitespace changes
Inline
Side-by-side
Showing
68 changed files
with
320 additions
and
320 deletions
+320
-320
akonadiconsole/debugwidget.cpp
akonadiconsole/debugwidget.cpp
+1
-1
blogilo/src/mainwindow.cpp
blogilo/src/mainwindow.cpp
+1
-1
composereditor-ng/composerview.cpp
composereditor-ng/composerview.cpp
+6
-6
importwizard/autodetect/opera/operaaddressbook.cpp
importwizard/autodetect/opera/operaaddressbook.cpp
+2
-2
importwizard/autodetect/sylpheed/sylpheedaddressbook.cpp
importwizard/autodetect/sylpheed/sylpheedaddressbook.cpp
+8
-8
importwizard/autodetect/thunderbird/thunderbirdsettings.cpp
importwizard/autodetect/thunderbird/thunderbirdsettings.cpp
+11
-11
importwizard/autodetect/trojita/trojitasettings.cpp
importwizard/autodetect/trojita/trojitasettings.cpp
+3
-3
incidenceeditor-ng/opencomposerjob.cpp
incidenceeditor-ng/opencomposerjob.cpp
+1
-1
kaddressbook/merge/autotests/mergecontactsdialogtest.cpp
kaddressbook/merge/autotests/mergecontactsdialogtest.cpp
+5
-5
kaddressbook/merge/autotests/mergecontactselectinformationscrollareatest.cpp
...autotests/mergecontactselectinformationscrollareatest.cpp
+1
-1
kaddressbook/merge/autotests/mergecontactwidgettest.cpp
kaddressbook/merge/autotests/mergecontactwidgettest.cpp
+1
-1
kaddressbook/merge/autotests/searchandmergecontactduplicatecontactdialogtest.cpp
...tests/searchandmergecontactduplicatecontactdialogtest.cpp
+6
-6
kaddressbook/xxport/xxportfactory.cpp
kaddressbook/xxport/xxportfactory.cpp
+8
-8
kaddressbook/xxport/xxportmanager.cpp
kaddressbook/xxport/xxportmanager.cpp
+1
-1
kaddressbookgrantlee/formatter/grantleecontactformatter.cpp
kaddressbookgrantlee/formatter/grantleecontactformatter.cpp
+6
-6
kaddressbookgrantlee/formatter/grantleecontactutils.cpp
kaddressbookgrantlee/formatter/grantleecontactutils.cpp
+20
-20
kalarm/akonadiresourcecreator.cpp
kalarm/akonadiresourcecreator.cpp
+2
-2
kalarm/lib/filedialog.cpp
kalarm/lib/filedialog.cpp
+1
-1
kmail/configuredialog/configurecomposerpage.cpp
kmail/configuredialog/configurecomposerpage.cpp
+2
-2
kmail/editor/potentialphishingemail/potentialphishingemailwarning.cpp
.../potentialphishingemail/potentialphishingemailwarning.cpp
+1
-1
kmail/job/saveasfilejob.cpp
kmail/job/saveasfilejob.cpp
+3
-3
kmail/kontactplugin/kmail_plugin.cpp
kmail/kontactplugin/kmail_plugin.cpp
+1
-1
kmail/mailmerge/autotests/mailmergewidgettest.cpp
kmail/mailmerge/autotests/mailmergewidgettest.cpp
+2
-2
kmail/messageactions.cpp
kmail/messageactions.cpp
+1
-1
korganizer/akonadicollectionview.cpp
korganizer/akonadicollectionview.cpp
+1
-1
korganizer/kontactplugin/korganizer/journalplugin.cpp
korganizer/kontactplugin/korganizer/journalplugin.cpp
+1
-1
korganizer/kontactplugin/korganizer/korganizerplugin.cpp
korganizer/kontactplugin/korganizer/korganizerplugin.cpp
+1
-1
korganizer/kontactplugin/korganizer/todoplugin.cpp
korganizer/kontactplugin/korganizer/todoplugin.cpp
+1
-1
korganizer/koviewmanager.cpp
korganizer/koviewmanager.cpp
+8
-8
korganizer/plugins/hebrew/configdialog.cpp
korganizer/plugins/hebrew/configdialog.cpp
+1
-1
korganizer/plugins/hebrew/hebrew.cpp
korganizer/plugins/hebrew/hebrew.cpp
+1
-1
libkdepim/addressline/addresslineedit/addresseelineedit.cpp
libkdepim/addressline/addresslineedit/addresseelineedit.cpp
+1
-1
libkdepim/addressline/blacklistbaloocompletion/blacklistbalooemailcompletionwidget.cpp
...stbaloocompletion/blacklistbalooemailcompletionwidget.cpp
+1
-1
libksieve/kmanagesieve/session.cpp
libksieve/kmanagesieve/session.cpp
+1
-1
libksieve/ksieveui/autocreatescripts/sieveactions/sieveactionbreak.cpp
...eveui/autocreatescripts/sieveactions/sieveactionbreak.cpp
+5
-5
libksieve/ksieveui/autocreatescripts/sieveactions/sieveactionenclose.cpp
...eui/autocreatescripts/sieveactions/sieveactionenclose.cpp
+6
-6
libksieve/ksieveui/autocreatescripts/sieveactions/sieveactionreject.cpp
...veui/autocreatescripts/sieveactions/sieveactionreject.cpp
+3
-3
libksieve/ksieveui/autocreatescripts/sieveactions/sieveactionreplace.cpp
...eui/autocreatescripts/sieveactions/sieveactionreplace.cpp
+6
-6
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionbody.cpp
.../autocreatescripts/sieveconditions/sieveconditionbody.cpp
+4
-4
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditioncurrentdate.cpp
...eatescripts/sieveconditions/sieveconditioncurrentdate.cpp
+4
-4
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditiondate.cpp
.../autocreatescripts/sieveconditions/sieveconditiondate.cpp
+4
-4
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionenvelope.cpp
...ocreatescripts/sieveconditions/sieveconditionenvelope.cpp
+5
-5
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionexists.cpp
...utocreatescripts/sieveconditions/sieveconditionexists.cpp
+4
-4
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionheader.cpp
...utocreatescripts/sieveconditions/sieveconditionheader.cpp
+5
-5
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionihave.cpp
...autocreatescripts/sieveconditions/sieveconditionihave.cpp
+3
-3
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionmailboxexists.cpp
...tescripts/sieveconditions/sieveconditionmailboxexists.cpp
+3
-3
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionmetadata.cpp
...ocreatescripts/sieveconditions/sieveconditionmetadata.cpp
+4
-4
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionmetadataexists.cpp
...escripts/sieveconditions/sieveconditionmetadataexists.cpp
+3
-3
libksieve/ksieveui/autocreatescripts/sieveconditions/sieveconditionservermetadataexists.cpp
...ts/sieveconditions/sieveconditionservermetadataexists.cpp
+3
-3
libksieve/ksieveui/autocreatescripts/sieveconditions/widgets/selectbodytypewidget.cpp
...escripts/sieveconditions/widgets/selectbodytypewidget.cpp
+2
-2
libksieve/ksieveui/autocreatescripts/sieveconditions/widgets/selectdatewidget.cpp
...reatescripts/sieveconditions/widgets/selectdatewidget.cpp
+13
-13
libksieve/ksieveui/autocreatescripts/sieveconditions/widgets/selectsizewidget.cpp
...reatescripts/sieveconditions/widgets/selectsizewidget.cpp
+3
-3
libksieve/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
...ve/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
+2
-2
libksieve/ksieveui/editor/sieveeditorutil.cpp
libksieve/ksieveui/editor/sieveeditorutil.cpp
+41
-41
libksieve/ksieveui/editor/warningwidget/sieveeditorparsingmissingfeaturewarning.cpp
...warningwidget/sieveeditorparsingmissingfeaturewarning.cpp
+1
-1
libksieve/ksieveui/managescriptsjob/parseuserscriptjob.cpp
libksieve/ksieveui/managescriptsjob/parseuserscriptjob.cpp
+3
-3
libksieve/ksieveui/scriptsparsing/xmlprintingscriptbuilder.cpp
...ieve/ksieveui/scriptsparsing/xmlprintingscriptbuilder.cpp
+6
-6
libksieve/ksieveui/vacation/vacation.cpp
libksieve/ksieveui/vacation/vacation.cpp
+1
-1
libksieve/ksieveui/widgets/managesievewidget.cpp
libksieve/ksieveui/widgets/managesievewidget.cpp
+4
-4
mailcommon/filter/filteractions/filteractionaddtoaddressbook.cpp
...mon/filter/filteractions/filteractionaddtoaddressbook.cpp
+4
-4
messageviewer/header/headerstrategy.cpp
messageviewer/header/headerstrategy.cpp
+5
-5
messageviewer/header/headerstyle.cpp
messageviewer/header/headerstyle.cpp
+5
-5
messageviewer/scamdetection/scamdetectionwarningwidget.cpp
messageviewer/scamdetection/scamdetectionwarningwidget.cpp
+1
-1
messageviewer/widgets/configurewidget.cpp
messageviewer/widgets/configurewidget.cpp
+1
-1
pimsettingexporter/mail/exportmailjob.cpp
pimsettingexporter/mail/exportmailjob.cpp
+1
-1
pimsettingexporter/xml/templateselection.cpp
pimsettingexporter/xml/templateselection.cpp
+13
-13
plugins/messageviewer/bodypartformatter/calendar/text_calendar.cpp
...essageviewer/bodypartformatter/calendar/text_calendar.cpp
+39
-39
storageservicemanager/storageservicetreewidget.cpp
storageservicemanager/storageservicetreewidget.cpp
+2
-2
No files found.
akonadiconsole/debugwidget.cpp
View file @
fb70c702
...
...
@@ -50,7 +50,7 @@ DebugWidget::DebugWidget(QWidget *parent)
}
mDebugInterface
=
new
DebugInterface
(
service
,
"/debug"
,
QDBusConnection
::
sessionBus
(),
this
);
QCheckBox
*
cb
=
new
QCheckBox
(
i18n
(
"Enable debugger"
),
this
);
cb
->
setChecked
(
mDebugInterface
->
isValid
()
&&
mDebugInterface
->
tracer
().
value
()
==
Q
StringLiteral
(
"dbus"
));
cb
->
setChecked
(
mDebugInterface
->
isValid
()
&&
mDebugInterface
->
tracer
().
value
()
==
Q
Latin1String
(
"dbus"
));
connect
(
cb
,
&
QCheckBox
::
toggled
,
this
,
&
DebugWidget
::
enableDebugger
);
layout
->
addWidget
(
cb
);
...
...
blogilo/src/mainwindow.cpp
View file @
fb70c702
...
...
@@ -364,7 +364,7 @@ void MainWindow::slotDialogDestroyed(QObject *win)
{
const
QSize
size
=
qobject_cast
<
QWidget
*>
(
win
)
->
size
();
const
QString
name
=
win
->
objectName
();
if
(
name
==
Q
StringLiteral
(
"settings"
))
{
if
(
name
==
Q
Latin1String
(
"settings"
))
{
Settings
::
setConfigWindowSize
(
size
);
}
}
...
...
composereditor-ng/composerview.cpp
View file @
fb70c702
...
...
@@ -226,15 +226,15 @@ void ComposerView::contextMenuEvent(QContextMenuEvent *event)
const
bool
imageSelected
=
!
d
->
contextMenuResult
.
imageUrl
().
isEmpty
();
const
QWebElement
elm
=
d
->
contextMenuResult
.
element
();
const
bool
tableCellSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
StringLiteral
(
"td"
));
const
bool
tableSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
StringLiteral
(
"table"
)
||
const
bool
tableCellSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
Latin1String
(
"td"
));
const
bool
tableSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
Latin1String
(
"table"
)
||
tableCellSelected
);
const
bool
listSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
StringLiteral
(
"ol"
)
||
elm
.
tagName
().
toLower
()
==
Q
StringLiteral
(
"ul"
)
||
elm
.
tagName
().
toLower
()
==
Q
StringLiteral
(
"li"
));
const
bool
listSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
Latin1String
(
"ol"
)
||
elm
.
tagName
().
toLower
()
==
Q
Latin1String
(
"ul"
)
||
elm
.
tagName
().
toLower
()
==
Q
Latin1String
(
"li"
));
const
bool
anchorSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
StringLiteral
(
"a"
));
const
bool
anchorSelected
=
(
elm
.
tagName
().
toLower
()
==
Q
Latin1String
(
"a"
));
qCDebug
(
COMPOSEREDITORNG_LOG
)
<<
" elm.tagName().toLower() "
<<
elm
.
tagName
().
toLower
();
...
...
importwizard/autodetect/opera/operaaddressbook.cpp
View file @
fb70c702
...
...
@@ -36,10 +36,10 @@ OperaAddressBook::OperaAddressBook(const QString &filename, ImportWizard *parent
KContacts
::
Addressee
*
contact
=
0
;
while
(
!
stream
.
atEnd
())
{
QString
line
=
stream
.
readLine
();
if
(
line
==
Q
StringLiteral
(
"#CONTACT"
))
{
if
(
line
==
Q
Latin1String
(
"#CONTACT"
))
{
appendContact
(
contact
);
foundContact
=
true
;
}
else
if
(
line
==
Q
StringLiteral
(
"#FOLDER"
))
{
}
else
if
(
line
==
Q
Latin1String
(
"#FOLDER"
))
{
appendContact
(
contact
);
foundContact
=
false
;
//TODO
...
...
importwizard/autodetect/sylpheed/sylpheedaddressbook.cpp
View file @
fb70c702
...
...
@@ -80,7 +80,7 @@ void SylpheedAddressBook::readAddressBook(const QString &filename)
}
const
QString
tag
=
e
.
tagName
();
if
(
tag
==
Q
StringLiteral
(
"person"
))
{
if
(
tag
==
Q
Latin1String
(
"person"
))
{
KContacts
::
Addressee
contact
;
//uid="333304265" first-name="dd" last-name="ccc" nick-name="" cn="laurent"
QString
uidPerson
;
...
...
@@ -103,11 +103,11 @@ void SylpheedAddressBook::readAddressBook(const QString &filename)
QStringList
uidAddress
;
for
(
QDomElement
addressElement
=
e
.
firstChildElement
();
!
addressElement
.
isNull
();
addressElement
=
addressElement
.
nextSiblingElement
())
{
const
QString
addressTag
=
addressElement
.
tagName
();
if
(
addressTag
==
Q
StringLiteral
(
"address-list"
))
{
if
(
addressTag
==
Q
Latin1String
(
"address-list"
))
{
QStringList
emails
;
for
(
QDomElement
addresslist
=
addressElement
.
firstChildElement
();
!
addresslist
.
isNull
();
addresslist
=
addresslist
.
nextSiblingElement
())
{
const
QString
tagAddressList
=
addresslist
.
tagName
();
if
(
tagAddressList
==
Q
StringLiteral
(
"address"
))
{
if
(
tagAddressList
==
Q
Latin1String
(
"address"
))
{
if
(
addresslist
.
hasAttribute
(
QStringLiteral
(
"email"
)))
{
emails
<<
addresslist
.
attribute
(
QStringLiteral
(
"email"
));
}
else
if
(
addresslist
.
hasAttribute
(
QStringLiteral
(
"alias"
)))
{
...
...
@@ -123,10 +123,10 @@ void SylpheedAddressBook::readAddressBook(const QString &filename)
contact
.
setEmails
(
emails
);
}
}
else
if
(
addressTag
==
Q
StringLiteral
(
"attribute-list"
))
{
}
else
if
(
addressTag
==
Q
Latin1String
(
"attribute-list"
))
{
for
(
QDomElement
attributelist
=
addressElement
.
firstChildElement
();
!
attributelist
.
isNull
();
attributelist
=
attributelist
.
nextSiblingElement
())
{
const
QString
tagAttributeList
=
attributelist
.
tagName
();
if
(
tagAttributeList
==
Q
StringLiteral
(
"attribute"
))
{
if
(
tagAttributeList
==
Q
Latin1String
(
"attribute"
))
{
if
(
attributelist
.
hasAttribute
(
QStringLiteral
(
"name"
)))
{
const
QString
name
=
attributelist
.
attribute
(
QStringLiteral
(
"name"
));
const
QString
value
=
attributelist
.
text
();
...
...
@@ -148,7 +148,7 @@ void SylpheedAddressBook::readAddressBook(const QString &filename)
}
addImportNote
(
contact
,
QStringLiteral
(
"Sylpheed"
));
createContact
(
contact
);
}
else
if
(
tag
==
Q
StringLiteral
(
"group"
))
{
}
else
if
(
tag
==
Q
Latin1String
(
"group"
))
{
QString
name
;
if
(
e
.
hasAttribute
(
QStringLiteral
(
"name"
)))
{
name
=
e
.
attribute
(
QStringLiteral
(
"name"
));
...
...
@@ -157,10 +157,10 @@ void SylpheedAddressBook::readAddressBook(const QString &filename)
//TODO: create Group
for
(
QDomElement
groupElement
=
e
.
firstChildElement
();
!
groupElement
.
isNull
();
groupElement
=
groupElement
.
nextSiblingElement
())
{
const
QString
groupTag
=
groupElement
.
tagName
();
if
(
groupTag
==
Q
StringLiteral
(
"member-list"
))
{
if
(
groupTag
==
Q
Latin1String
(
"member-list"
))
{
for
(
QDomElement
memberlist
=
groupElement
.
firstChildElement
();
!
memberlist
.
isNull
();
memberlist
=
memberlist
.
nextSiblingElement
())
{
const
QString
tagMemberList
=
memberlist
.
tagName
();
if
(
tagMemberList
==
Q
StringLiteral
(
"member"
))
{
if
(
tagMemberList
==
Q
Latin1String
(
"member"
))
{
QString
pid
;
QString
eid
;
if
(
memberlist
.
hasAttribute
(
QStringLiteral
(
"pid"
)))
{
...
...
importwizard/autodetect/thunderbird/thunderbirdsettings.cpp
View file @
fb70c702
...
...
@@ -159,7 +159,7 @@ void ThunderbirdSettings::readExtensionsSettings()
const
QString
conversionFormatStr
(
QStringLiteral
(
"extensions.AutoResizeImage.conversionFormat"
));
if
(
mHashConfig
.
contains
(
conversionFormatStr
))
{
QString
conversionFormat
=
mHashConfig
.
value
(
conversionFormatStr
).
toString
();
if
(
conversionFormat
==
Q
StringLiteral
(
"png"
))
{
if
(
conversionFormat
==
Q
Latin1String
(
"png"
))
{
conversionFormat
=
QStringLiteral
(
"PNG"
);
}
else
{
conversionFormat
=
QStringLiteral
(
"JPG"
);
...
...
@@ -302,9 +302,9 @@ void ThunderbirdSettings::readLdapSettings()
ldap
.
ldapUrl
=
QUrl
(
mHashConfig
.
value
(
ldapUri
).
toString
());
ldap
.
port
=
ldap
.
ldapUrl
.
port
();
if
(
ldap
.
ldapUrl
.
scheme
()
==
Q
StringLiteral
(
"ldaps"
))
{
if
(
ldap
.
ldapUrl
.
scheme
()
==
Q
Latin1String
(
"ldaps"
))
{
ldap
.
useSSL
=
true
;
}
else
if
(
ldap
.
ldapUrl
.
scheme
()
==
Q
StringLiteral
(
"ldap"
))
{
}
else
if
(
ldap
.
ldapUrl
.
scheme
()
==
Q
Latin1String
(
"ldap"
))
{
ldap
.
useSSL
=
false
;
}
else
{
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" Security not implemented :"
<<
ldap
.
ldapUrl
.
scheme
();
...
...
@@ -499,7 +499,7 @@ void ThunderbirdSettings::readAccount()
loginAtStartup
=
mHashConfig
.
value
(
loginAtStartupStr
).
toBool
();
}
bool
found
=
false
;
if
(
type
==
Q
StringLiteral
(
"imap"
))
{
if
(
type
==
Q
Latin1String
(
"imap"
))
{
QMap
<
QString
,
QVariant
>
settings
;
settings
.
insert
(
QStringLiteral
(
"ImapServer"
),
host
);
settings
.
insert
(
QStringLiteral
(
"UserName"
),
userName
);
...
...
@@ -565,7 +565,7 @@ void ThunderbirdSettings::readAccount()
addCheckMailOnStartup
(
agentIdentifyName
,
loginAtStartup
);
//Not find a method to disable it in thunderbird
addToManualCheck
(
agentIdentifyName
,
true
);
}
else
if
(
type
==
Q
StringLiteral
(
"pop3"
))
{
}
else
if
(
type
==
Q
Latin1String
(
"pop3"
))
{
QMap
<
QString
,
QVariant
>
settings
;
settings
.
insert
(
QStringLiteral
(
"Host"
),
host
);
settings
.
insert
(
QStringLiteral
(
"Login"
),
userName
);
...
...
@@ -629,17 +629,17 @@ void ThunderbirdSettings::readAccount()
addCheckMailOnStartup
(
agentIdentifyName
,
loginAtStartup
);
//Not find a method to disable it in thunderbird
addToManualCheck
(
agentIdentifyName
,
true
);
}
else
if
(
type
==
Q
StringLiteral
(
"none"
))
{
}
else
if
(
type
==
Q
Latin1String
(
"none"
))
{
//FIXME look at if we can implement it
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" account type none!"
;
}
else
if
(
type
==
Q
StringLiteral
(
"movemail"
))
{
}
else
if
(
type
==
Q
Latin1String
(
"movemail"
))
{
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" movemail accound found and not implemented in importthunderbird"
;
//TODO
}
else
if
(
type
==
Q
StringLiteral
(
"rss"
))
{
}
else
if
(
type
==
Q
Latin1String
(
"rss"
))
{
//TODO when akregator2 will merge in kdepim
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" rss resource needs to be implemented"
;
continue
;
}
else
if
(
type
==
Q
StringLiteral
(
"nntp"
))
{
}
else
if
(
type
==
Q
Latin1String
(
"nntp"
))
{
//TODO add config directly to knode
//TODO when knode will merge in kdepim
qCDebug
(
IMPORTWIZARD_LOG
)
<<
" nntp resource need to be implemented"
;
...
...
@@ -884,9 +884,9 @@ void ThunderbirdSettings::insertIntoMap(const QString &line)
//Store as String
mHashConfig
.
insert
(
key
,
valueStr
);
}
else
{
if
(
valueStr
==
Q
StringLiteral
(
"true"
))
{
if
(
valueStr
==
Q
Latin1String
(
"true"
))
{
mHashConfig
.
insert
(
key
,
true
);
}
else
if
(
valueStr
==
Q
StringLiteral
(
"false"
))
{
}
else
if
(
valueStr
==
Q
Latin1String
(
"false"
))
{
mHashConfig
.
insert
(
key
,
false
);
}
else
{
//Store as integer
...
...
importwizard/autodetect/trojita/trojitasettings.cpp
View file @
fb70c702
...
...
@@ -114,9 +114,9 @@ void TrojitaSettings::readTransport()
const
QString
smtpMethod
=
settings
->
value
(
QStringLiteral
(
"msa.method"
)).
toString
();
if
(
!
smtpMethod
.
isEmpty
())
{
MailTransport
::
Transport
*
mt
=
createTransport
();
if
(
smtpMethod
==
Q
StringLiteral
(
"IMAP-SENDMAIL"
))
{
if
(
smtpMethod
==
Q
Latin1String
(
"IMAP-SENDMAIL"
))
{
//see http://tools.ietf.org/html/draft-kundrat-imap-submit-01
}
else
if
(
smtpMethod
==
Q
StringLiteral
(
"SMTP"
)
||
smtpMethod
==
QStringLiteral
(
"SSMTP"
))
{
}
else
if
(
smtpMethod
==
Q
Latin1String
(
"SMTP"
)
||
smtpMethod
==
QLatin1String
(
"SSMTP"
))
{
if
(
settings
->
contains
(
QStringLiteral
(
"msa.smtp.host"
)))
{
mt
->
setHost
(
settings
->
value
(
QStringLiteral
(
"msa.smtp.host"
)).
toString
());
}
...
...
@@ -140,7 +140,7 @@ void TrojitaSettings::readTransport()
}
}
mt
->
setType
(
MailTransport
::
Transport
::
EnumType
::
SMTP
);
}
else
if
(
smtpMethod
==
Q
StringLiteral
(
"sendmail"
))
{
}
else
if
(
smtpMethod
==
Q
Latin1String
(
"sendmail"
))
{
mt
->
setType
(
MailTransport
::
Transport
::
EnumType
::
Sendmail
);
if
(
settings
->
contains
(
QStringLiteral
(
"msa.sendmail"
)))
{
mt
->
setHost
(
settings
->
value
(
QStringLiteral
(
"msa.sendmail"
)).
toString
());
...
...
incidenceeditor-ng/opencomposerjob.cpp
View file @
fb70c702
...
...
@@ -87,7 +87,7 @@ void OpenComposerJob::timeout()
void
OpenComposerJob
::
slotServiceOwnerChanged
(
const
QString
&
name
,
const
QString
&
oldOwner
,
const
QString
&
newOwner
)
{
Q_UNUSED
(
oldOwner
);
if
(
name
==
Q
StringLiteral
(
"org.kde.kmail"
)
&&
!
newOwner
.
isEmpty
())
{
if
(
name
==
Q
Latin1String
(
"org.kde.kmail"
)
&&
!
newOwner
.
isEmpty
())
{
processMail
();
}
}
...
...
kaddressbook/merge/autotests/mergecontactsdialogtest.cpp
View file @
fb70c702
...
...
@@ -43,11 +43,11 @@ void MergeContactsDialogTest::shouldHaveDefaultValue()
for
(
int
i
=
0
;
i
<
stackedWidget
->
count
();
++
i
)
{
QWidget
*
w
=
stackedWidget
->
widget
(
i
);
const
QString
objName
=
w
->
objectName
();
const
bool
hasGoodNamePage
=
(
objName
==
Q
StringLiteral
(
"notenoughcontactselected"
)
||
objName
==
Q
StringLiteral
(
"nocontactselected"
)
||
objName
==
Q
StringLiteral
(
"manualmergeresultwidget"
)
||
objName
==
Q
StringLiteral
(
"selectioninformation"
)
||
objName
==
Q
StringLiteral
(
"mergecontactinfowidget"
));
const
bool
hasGoodNamePage
=
(
objName
==
Q
Latin1String
(
"notenoughcontactselected"
)
||
objName
==
Q
Latin1String
(
"nocontactselected"
)
||
objName
==
Q
Latin1String
(
"manualmergeresultwidget"
)
||
objName
==
Q
Latin1String
(
"selectioninformation"
)
||
objName
==
Q
Latin1String
(
"mergecontactinfowidget"
));
QVERIFY
(
hasGoodNamePage
);
}
...
...
kaddressbook/merge/autotests/mergecontactselectinformationscrollareatest.cpp
View file @
fb70c702
...
...
@@ -53,7 +53,7 @@ void MergeContactSelectInformationScrollAreaTest::shouldHaveDefaultValue()
for
(
int
i
=
0
;
i
<
stackedwidget
->
count
();
++
i
)
{
QWidget
*
w
=
stackedwidget
->
widget
(
i
);
const
QString
objName
=
w
->
objectName
();
bool
hasCorrectName
=
(
objName
==
Q
StringLiteral
(
"mergedcontactwidget"
))
||
(
objName
==
QStringLiteral
(
"selectwidget"
));
bool
hasCorrectName
=
(
objName
==
Q
Latin1String
(
"mergedcontactwidget"
))
||
(
objName
==
QStringLiteral
(
"selectwidget"
));
QVERIFY
(
hasCorrectName
);
}
QCOMPARE
(
stackedwidget
->
currentWidget
()
->
objectName
(),
QStringLiteral
(
"selectwidget"
));
...
...
kaddressbook/merge/autotests/mergecontactwidgettest.cpp
View file @
fb70c702
...
...
@@ -93,7 +93,7 @@ void MergeContactWidgetTest::shouldHaveDefaultValueOnCreation()
for
(
int
i
=
0
;
i
<
splitter
->
count
();
++
i
)
{
const
QString
objName
=
splitter
->
widget
(
i
)
->
objectName
();
const
bool
hasName
=
(
objName
==
Q
StringLiteral
(
"selectcontactwidget"
))
||
(
objName
==
QStringLiteral
(
"mergecontactinfowidget"
));
const
bool
hasName
=
(
objName
==
Q
Latin1String
(
"selectcontactwidget"
))
||
(
objName
==
QLatin1String
(
"mergecontactinfowidget"
));
QVERIFY
(
hasName
);
}
}
...
...
kaddressbook/merge/autotests/searchandmergecontactduplicatecontactdialogtest.cpp
View file @
fb70c702
...
...
@@ -39,12 +39,12 @@ void SearchAndMergeContactDuplicateContactDialogTest::shouldHaveDefaultValueOnCr
for
(
int
i
=
0
;
i
<
stackedWidget
->
count
();
++
i
)
{
QWidget
*
w
=
stackedWidget
->
widget
(
i
);
const
QString
objName
=
w
->
objectName
();
const
bool
hasGoodNamePage
=
(
objName
==
Q
StringLiteral
(
"mergecontact"
)
||
objName
==
Q
StringLiteral
(
"nocontactselected"
)
||
objName
==
Q
StringLiteral
(
"nocontactduplicatesfound"
)
||
objName
==
Q
StringLiteral
(
"noenoughcontactselected"
)
||
objName
==
Q
StringLiteral
(
"mergecontactresult"
)
||
objName
==
Q
StringLiteral
(
"selectioninformation"
));
const
bool
hasGoodNamePage
=
(
objName
==
Q
Latin1String
(
"mergecontact"
)
||
objName
==
Q
Latin1String
(
"nocontactselected"
)
||
objName
==
Q
Latin1String
(
"nocontactduplicatesfound"
)
||
objName
==
Q
Latin1String
(
"noenoughcontactselected"
)
||
objName
==
Q
Latin1String
(
"mergecontactresult"
)
||
objName
==
Q
Latin1String
(
"selectioninformation"
));
QVERIFY
(
hasGoodNamePage
);
}
...
...
kaddressbook/xxport/xxportfactory.cpp
View file @
fb70c702
...
...
@@ -27,23 +27,23 @@
XXPort
*
XXPortFactory
::
createXXPort
(
const
QString
&
identifier
,
QWidget
*
parentWidget
)
const
{
if
(
identifier
==
Q
StringLiteral
(
"vcard21"
)
||
identifier
==
QStringLiteral
(
"vcard30"
)
||
identifier
==
QStringLiteral
(
"vcard40"
))
{
if
(
identifier
==
Q
Latin1String
(
"vcard21"
)
||
identifier
==
QLatin1String
(
"vcard30"
)
||
identifier
==
QLatin1String
(
"vcard40"
))
{
XXPort
*
xxport
=
new
VCardXXPort
(
parentWidget
);
if
(
identifier
==
Q
StringLiteral
(
"vcard21"
))
{
if
(
identifier
==
Q
Latin1String
(
"vcard21"
))
{
xxport
->
setOption
(
QStringLiteral
(
"version"
),
QStringLiteral
(
"v21"
));
}
else
if
(
identifier
==
Q
StringLiteral
(
"vcard30"
))
{
}
else
if
(
identifier
==
Q
Latin1String
(
"vcard30"
))
{
xxport
->
setOption
(
QStringLiteral
(
"version"
),
QStringLiteral
(
"v30"
));
}
else
if
(
identifier
==
Q
StringLiteral
(
"vcard40"
))
{
}
else
if
(
identifier
==
Q
Latin1String
(
"vcard40"
))
{
xxport
->
setOption
(
QStringLiteral
(
"version"
),
QStringLiteral
(
"v40"
));
}
return
xxport
;
}
else
if
(
identifier
==
Q
StringLiteral
(
"csv"
))
{
}
else
if
(
identifier
==
Q
Latin1String
(
"csv"
))
{
return
new
CsvXXPort
(
parentWidget
);
}
else
if
(
identifier
==
Q
StringLiteral
(
"ldif"
))
{
}
else
if
(
identifier
==
Q
Latin1String
(
"ldif"
))
{
return
new
LDIFXXPort
(
parentWidget
);
}
else
if
(
identifier
==
Q
StringLiteral
(
"ldap"
))
{
}
else
if
(
identifier
==
Q
Latin1String
(
"ldap"
))
{
return
new
LDAPXXPort
(
parentWidget
);
}
else
if
(
identifier
==
Q
StringLiteral
(
"gmx"
))
{
}
else
if
(
identifier
==
Q
Latin1String
(
"gmx"
))
{
return
new
GMXXXPort
(
parentWidget
);
}
else
{
return
Q_NULLPTR
;
...
...
kaddressbook/xxport/xxportmanager.cpp
View file @
fb70c702
...
...
@@ -186,7 +186,7 @@ void XXPortManager::slotExport(const QString &identifier)
return
;
}
const
bool
selectExportType
=
(
identifier
==
Q
StringLiteral
(
"vcard21"
)
||
identifier
==
QStringLiteral
(
"vcard30"
)
||
identifier
==
QStringLiteral
(
"vcard40"
));
const
bool
selectExportType
=
(
identifier
==
Q
Latin1String
(
"vcard21"
)
||
identifier
==
QLatin1String
(
"vcard30"
)
||
identifier
==
QLatin1String
(
"vcard40"
));
QPointer
<
ContactSelectionDialog
>
dlg
=
new
ContactSelectionDialog
(
mSelectionModel
,
selectExportType
,
mParentWidget
);
dlg
->
setMessageText
(
i18n
(
"Which contact do you want to export?"
));
...
...
kaddressbookgrantlee/formatter/grantleecontactformatter.cpp
View file @
fb70c702
...
...
@@ -457,25 +457,25 @@ QString GrantleeContactFormatter::toHtml(HtmlForm form) const
if
(
description
.
value
(
QStringLiteral
(
"key"
)).
toString
()
==
key
)
{
key
=
description
.
value
(
QStringLiteral
(
"title"
)).
toString
();
const
QString
descriptionType
=
description
.
value
(
QStringLiteral
(
"type"
)).
toString
();
if
(
descriptionType
==
Q
StringLiteral
(
"boolean"
))
{
if
(
value
==
Q
StringLiteral
(
"true"
))
{
if
(
descriptionType
==
Q
Latin1String
(
"boolean"
))
{
if
(
value
==
Q
Latin1String
(
"true"
))
{
value
=
i18nc
(
"Boolean value"
,
"yes"
);
}
else
{
value
=
i18nc
(
"Boolean value"
,
"no"
);
}
}
else
if
(
descriptionType
==
Q
StringLiteral
(
"date"
))
{
}
else
if
(
descriptionType
==
Q
Latin1String
(
"date"
))
{
const
QDate
date
=
QDate
::
fromString
(
value
,
Qt
::
ISODate
);
value
=
QLocale
().
toString
(
date
,
QLocale
::
ShortFormat
);
}
else
if
(
descriptionType
==
Q
StringLiteral
(
"time"
))
{
}
else
if
(
descriptionType
==
Q
Latin1String
(
"time"
))
{
const
QTime
time
=
QTime
::
fromString
(
value
,
Qt
::
ISODate
);
value
=
KLocale
::
global
()
->
formatTime
(
time
);
}
else
if
(
descriptionType
==
Q
StringLiteral
(
"datetime"
))
{
}
else
if
(
descriptionType
==
Q
Latin1String
(
"datetime"
))
{
const
QDateTime
dateTime
=
QDateTime
::
fromString
(
value
,
Qt
::
ISODate
);
value
=
QLocale
().
toString
(
dateTime
,
QLocale
::
ShortFormat
);
}
else
if
(
descriptionType
==
Q
StringLiteral
(
"url"
))
{
}
else
if
(
descriptionType
==
Q
Latin1String
(
"url"
))
{
value
=
KStringHandler
::
tagUrls
(
value
.
toHtmlEscaped
());
addUrl
=
true
;
}
...
...
kaddressbookgrantlee/formatter/grantleecontactutils.cpp
View file @
fb70c702
...
...
@@ -31,45 +31,45 @@ void GrantleeContactUtils::insertVariableToQVariantHash(QVariantHash &contactI18
QString
GrantleeContactUtils
::
variableI18n
(
const
QString
&
variable
)
{
if
(
variable
==
Q
StringLiteral
(
"birthdayi18n"
))
{
if
(
variable
==
Q
Latin1String
(
"birthdayi18n"
))
{
return
i18n
(
"Birthday"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"anniversaryi18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"anniversaryi18n"
))
{
return
i18nc
(
"The wedding anniversary of a contact"
,
"Anniversary"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"emailsi18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"emailsi18n"
))
{
return
i18n
(
"Emails"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"websitei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"websitei18n"
))
{
return
i18n
(
"Website"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"blogUrli18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"blogUrli18n"
))
{
return
i18n
(
"Blog Feed"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"addressBookNamei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"addressBookNamei18n"
))
{
return
i18n
(
"Address Book"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"notei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"notei18n"
))
{
return
i18n
(
"Note"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"departmenti18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"departmenti18n"
))
{
return
i18n
(
"Department"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"Professioni18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"Professioni18n"
))
{
return
i18n
(
"Profession"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"officei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"officei18n"
))
{
return
i18n
(
"Office"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"manageri18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"manageri18n"
))
{
return
i18n
(
"Manager's Name"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"assistanti18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"assistanti18n"
))
{
return
i18n
(
"Assistant's Name"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"spousei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"spousei18n"
))
{
return
i18n
(
"Partner's Name"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"imAddressi18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"imAddressi18n"
))
{
return
i18n
(
"IM Address"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"latitudei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"latitudei18n"
))
{
return
i18n
(
"Latitude"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"longitudei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"longitudei18n"
))
{
return
i18n
(
"Longitude"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"organizationi18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"organizationi18n"
))
{
return
i18n
(
"Organization"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"namei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"namei18n"
))
{
return
i18n
(
"Name"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"titlei18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"titlei18n"
))
{
return
i18n
(
"Title"
);
}
else
if
(
variable
==
Q
StringLiteral
(
"nextcontacti18n"
))
{
}
else
if
(
variable
==
Q
Latin1String
(
"nextcontacti18n"
))
{
return
i18n
(
"Contact"
);
}
else
{
return
variable
;
...
...
kalarm/akonadiresourcecreator.cpp
View file @
fb70c702
...
...
@@ -114,9 +114,9 @@ void AkonadiResourceCreator::agentInstanceCreated(KJob* j)
// Set the default alarm type for a directory resource config dialog
mAgentInstance
=
job
->
instance
();
QString
type
=
mAgentInstance
.
type
().
identifier
();
if
(
type
==
Q
StringLiteral
(
"akonadi_kalarm_dir_resource"
))
if
(
type
==
Q
Latin1String
(
"akonadi_kalarm_dir_resource"
))
setResourceAlarmType
<
OrgKdeAkonadiKAlarmDirSettingsInterface
>
();
else
if
(
type
==
Q
StringLiteral
(
"akonadi_kalarm_resource"
))
else
if
(
type
==
Q
Latin1String
(
"akonadi_kalarm_resource"
))
setResourceAlarmType
<
OrgKdeAkonadiKAlarmSettingsInterface
>
();
// Display the resource config dialog, but first ensure we get
...
...
kalarm/lib/filedialog.cpp
View file @
fb70c702
...
...
@@ -37,7 +37,7 @@ QCheckBox* FileDialog::mAppendCheck = Q_NULLPTR;
QString
FileDialog
::
getSaveFileName
(
const
KUrl
&
dir
,
const
QString
&
filter
,
QWidget
*
parent
,
const
QString
&
caption
,
bool
*
append
)
{
bool
defaultDir
=
dir
.
isEmpty
();
bool
specialDir
=
!
defaultDir
&&
dir
.
scheme
()
==
Q
StringLiteral
(
"kfiledialog"
);
bool
specialDir
=
!
defaultDir
&&
dir
.
scheme
()
==
Q
Latin1String
(
"kfiledialog"
);
// Use AutoQPointer to guard against crash on application exit while
// the dialogue is still open. It prevents double deletion (both on
// deletion of parent, and on return from this function).
...
...
kmail/configuredialog/configurecomposerpage.cpp
View file @
fb70c702
...
...
@@ -921,12 +921,12 @@ void ComposerPage::CharsetTab::slotVerifyCharset(QString &charset)
// KCharsets::codecForName("us-ascii") returns "iso-8859-1" (cf. Bug #49812)
// therefore we have to treat this case specially
if
(
charset
.
toLower
()
==
Q
StringLiteral
(
"us-ascii"
))
{
if
(
charset
.
toLower
()
==
Q
Latin1String
(
"us-ascii"
))
{
charset
=
QStringLiteral
(
"us-ascii"
);
return
;
}
if
(
charset
.
toLower
()
==
Q
StringLiteral
(
"locale"
))
{
if
(
charset
.
toLower
()
==
Q
Latin1String
(
"locale"
))
{
charset
=
QStringLiteral
(
"%1 (locale)"
)
.
arg
(
QString
::
fromLatin1
(
kmkernel
->
networkCodec
()
->
name
()).
toLower
());
return
;
...
...
kmail/editor/potentialphishingemail/potentialphishingemailwarning.cpp
View file @
fb70c702
...
...
@@ -48,7 +48,7 @@ PotentialPhishingEmailWarning::~PotentialPhishingEmailWarning()
void
PotentialPhishingEmailWarning
::
slotShowDetails
(
const
QString
&
link
)
{
if
(
link
==
Q
StringLiteral
(
"phishingdetails"
))
{
if
(
link
==
Q
Latin1String
(
"phishingdetails"
))
{
QPointer
<
PotentialPhishingDetailDialog
>
dlg
=
new
PotentialPhishingDetailDialog
(
this
);
dlg
->
fillList
(
mPotentialPhishingEmails
);
dlg
->
exec
();
...
...
kmail/job/saveasfilejob.cpp
View file @
fb70c702
...
...
@@ -58,11 +58,11 @@ void SaveAsFileJob::start()
QTextDocumentWriter
writer
;
const
QString
filename
=
dlg
->
selectedFiles
().
at
(
0
);
writer
.
setFileName
(
filename
);
if
(
dlg
->
selectedNameFilter
()
==
Q
StringLiteral
(
"text/plain"
)
||
filename
.
endsWith
(
QLatin1String
(
".txt"
)))
{
if
(
dlg
->
selectedNameFilter
()
==
Q
Latin1String
(
"text/plain"
)
||
filename
.
endsWith
(
QLatin1String
(
".txt"
)))
{
writer
.
setFormat
(
"plaintext"
);
}
else
if
(
dlg
->
selectedNameFilter
()
==
Q
StringLiteral
(
"text/html"
)
||
filename
.
endsWith
(
QLatin1String
(
".html"
)))
{
}
else
if
(
dlg
->
selectedNameFilter
()
==
Q
Latin1String
(
"text/html"
)
||
filename
.
endsWith
(
QLatin1String
(
".html"
)))
{
writer
.
setFormat
(
"HTML"
);
}
else
if
(
dlg
->
selectedNameFilter
()
==
Q
StringLiteral
(
"application/vnd.oasis.opendocument.text"
)
||
filename
.
endsWith
(
QLatin1String
(
".odf"
)))
{
}
else
if
(
dlg
->
selectedNameFilter
()
==
Q
Latin1String
(
"application/vnd.oasis.opendocument.text"
)
||
filename
.
endsWith
(
QLatin1String
(
".odf"
)))
{
writer
.
setFormat
(
"ODF"
);
}
else
{
writer
.
setFormat
(
"plaintext"
);
...
...
kmail/kontactplugin/kmail_plugin.cpp
View file @
fb70c702
...
...
@@ -175,7 +175,7 @@ KMailPlugin::~KMailPlugin()
bool
KMailPlugin
::
createDBUSInterface
(
const
QString
&
serviceType
)
{
if
(
serviceType
==
Q
StringLiteral
(
"DBUS/Mailer"
))
{
if
(
serviceType
==
Q
Latin1String
(
"DBUS/Mailer"
))
{
if
(
part
())
{
return
true
;
}
...
...
kmail/mailmerge/autotests/mailmergewidgettest.cpp
View file @
fb70c702
...
...
@@ -43,8 +43,8 @@ void MailMergeWidgetTest::shouldHaveDefaultValueOnCreation()
for
(
int
i
=
0
;
i
<
stackedwidget
->
count
();
++
i
)
{
const
QString
objectName
=
stackedwidget
->
widget
(
i
)
->
objectName
();
bool
hasName
=
(
objectName
==
Q
StringLiteral
(
"addressbookwidget"
)
||
objectName
==
Q
StringLiteral
(
"csvwidget"
));
bool
hasName
=
(
objectName
==
Q
Latin1String
(
"addressbookwidget"
)
||
objectName
==
Q
Latin1String
(
"csvwidget"
));
QVERIFY
(
hasName
);
}
PimCommon
::
SimpleStringListEditor
*
listEditor
=
mailmerge
.
findChild
<
PimCommon
::
SimpleStringListEditor
*>
(
QStringLiteral
(
"attachment-list"
));
...
...
kmail/messageactions.cpp
View file @
fb70c702
...
...
@@ -562,7 +562,7 @@ void MessageActions::addMailingListAction(const QString &item, const QUrl &url)
{
QString
protocol
=
url
.
scheme
().
toLower
();
QString
prettyUrl
=
url
.
toDisplayString
();
if
(
protocol
==
Q
StringLiteral
(
"mailto"
))
{
if
(
protocol
==
Q
Latin1String
(
"mailto"
))
{
protocol
=
i18n
(
"email"
);
prettyUrl
.
remove
(
0
,
7
);
// length( "mailto:" )
}
else
if
(
protocol
.
startsWith
(
QStringLiteral
(
"http"
)))
{
...
...
korganizer/akonadicollectionview.cpp
View file @
fb70c702
...
...
@@ -450,7 +450,7 @@ void AkonadiCollectionView::updateMenu()
const
QString
identifier
=
QString
::
number
(
collection
.
id
());
const
QColor
defaultColor
=
KOPrefs
::
instance
()
->
resourceColor
(
identifier
);
enableAction
=
enableAction
&&
defaultColor
.
isValid
();
if
(
collection
.
remoteId
()
==
Q
StringLiteral
(
"akonadi_birthdays_resource"
))
{
if
(
collection
.
remoteId
()
==
Q
Latin1String
(
"akonadi_birthdays_resource"
))
{
enableAction
=
false
;
mAssignColor
->
setEnabled
(
enableAction
);
}
...
...
korganizer/kontactplugin/korganizer/journalplugin.cpp
View file @
fb70c702
...
...
@@ -155,7 +155,7 @@ void JournalPlugin::slotSyncJournal()
bool
JournalPlugin
::
createDBUSInterface
(
const
QString
&
serviceType
)
{
if
(
serviceType
==
Q
StringLiteral
(
"DBUS/Organizer"
)
||
serviceType
==
QStringLiteral
(
"DBUS/Calendar"
))
{
if
(
serviceType
==
Q
Latin1String
(
"DBUS/Organizer"
)
||
serviceType
==
QLatin1String
(
"DBUS/Calendar"
))
{
if
(
part
())
{
return
true
;
}
...
...
korganizer/kontactplugin/korganizer/korganizerplugin.cpp
View file @
fb70c702
...
...
@@ -169,7 +169,7 @@ void KOrganizerPlugin::slotSyncEvents()
bool
KOrganizerPlugin
::
createDBUSInterface
(
const
QString
&
serviceType
)
{
if
(
serviceType
==
Q
StringLiteral
(
"DBUS/Organizer"
)
||
serviceType
==
QStringLiteral
(
"DBUS/Calendar"
))
{
if
(
serviceType
==
Q
Latin1String
(
"DBUS/Organizer"
)
||
serviceType
==
QLatin1String
(
"DBUS/Calendar"
))
{
if
(
part
())
{
return
true
;
}
...
...
korganizer/kontactplugin/korganizer/todoplugin.cpp
View file @
fb70c702
...
...
@@ -169,7 +169,7 @@ void TodoPlugin::slotSyncTodos()
bool
TodoPlugin
::
createDBUSInterface
(
const
QString
&
serviceType
)
{
if
(
serviceType
==
Q
StringLiteral
(
"DBUS/Organizer"
)
||
serviceType
==
QStringLiteral
(
"DBUS/Calendar"
))
{
if
(
serviceType
==
Q
Latin1String
(
"DBUS/Organizer"
)
||
serviceType
==
QLatin1String
(
"DBUS/Calendar"
))
{
if
(
part
())
{
return
true
;
}
...
...
korganizer/koviewmanager.cpp
View file @
fb70c702