mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-27 06:03:51 +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 "xwindowinterface.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QQuickWindow>
|
||||
|
||||
#include <KWindowSystem>
|
||||
|
||||
namespace Latte {
|
||||
|
||||
AbstractWindowInterface::AbstractWindowInterface(QQuickWindow *const view, QObject *parent)
|
||||
@ -16,6 +19,15 @@ 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