MauiKit Controls

controls.cpp
1#include "controls.h"
2
3Controls::Controls(QObject *parent)
4 : QObject{parent}
5{
6
7}
8
9Controls *Controls::qmlAttachedProperties(QObject *object)
10{
11 Q_UNUSED(object)
12
13 return new Controls(object);
14}
15
16bool Controls::showCSD() const
17{
18 return m_showCSD;
19}
20
21void Controls::setShowCSD(bool newShowCSD)
22{
23 if (m_showCSD == newShowCSD)
24 return;
25 m_showCSD = newShowCSD;
26 Q_EMIT showCSDChanged();
27}
28
30{
31 return m_title;
32}
33
34void Controls::setTitle(const QString &title)
35{
36 if (m_title == title)
37 return;
38 m_title = title;
39 Q_EMIT titleChanged();
40}
The Controls class.
Definition controls.h:14
QML_ELEMENTQString title
A title text that can be attached to any control.
Definition controls.h:23
bool showCSD
Whether a supported MauiKit controls should display the window control buttons when using CSD.
Definition controls.h:28
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:57:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.