Kirigami2

enums.h
1 /*
2  * SPDX-FileCopyrightText: 2016 Marco Martin <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 #ifndef ENUMS_H
8 #define ENUMS_H
9 
10 #include <QObject>
11 
12 class ApplicationHeaderStyle : public QObject
13 {
14  Q_OBJECT
15 
16 public:
17  enum Status {
18  Auto = 0,
19  Breadcrumb,
20  Titles,
21  TabBar,
22  ToolBar,
23  None
24  };
25  Q_ENUM(Status)
26 
27  enum NavigationButton {
28  NoNavigationButtons = 0,
29  ShowBackButton = 0x1,
30  ShowForwardButton = 0x2
31  };
32  Q_ENUM(NavigationButton)
33  Q_DECLARE_FLAGS(NavigationButtons, NavigationButton)
34 };
35 
36 class MessageType : public QObject
37 {
38  Q_OBJECT
39  Q_ENUMS(Type)
40 
41 public:
42  enum Type {
43  Information = 0,
44  Positive,
45  Warning,
46  Error
47  };
48 };
49 
50 #endif // ENUMS_H
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_ENUMS(...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Jun 5 2020 22:39:02 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.