MauiKit Controls

controls.cpp
1 #include "controls.h"
2 
3 Controls::Controls(QObject *parent)
4  : QObject{parent}
5 {
6 
7 }
8 
9 Controls *Controls::qmlAttachedProperties(QObject *object)
10 {
11  Q_UNUSED(object)
12 
13  return new Controls(object);
14 }
15 
16 bool Controls::showCSD() const
17 {
18  return m_showCSD;
19 }
20 
21 void 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 
34 void Controls::setTitle(const QString &title)
35 {
36  if (m_title == title)
37  return;
38  m_title = title;
39  Q_EMIT titleChanged();
40 }
Q_EMITQ_EMIT
bool showCSD
Whether a supported MauiKit controls should display the window control buttons when using CSD.
Definition: controls.h:28
QString title
A title text that can be attached to any control.
Definition: controls.h:23
The Controls class.
Definition: controls.h:13
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Feb 15 2024 04:05:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.