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
Games
libkdegames
Commits
e0b7c360
Commit
e0b7c360
authored
Sep 19, 2022
by
Friedrich W. H. Kossebau
Browse files
Deprecate KgDeclarativeView
Not doing a lot and more than all known users need
parent
46785d8d
Pipeline
#234276
passed with stage
in 1 minute and 54 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
e0b7c360
cmake_minimum_required
(
VERSION 3.16 FATAL_ERROR
)
set
(
KDEGAMES_VERSION 7.
4
.0
)
set
(
KDEGAMES_VERSION 7.
5
.0
)
set
(
KDEGAMES_SOVERSION 7
)
project
(
libkdegames VERSION
${
KDEGAMES_VERSION
}
)
...
...
src/CMakeLists.txt
View file @
e0b7c360
...
...
@@ -92,7 +92,7 @@ ecm_generate_export_header(KF5KDEGames
BASE_NAME KDEGAMES
VERSION
${
KDEGAMES_VERSION
}
DEPRECATED_BASE_VERSION 0
DEPRECATION_VERSIONS 4.1 7.4
DEPRECATION_VERSIONS 4.1 7.4
7.5
EXCLUDE_DEPRECATED_BEFORE_AND_AT
${
EXCLUDE_DEPRECATED_BEFORE_AND_AT
}
)
...
...
src/kgdeclarativeview.cpp
View file @
e0b7c360
...
...
@@ -12,6 +12,8 @@
// Qt
#include
<QQmlContext>
#if KDEGAMES_BUILD_DEPRECATED_SINCE(7, 5)
class
KgDeclarativeViewPrivate
{
};
...
...
@@ -32,3 +34,5 @@ KgDeclarativeView::KgDeclarativeView(QWidget *parent)
}
KgDeclarativeView
::~
KgDeclarativeView
()
=
default
;
#endif
src/kgdeclarativeview.h
View file @
e0b7c360
...
...
@@ -14,6 +14,8 @@
// Std
#include
<memory>
#if KDEGAMES_ENABLE_DEPRECATED_SINCE(7, 5)
/**
* @class KgDeclarativeView
* @short A QDeclarativeView that adds KDE specific module paths and javascript bindings.
...
...
@@ -27,6 +29,7 @@
* place), leaving the toolbars, menubars and statusbars as they are, and
* updating their specifics via signals from QML to C++ part of the code.
* @since 4.11
* @deprecsated Since 7.5, use QQuickWidget and add any used things yourself, like the KLocalizedContext.
*/
class
KDEGAMES_EXPORT
KgDeclarativeView
:
public
QQuickWidget
{
...
...
@@ -36,6 +39,7 @@ public:
/// Construcs a new KgDeclarativeView with KDE specific environment.
/// @param parent The parent widget for this view (usually the main
/// window of the game)
KDEGAMES_DEPRECATED_VERSION
(
7
,
5
,
"Use QQuickWidget and add any used things yourself, like the KLocalizedContext."
)
explicit
KgDeclarativeView
(
QWidget
*
parent
=
nullptr
);
~
KgDeclarativeView
()
override
;
...
...
@@ -43,4 +47,6 @@ private:
std
::
unique_ptr
<
class
KgDeclarativeViewPrivate
>
const
d
;
};
#endif
#endif // KGDECLARATIVEVIEW_H
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