Plasma
Go to the documentation of this file.
29#include "private/themedwidgetinterface_p.h"
35class GroupBoxPrivate :
public ThemedWidgetInterface<GroupBox>
38 GroupBoxPrivate(GroupBox *groupBox)
39 :ThemedWidgetInterface<GroupBox>(groupBox)
50 d(new GroupBoxPrivate(this))
52 QGroupBox *native =
new QGroupBox;
54 native->setWindowIcon(QIcon());
55 native->setAttribute(Qt::WA_NoSystemBackground);
64void GroupBox::setText(
const QString &text)
66 static_cast<QGroupBox*
>(widget())->setTitle(
text);
69QString GroupBox::text()
const
71 return static_cast<QGroupBox*
>(widget())->title();
74void GroupBox::setStyleSheet(
const QString &stylesheet)
76 widget()->setStyleSheet(stylesheet);
79QString GroupBox::styleSheet()
81 return widget()->styleSheet();
84QGroupBox *GroupBox::nativeWidget()
const
86 return static_cast<QGroupBox*
>(widget());
89void GroupBox::resizeEvent(QGraphicsSceneResizeEvent *event)
91 QGraphicsProxyWidget::resizeEvent(event);
94void GroupBox::changeEvent(QEvent *event)
96 d->changeEvent(event);
97 QGraphicsProxyWidget::changeEvent(event);
102#include <groupbox.moc>
Namespace for everything in libplasma.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.