File indexing completed on 2024-05-05 04:46:52

0001 #include "controls.h"
0002 
0003 Controls::Controls(QObject *parent)
0004     : QObject{parent}
0005 {
0006 
0007 }
0008 
0009 Controls *Controls::qmlAttachedProperties(QObject *object)
0010 {
0011     Q_UNUSED(object)
0012 
0013     return new Controls(object);
0014 }
0015 
0016 bool Controls::showCSD() const
0017 {
0018     return m_showCSD;
0019 }
0020 
0021 void Controls::setShowCSD(bool newShowCSD)
0022 {
0023     if (m_showCSD == newShowCSD)
0024         return;
0025     m_showCSD = newShowCSD;
0026     Q_EMIT showCSDChanged();
0027 }
0028 
0029 QString Controls::title() const
0030 {
0031     return m_title;
0032 }
0033 
0034 void Controls::setTitle(const QString &title)
0035 {
0036     if (m_title == title)
0037         return;
0038     m_title = title;
0039     Q_EMIT titleChanged();
0040 }