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 Integration
Commits
65cbbba8
Commit
65cbbba8
authored
Mar 16, 2022
by
Laurent Montel
Browse files
const'ify variables
parent
fffe10df
Pipeline
#150826
passed with stage
in 1 minute and 54 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/platformtheme/kdeplatformfiledialoghelper.cpp
View file @
65cbbba8
...
...
@@ -110,7 +110,7 @@ QList<QUrl> KDEPlatformFileDialog::selectedFiles()
void
KDEPlatformFileDialog
::
selectFile
(
const
QUrl
&
filename
)
{
QUrl
dirUrl
=
filename
.
adjusted
(
QUrl
::
RemoveFilename
);
const
QUrl
dirUrl
=
filename
.
adjusted
(
QUrl
::
RemoveFilename
);
m_fileWidget
->
setUrl
(
dirUrl
);
m_fileWidget
->
setSelectedUrl
(
filename
);
}
...
...
@@ -332,7 +332,7 @@ void KDEPlatformFileDialogHelper::initializeDialog()
dialog
->
m_fileWidget
->
setConfirmOverwrite
(
true
);
}
QStringList
schemes
=
options
()
->
supportedSchemes
();
const
QStringList
schemes
=
options
()
->
supportedSchemes
();
dialog
->
m_fileWidget
->
setSupportedSchemes
(
schemes
);
}
}
...
...
src/platformtheme/kfiletreeview.cpp
View file @
65cbbba8
...
...
@@ -161,14 +161,14 @@ void KFileTreeView::setShowHiddenFiles(bool enabled)
void
KFileTreeView
::
setCurrentUrl
(
const
QUrl
&
url
)
{
QModelIndex
baseIndex
=
d
->
mSourceModel
->
indexForUrl
(
url
);
const
QModelIndex
baseIndex
=
d
->
mSourceModel
->
indexForUrl
(
url
);
if
(
!
baseIndex
.
isValid
())
{
d
->
mSourceModel
->
expandToUrl
(
url
);
return
;
}
QModelIndex
proxyIndex
=
d
->
mProxyModel
->
mapFromSource
(
baseIndex
);
const
QModelIndex
proxyIndex
=
d
->
mProxyModel
->
mapFromSource
(
baseIndex
);
selectionModel
()
->
clearSelection
();
selectionModel
()
->
setCurrentIndex
(
proxyIndex
,
QItemSelectionModel
::
SelectCurrent
);
scrollTo
(
proxyIndex
);
...
...
src/platformtheme/khintssettings.cpp
View file @
65cbbba8
...
...
@@ -67,7 +67,7 @@ static inline bool checkUsePortalSupport()
return
!
QStandardPaths
::
locate
(
QStandardPaths
::
RuntimeLocation
,
QStringLiteral
(
"flatpak-info"
)).
isEmpty
()
||
qEnvironmentVariableIsSet
(
"SNAP"
);
}
KHintsSettings
::
KHintsSettings
(
KSharedConfig
::
Ptr
kdeglobals
)
KHintsSettings
::
KHintsSettings
(
const
KSharedConfig
::
Ptr
&
kdeglobals
)
:
QObject
(
nullptr
)
,
mKdeGlobals
(
kdeglobals
)
,
mUsePortal
(
checkUsePortalSupport
())
...
...
src/platformtheme/khintssettings.h
View file @
65cbbba8
...
...
@@ -51,7 +51,7 @@ public:
SETTINGS_LOCALE
,
SETTINGS_STYLE
,
};
explicit
KHintsSettings
(
KSharedConfig
::
Ptr
kdeglobals
=
KSharedConfig
::
Ptr
());
explicit
KHintsSettings
(
const
KSharedConfig
::
Ptr
&
kdeglobals
=
KSharedConfig
::
Ptr
());
~
KHintsSettings
()
override
;
inline
QVariant
hint
(
QPlatformTheme
::
ThemeHint
hint
)
const
...
...
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