You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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;
|
|
}
|
|
|
|
}
|