1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-26 18:03:42 +03:00

static method for get a instance of abstractwindowinterface

NOTE: WaylandWindowInterface has not been implemented
This commit is contained in:
Johan Smith Agudelo Rodriguez 2016-12-30 02:13:33 -05:00
parent 454ebfff50
commit 3fb63d4d78

View File

@ -1,8 +1,11 @@
#include "abstractwindowinterface.h"
#include "xwindowinterface.h"
#include <QObject>
#include <QQuickWindow>
#include <KWindowSystem>
namespace Latte {
AbstractWindowInterface::AbstractWindowInterface(QQuickWindow *const view, QObject *parent)
@ -13,9 +16,18 @@ AbstractWindowInterface::AbstractWindowInterface(QQuickWindow *const view, QObje
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);
}
}