Crossfire Server, Trunk
TreasureListComboBox.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 TREASURE_LIST_COMBOBOX_H
14 #define TREASURE_LIST_COMBOBOX_H
15 
16 #include <QtWidgets>
17 
18 #include "global.h"
19 
23 class TreasureListComboBox : public QComboBox {
24  Q_OBJECT
25 
26  Q_PROPERTY(const treasurelist *list READ list WRITE setList)
27 
28  public:
34  TreasureListComboBox(QWidget *parent, bool allowNone);
35 
40  void setList(const treasurelist *list);
45  const treasurelist *list() const;
46 };
47 
48 #endif /* TREASURE_LIST_COMBOBOX_H */
global.h
TreasureListComboBox::setList
void setList(const treasurelist *list)
Definition: TreasureListComboBox.cpp:37
treasurelist
Definition: treasure.h:85
TreasureListComboBox
Definition: TreasureListComboBox.h:23
TreasureListComboBox::list
const treasurelist list
Definition: TreasureListComboBox.h:26
TreasureListComboBox::TreasureListComboBox
TreasureListComboBox(QWidget *parent, bool allowNone)
Definition: TreasureListComboBox.cpp:18