Crossfire Server, Trunk
QuestComboBox.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef QUESTCOMBOBOX_H
14 #define QUESTCOMBOBOX_H
15 
16 #include <QtWidgets>
17 
18 class quest_definition;
19 
23 class QuestComboBox : public QComboBox {
24  Q_OBJECT
25 
26  Q_PROPERTY(const quest_definition *quest READ quest WRITE setQuest)
27 
28  public:
34  QuestComboBox(QWidget* parent, bool allowNone);
35  virtual ~QuestComboBox();
36 
41  void setQuest(const quest_definition* quest);
46  const quest_definition* quest() const;
47 };
48 
49 #endif /* FACECOMBOBOX_H */
QuestComboBox::setQuest
void setQuest(const quest_definition *quest)
Definition: QuestComboBox.cpp:45
QuestComboBox::quest
const quest_definition quest
Definition: QuestComboBox.h:26
quest
Definition: quest.py:1
QuestComboBox::~QuestComboBox
virtual ~QuestComboBox()
Definition: QuestComboBox.cpp:41
QuestComboBox
Definition: QuestComboBox.h:23
QuestComboBox::QuestComboBox
QuestComboBox(QWidget *parent, bool allowNone)
Definition: QuestComboBox.cpp:20
quest_definition
Definition: quest.h:37