tuchulcha  0.10.1
Graphical Workflow Configuration Editor
PriorityBox.h
Go to the documentation of this file.
1 /* Copyright (C) 2012 David Stronczek
2 
3  This file is part of Tuchulcha.
4 
5  Tuchulcha is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Tuchulcha 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
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Tuchulcha. If not, see <http://www.gnu.org/licenses/>.
17 */
24 #ifndef PRIORITYBOX_H_
25 #define PRIORITYBOX_H_
26 
27 #include <QComboBox>
28 
30 
33 class PriorityBox : public QComboBox {
34  Q_OBJECT
35 
37  Q_PROPERTY(uint priority READ priority WRITE setPriority USER true)
38 
39 public:
41 
45  PriorityBox(QWidget* parent = 0, uint priority = 0, bool strings = true);
46 
48  uint priority() const;
49 
51  void setPriority(uint value);
52 };
53 
54 #endif /* PRIORITYBOX_H_ */
void setPriority(uint value)
Set selected priority.
Definition: PriorityBox.cpp:63
PriorityBox(QWidget *parent=0, uint priority=0, bool strings=true)
Default constructor, setting parent widget.
Definition: PriorityBox.cpp:28
Priority Box..
Definition: PriorityBox.h:33
uint priority() const
Get selected priority.