mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-05 05:47:26 +03:00
static method for get a instance of abstractwindowinterface
NOTE: WaylandWindowInterface has not been implemented
This commit is contained in:
parent
454ebfff50
commit
3fb63d4d78
@ -1,8 +1,11 @@
|
|||||||
#include "abstractwindowinterface.h"
|
#include "abstractwindowinterface.h"
|
||||||
|
#include "xwindowinterface.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QQuickWindow>
|
#include <QQuickWindow>
|
||||||
|
|
||||||
|
#include <KWindowSystem>
|
||||||
|
|
||||||
namespace Latte {
|
namespace Latte {
|
||||||
|
|
||||||
AbstractWindowInterface::AbstractWindowInterface(QQuickWindow *const view, QObject *parent)
|
AbstractWindowInterface::AbstractWindowInterface(QQuickWindow *const view, QObject *parent)
|
||||||
@ -13,9 +16,18 @@ AbstractWindowInterface::AbstractWindowInterface(QQuickWindow *const view, QObje
|
|||||||
|
|
||||||
AbstractWindowInterface::~AbstractWindowInterface()
|
AbstractWindowInterface::~AbstractWindowInterface()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AbstractWindowInterface *AbstractWindowInterface::getInstance(QQuickWindow * const view, QObject *parent)
|
||||||
|
{
|
||||||
|
if (KWindowSystem::isPlatformWayland()) {
|
||||||
|
//! TODO: WaylandWindowInterface
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* if(KWindowSystem::isPlatformX11) */
|
||||||
|
return new XWindowInterface(view, parent);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user