umbrello: umbrello/umlwidgets/statusbartoolbutton.h Source File

umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

statusbartoolbutton.h
Go to the documentation of this file.
1// vim: set tabstop=4 shiftwidth=4 noexpandtab:
2/*
3Gwenview: an image viewer
4SPDX-FileCopyrightText: 2007 Aurélien Gâteau <agateau@kde.org>
5
6SPDX-License-Identifier: GPL-2.0-or-later
7
8*/
9#ifndef STATUSBARTOOLBUTTON_H
10#define STATUSBARTOOLBUTTON_H
11
12// Qt
13#include <QToolButton>
14
21 class StatusBarToolButton : public QToolButton
22{
23 Q_OBJECT
24public:
25 enum GroupPosition {
26 NotGrouped = 0,
27 GroupLeft = 1,
28 GroupRight = 2,
29 GroupCenter = 3
30 };
31
32 explicit StatusBarToolButton(QWidget* parent = 0);
33
34 virtual QSize minimumSizeHint() const;
35 virtual QSize sizeHint() const;
36
37 void setGroupPosition(StatusBarToolButton::GroupPosition groupPosition);
38
39protected:
40 virtual void paintEvent(QPaintEvent* event);
41
42private:
43 GroupPosition mGroupPosition;
44};
45
46#endif /* STATUSBARTOOLBUTTON_H */
StatusBarToolButton
Definition: statusbartoolbutton.h:22
StatusBarToolButton::sizeHint
virtual QSize sizeHint() const
Definition: statusbartoolbutton.cpp:37
StatusBarToolButton::setGroupPosition
void setGroupPosition(StatusBarToolButton::GroupPosition groupPosition)
Definition: statusbartoolbutton.cpp:45
StatusBarToolButton::mGroupPosition
GroupPosition mGroupPosition
Definition: statusbartoolbutton.h:43
StatusBarToolButton::GroupPosition
GroupPosition
Definition: statusbartoolbutton.h:25
StatusBarToolButton::GroupLeft
@ GroupLeft
Definition: statusbartoolbutton.h:27
StatusBarToolButton::GroupCenter
@ GroupCenter
Definition: statusbartoolbutton.h:29
StatusBarToolButton::GroupRight
@ GroupRight
Definition: statusbartoolbutton.h:28
StatusBarToolButton::NotGrouped
@ NotGrouped
Definition: statusbartoolbutton.h:26
StatusBarToolButton::StatusBarToolButton
StatusBarToolButton(QWidget *parent=0)
Definition: statusbartoolbutton.cpp:21
StatusBarToolButton::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition: statusbartoolbutton.cpp:51
StatusBarToolButton::minimumSizeHint
virtual QSize minimumSizeHint() const
Definition: statusbartoolbutton.cpp:31