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 Mobile
Commits
401620e3
Commit
401620e3
authored
Apr 24, 2022
by
Laurent Montel
Browse files
Fix some qt6 compile errors
parent
c6b55a95
Pipeline
#167836
passed with stages
in 1 minute and 36 seconds
Changes
13
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
401620e3
...
...
@@ -77,7 +77,7 @@ include(CheckIncludeFiles)
plasma_install_package
(
look-and-feel org.kde.plasma.phone look-and-feel
)
plasma_install_package
(
shell org.kde.plasma.phoneshell shells
)
install
(
FILES plasma_phone_components.notifyrc DESTINATION
${
KDE_INSTALL_KNOTIFY
5
RCDIR
}
)
install
(
FILES plasma_phone_components.notifyrc DESTINATION
${
KDE_INSTALL_KNOTIFYRCDIR
}
)
add_subdirectory
(
bin
)
add_subdirectory
(
containments
)
...
...
components/mmplugin/CMakeLists.txt
View file @
401620e3
...
...
@@ -8,7 +8,7 @@ target_sources(ppc-mmqmlplugin PRIVATE
)
target_link_libraries
(
ppc-mmqmlplugin
Qt
5
::Qml
Qt::Qml
KF5::ModemManagerQt
KF5::NetworkManagerQt
)
...
...
components/mmplugin/signalindicator.h
View file @
401620e3
...
...
@@ -5,7 +5,7 @@
#pragma once
#include
<ModemManagerQt/Manager>
#include
<ModemManagerQt/
m
odem3
g
pp
.h
>
#include
<ModemManagerQt/
M
odem3
G
pp>
#include
<NetworkManagerQt/Connection>
#include
<NetworkManagerQt/ModemDevice>
...
...
components/mobileshell/homescreen/applicationlistmodel.cpp
View file @
401620e3
...
...
@@ -31,7 +31,6 @@
#include
<KWayland/Client/surface.h>
#include
<Plasma/Applet>
#include
<PlasmaQuick/AppletQuickItem>
constexpr
int
MAX_FAVOURITES
=
5
;
...
...
components/mobileshell/homescreen/applicationlistmodel.h
View file @
401620e3
...
...
@@ -8,6 +8,7 @@
#pragma once
// Qt
#include
<PlasmaQuick/AppletQuickItem>
#include
<QAbstractListModel>
#include
<QList>
#include
<QObject>
...
...
@@ -25,11 +26,6 @@ class PlasmaWindow;
}
}
namespace
PlasmaQuick
{
class
AppletQuickItem
;
}
class
ApplicationListModel
;
class
ApplicationListModel
:
public
QAbstractListModel
...
...
containments/homescreen/homescreen.cpp
View file @
401620e3
...
...
@@ -10,8 +10,8 @@
#include
<QQuickItem>
#include
<QtQml>
HomeScreen
::
HomeScreen
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
Plasma
::
Containment
(
parent
,
args
)
HomeScreen
::
HomeScreen
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
)
:
Plasma
::
Containment
(
parent
,
data
,
args
)
{
setHasConfigurationInterface
(
true
);
connect
(
KWindowSystem
::
self
(),
&
KWindowSystem
::
showingDesktopChanged
,
this
,
&
HomeScreen
::
showingDesktopChanged
);
...
...
containments/homescreen/homescreen.h
View file @
401620e3
...
...
@@ -14,7 +14,7 @@ class HomeScreen : public Plasma::Containment
Q_PROPERTY
(
bool
showingDesktop
READ
showingDesktop
WRITE
setShowingDesktop
NOTIFY
showingDesktopChanged
)
public:
HomeScreen
(
QObject
*
parent
,
const
QVariantList
&
args
);
HomeScreen
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
);
~
HomeScreen
()
override
;
void
configChanged
()
override
;
...
...
containments/panel/phonepanel.cpp
View file @
401620e3
...
...
@@ -7,8 +7,8 @@
#include
"phonepanel.h"
PhonePanel
::
PhonePanel
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
Plasma
::
Containment
(
parent
,
args
)
PhonePanel
::
PhonePanel
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
)
:
Plasma
::
Containment
(
parent
,
data
,
args
)
{
}
...
...
containments/panel/phonepanel.h
View file @
401620e3
...
...
@@ -14,7 +14,7 @@ class PhonePanel : public Plasma::Containment
Q_OBJECT
public:
PhonePanel
(
QObject
*
parent
,
const
QVariantList
&
args
);
PhonePanel
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
);
~
PhonePanel
()
override
;
};
...
...
containments/taskpanel/taskpanel.cpp
View file @
401620e3
...
...
@@ -21,8 +21,8 @@
#include
<virtualkeyboardinterface.h>
TaskPanel
::
TaskPanel
(
QObject
*
parent
,
const
QVariantList
&
args
)
:
Plasma
::
Containment
(
parent
,
args
)
TaskPanel
::
TaskPanel
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
)
:
Plasma
::
Containment
(
parent
,
data
,
args
)
{
setHasConfigurationInterface
(
true
);
initWayland
();
...
...
containments/taskpanel/taskpanel.h
View file @
401620e3
...
...
@@ -8,6 +8,7 @@
#define TASKPANEL_H
#include
<Plasma/Containment>
#include
<QWindow>
class
OutputsModel
;
class
QAbstractItemModel
;
...
...
@@ -31,7 +32,7 @@ class TaskPanel : public Plasma::Containment
Q_PROPERTY
(
QWindow
*
panel
READ
panel
WRITE
setPanel
NOTIFY
panelChanged
)
public:
TaskPanel
(
QObject
*
parent
,
const
QVariantList
&
args
);
TaskPanel
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
);
QWindow
*
panel
();
void
setPanel
(
QWindow
*
panel
);
...
...
kcms/mobileshell/CMakeLists.txt
View file @
401620e3
...
...
@@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.0)
project
(
mobileshellkcm
)
set
(
QT_MIN_VERSION
"5.15.0"
)
set
(
KF5_MIN_VERSION
"5.
86
.0"
)
set
(
KF5_MIN_VERSION
"5.
90
.0"
)
find_package
(
ECM
${
KF5_MIN_VERSION
}
REQUIRED NO_MODULE
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/modules
)
...
...
@@ -15,7 +15,7 @@ include(KDEInstallDirs)
include
(
KDECMakeSettings
)
include
(
KDEFrameworkCompilerSettings NO_POLICY_SCOPE
)
find_package
(
Qt
5
${
QT_MIN_VERSION
}
CONFIG REQUIRED COMPONENTS
find_package
(
Qt
${
QT_MAJOR_VERSION
}
${
QT_MIN_VERSION
}
CONFIG REQUIRED COMPONENTS
Quick
Svg
)
...
...
@@ -34,7 +34,7 @@ set(mobileshellsettings_SRCS
add_library
(
kcm_mobileshell MODULE
${
mobileshellsettings_SRCS
}
)
target_link_libraries
(
kcm_mobileshell
Qt
5
::Core
Qt::Core
KF5::CoreAddons
KF5::KCMUtils
KF5::I18n
...
...
@@ -44,7 +44,7 @@ target_link_libraries(kcm_mobileshell
kcoreaddons_desktop_to_json
(
kcm_mobileshell
"package/metadata.desktop"
)
install
(
TARGETS kcm_mobileshell DESTINATION
${
KDE_INSTALL_PLUGINDIR
}
/kcms
)
install
(
FILES package/metadata.desktop RENAME kcm_mobileshell.desktop DESTINATION
${
KDE_INSTALL_KSERVICES
5
DIR
}
)
# Install the desktop file
install
(
FILES package/metadata.desktop RENAME kcm_mobileshell.desktop DESTINATION
${
KDE_INSTALL_KSERVICESDIR
}
)
# Install the desktop file
kpackage_install_package
(
package kcm_mobileshell kcms
)
# Install our QML kpackage.
kcms/mobileshell/kcm.cpp
View file @
401620e3
...
...
@@ -12,7 +12,7 @@ K_PLUGIN_CLASS_WITH_JSON(KCMMobileShell, "metadata.json")
KCMMobileShell
::
KCMMobileShell
(
QObject
*
parent
,
const
KPluginMetaData
&
data
,
const
QVariantList
&
args
)
:
KQuickAddons
::
ManagedConfigModule
(
parent
,
data
,
args
)
{
setButtons
(
0
);
setButtons
(
{}
);
}
#include
"kcm.moc"
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