Commit e0b7c360 authored by Friedrich W. H. Kossebau's avatar 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
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})
......
......@@ -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}
)
......
......@@ -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
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment