kdelibs/plasma/widgets/groupbox.h
Ivailo Monev 2ad07c5a86 plasma: remove redundant widget properties
once used in qml bindings and such, now redundant

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 20:24:03 +03:00

75 lines
1.8 KiB
C++

/*
* Copyright 2008 Aaron Seigo <aseigo@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details
*
* You should have received a copy of the GNU Library General Public
* License along with this program; if not, write to the
* Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef PLASMA_GROUPBOX_H
#define PLASMA_GROUPBOX_H
#include <QtGui/QGraphicsProxyWidget>
#include <QGroupBox>
#include <plasma/plasma_export.h>
namespace Plasma
{
class GroupBoxPrivate;
/**
* @class GroupBox plasma/widgets/groupbox.h <Plasma/Widgets/GroupBox>
*
* @short Provides a plasma-themed QGroupBox.
*/
class PLASMA_EXPORT GroupBox : public QGraphicsProxyWidget
{
Q_OBJECT
Q_PROPERTY(QString text READ text WRITE setText)
public:
explicit GroupBox(QGraphicsWidget *parent = 0);
~GroupBox();
/**
* Sets the display text for this GroupBox
*
* @param text the text to display; should be translated.
*/
void setText(const QString &text);
/**
* @return the display text
*/
QString text() const;
/**
* @return the native widget wrapped by this GroupBox
*/
QGroupBox *nativeWidget() const;
protected:
void changeEvent(QEvent *event);
private:
GroupBoxPrivate * const d;
Q_PRIVATE_SLOT(d, void setPalette())
};
} // namespace Plasma
#endif // multiple inclusion guard