mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-24 17:33:50 +03:00
f9ec1fa5b3
-initial commit based on the latest Now Dock from the corona branch and beautiful techniques and designs from the Candil Dock
43 lines
660 B
C++
43 lines
660 B
C++
#include "abstractinterface.h"
|
|
|
|
#include <QObject>
|
|
#include <QQuickWindow>
|
|
|
|
namespace NowDock {
|
|
|
|
AbstractInterface::AbstractInterface(QQuickWindow *dock) :
|
|
QObject(dock),
|
|
m_isDockWindowType(false),
|
|
m_dockNumber(0)
|
|
{
|
|
m_dockWindow = dock;
|
|
}
|
|
|
|
void AbstractInterface::setDockNumber(unsigned int no)
|
|
{
|
|
if (m_dockNumber == no) {
|
|
return;
|
|
}
|
|
|
|
m_dockNumber = no;
|
|
|
|
emit dockNumberChanged(m_dockNumber);
|
|
}
|
|
|
|
unsigned int AbstractInterface::dockNumber() const
|
|
{
|
|
return m_dockNumber;
|
|
}
|
|
|
|
|
|
void AbstractInterface::setMaskArea(QRect area)
|
|
{
|
|
if (m_maskArea == area) {
|
|
return;
|
|
}
|
|
|
|
m_maskArea = area;
|
|
}
|
|
|
|
}
|