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
0afcc120
Commit
0afcc120
authored
Mar 05, 2022
by
Kai Uwe Broulik
🍇
Browse files
[Kicker] Port from KConcatenateRowsProxyModel
It is deprecated and to be replaced by QConcatenateTablesProxyModel
parent
703e129f
Pipeline
#145719
passed with stage
in 7 minutes and 1 second
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
applets/kicker/plugin/computermodel.cpp
View file @
0afcc120
...
...
@@ -9,10 +9,10 @@
#include
"actionlist.h"
#include
"simplefavoritesmodel.h"
#include
<QConcatenateTablesProxyModel>
#include
<QIcon>
#include
<KAuthorized>
#include
<KConcatenateRowsProxyModel>
#include
<KFilePlacesModel>
#include
<KIO/OpenUrlJob>
#include
<KLocalizedString>
...
...
@@ -123,7 +123,7 @@ Q_INVOKABLE bool RunCommandModel::trigger(int row, const QString &actionId, cons
ComputerModel
::
ComputerModel
(
QObject
*
parent
)
:
ForwardingModel
(
parent
)
,
m_concatProxy
(
new
K
Concatenate
Row
sProxyModel
(
this
))
,
m_concatProxy
(
new
Q
Concatenate
Table
sProxyModel
(
this
))
,
m_runCommandModel
(
new
RunCommandModel
(
this
))
,
m_systemAppsModel
(
new
SimpleFavoritesModel
(
this
))
,
m_filteredPlacesModel
(
new
FilteredPlacesModel
(
this
))
...
...
applets/kicker/plugin/computermodel.h
View file @
0afcc120
...
...
@@ -14,7 +14,7 @@
class
SimpleFavoritesModel
;
class
K
Concatenate
Row
sProxyModel
;
class
Q
Concatenate
Table
sProxyModel
;
class
KFilePlacesModel
;
namespace
Solid
...
...
@@ -95,7 +95,7 @@ private Q_SLOTS:
void
onSetupDone
(
Solid
::
ErrorType
error
,
QVariant
errorData
,
const
QString
&
udi
);
private:
K
Concatenate
Row
sProxyModel
*
m_concatProxy
;
Q
Concatenate
Table
sProxyModel
*
m_concatProxy
;
RunCommandModel
*
m_runCommandModel
;
SimpleFavoritesModel
*
m_systemAppsModel
;
FilteredPlacesModel
*
m_filteredPlacesModel
;
...
...
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