Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
0e785951
Commit
0e785951
authored
Aug 27, 2019
by
Laurent Montel
Browse files
GIT_SILENT: Use QLatin1String/QLatin1Char + fix usage
QString::replace/remove
parent
5ff12878
Changes
4
Hide whitespace changes
Inline
Side-by-side
appentry.cpp
View file @
0e785951
...
...
@@ -58,7 +58,7 @@ AppEntry::AppEntry(AbstractModel *owner, const QString &id) : AbstractEntry(owne
{
const
QUrl
url
(
id
);
if
(
url
.
scheme
()
==
QString
Literal
(
"preferred"
))
{
if
(
url
.
scheme
()
==
Q
Latin1
String
(
"preferred"
))
{
m_service
=
defaultAppByName
(
url
.
host
());
m_id
=
id
;
}
else
{
...
...
containmentinterface.cpp
View file @
0e785951
...
...
@@ -156,7 +156,7 @@ void ContainmentInterface::addLauncher(QObject *appletInterface, ContainmentInte
QQuickItem
*
rootItem
=
nullptr
;
foreach
(
QQuickItem
*
item
,
gObj
->
childItems
())
{
if
(
item
->
objectName
()
==
QString
Literal
(
"folder"
))
{
if
(
item
->
objectName
()
==
Q
Latin1
String
(
"folder"
))
{
rootItem
=
item
;
break
;
...
...
kastatsfavoritesmodel.cpp
View file @
0e785951
...
...
@@ -637,7 +637,7 @@ void KAStatsFavoritesModel::setFavoriteOn(const QString &id, const QString &acti
qCDebug
(
KICKER_DEBUG
)
<<
"%%%%%%%%%%% Activity is"
<<
activityId
;
if
(
activityId
.
isEmpty
()
||
activityId
==
QLatin1String
(
":any"
)
||
activityId
==
QString
Literal
(
":global"
)
||
activityId
==
Q
Latin1
String
(
":global"
)
||
activityId
==
m_activities
->
currentActivity
())
{
d
->
m_ignoredItems
<<
url
;
}
...
...
simplefavoritesmodel.cpp
View file @
0e785951
...
...
@@ -319,9 +319,9 @@ AbstractEntry *SimpleFavoritesModel::favoriteFromId(const QString &id)
const
QUrl
url
(
id
);
const
QString
&
s
=
url
.
scheme
();
if
((
s
.
isEmpty
()
&&
id
.
contains
(
QString
Literal
(
".desktop"
)))
||
s
==
QString
Literal
(
"preferred"
))
{
if
((
s
.
isEmpty
()
&&
id
.
contains
(
Q
Latin1
String
(
".desktop"
)))
||
s
==
Q
Latin1
String
(
"preferred"
))
{
return
new
AppEntry
(
this
,
id
);
}
else
if
(
s
==
QString
Literal
(
"ktp"
))
{
}
else
if
(
s
==
Q
Latin1
String
(
"ktp"
))
{
return
new
ContactEntry
(
this
,
id
);
}
else
if
(
url
.
isValid
()
&&
!
url
.
scheme
().
isEmpty
())
{
return
new
FileEntry
(
this
,
url
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment