umbrello: umbrello/umlwidgets/statusbartoolbutton.h Source File

umbrello 2.31.1 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 /*
3 Gwenview: an image viewer
4 Copyright 2007 Aurélien Gâteau <agateau@kde.org>
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 */
21 #ifndef STATUSBARTOOLBUTTON_H
22 #define STATUSBARTOOLBUTTON_H
23
24 // Qt
25 #include <QToolButton>
26
33 class StatusBarToolButton : public QToolButton
34 {
35 Q_OBJECT
36 public:
37 enum GroupPosition {
38 NotGrouped = 0,
39 GroupLeft = 1,
40 GroupRight = 2,
41 GroupCenter = 3
42 };
43
44 explicit StatusBarToolButton(QWidget* parent = 0);
45
46 virtual QSize minimumSizeHint() const;
47 virtual QSize sizeHint() const;
48
49 void setGroupPosition(StatusBarToolButton::GroupPosition groupPosition);
50
51 protected:
52 virtual void paintEvent(QPaintEvent* event);
53
54 private:
55 GroupPosition mGroupPosition;
56 };
57
58 #endif /* STATUSBARTOOLBUTTON_H */
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
StatusBarToolButton::GroupCenter
@ GroupCenter
Definition: statusbartoolbutton.h:41
StatusBarToolButton::mGroupPosition
GroupPosition mGroupPosition
Definition: statusbartoolbutton.h:55
StatusBarToolButton::GroupLeft
@ GroupLeft
Definition: statusbartoolbutton.h:39
statusbartoolbutton.h
StatusBarToolButton::GroupRight
@ GroupRight
Definition: statusbartoolbutton.h:40
StatusBarToolButton::paintEvent
virtual void paintEvent(QPaintEvent *event)
Definition: statusbartoolbutton.cpp:63
StatusBarToolButton::minimumSizeHint
virtual QSize minimumSizeHint() const
Definition: statusbartoolbutton.cpp:43
StatusBarToolButton::setGroupPosition
void setGroupPosition(StatusBarToolButton::GroupPosition groupPosition)
Definition: statusbartoolbutton.cpp:57
StatusBarToolButton
Definition: statusbartoolbutton.h:34
StatusBarToolButton::NotGrouped
@ NotGrouped
Definition: statusbartoolbutton.h:38
StatusBarToolButton::GroupPosition
GroupPosition
Definition: statusbartoolbutton.h:37
StatusBarToolButton::StatusBarToolButton
StatusBarToolButton(QWidget *parent=0)
Definition: statusbartoolbutton.cpp:33
StatusBarToolButton::sizeHint
virtual QSize sizeHint() const
Definition: statusbartoolbutton.cpp:49