• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • calligra API Reference
  • KDE Home
  • Contact Us
 

KoWidgetUtils

  • sources
  • kfour-appscomplete
  • calligra
  • libs
  • widgetutils
KoGroupButton.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2007 Aurélien Gâteau <[email protected]>
3  Copyright (C) 2012 Jean-Nicolas Artaud <[email protected]>
4  Copyright (C) 2012 Jarosław Staniek <[email protected]>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef KOGROUPBUTTON_H
21 #define KOGROUPBUTTON_H
22 
23 #include "kowidgetutils_export.h"
24 
25 // Qt
26 #include <QToolButton>
27 
35 class KOWIDGETUTILS_EXPORT KoGroupButton : public QToolButton
36 {
37  Q_OBJECT
38 public:
42  enum GroupPosition {
43  NoGroup,
44  GroupLeft,
45  GroupRight,
46  GroupCenter
47  };
48  Q_ENUM(GroupPosition);
49 
50  Q_PROPERTY( GroupPosition groupPosition READ groupPosition WRITE setGroupPosition NOTIFY groupPositionChanged)
51 
52  explicit KoGroupButton(GroupPosition position, QWidget* parent = 0);
53 
57  explicit KoGroupButton(QWidget* parent = 0);
58 
59  ~KoGroupButton() override;
60 
61  void setGroupPosition(KoGroupButton::GroupPosition groupPosition);
62 
63  KoGroupButton::GroupPosition groupPosition() const;
64 
65 Q_SIGNALS:
66  void groupPositionChanged();
67 
68 protected:
69  void paintEvent(QPaintEvent* event) override;
70 
71 private:
72  class Private;
73  Private *const d;
74 };
75 
76 #endif /* KOGROUPBUTTON_H */
QWidget
QToolButton
QToolButton::paintEvent
virtual void paintEvent(QPaintEvent *event)
QPaintEvent
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Apr 21 2021 23:25:26 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KoWidgetUtils

Skip menu "KoWidgetUtils"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

calligra API Reference

Skip menu "calligra API Reference"
  • Braindump
  • filters
  •   MSO
  •   KoMSOOXML
  •   KoOdf2
  •   KoOdfReader
  • Karbon
  • libs
  •   BasicFlakes
  •   Flake
  •   KoKross
  •   KUndo2
  •   KoMain
  •   KoOdf
  •   KoPageApp
  •   Pigment
  •   KoPlugin
  •   KoRdf
  •   KoStore
  •   KoText
  •   KoTextLayout
  •   KoVectorImage
  •   KoWidgets
  •   KoWidgetUtils
  • plugins
  •   formulashape
  •   musicshape
  • Sheets
  • Stage
  • Words
  •   part
  •     scripting

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal