BPS C++ API  2.24.4
bpseditcombobox.h
Go to the documentation of this file.
1 
4 #ifndef BPSEDITCOMBOBOX_H
5 #define BPSEDITCOMBOBOX_H
6 
7 #include "bpsgui_global.h"
8 #include <QComboBox>
9 
14 {
15  Q_OBJECT
16 
17 public:
21  BpsEditComboBox(QWidget* aParent = nullptr);
22 
28  void addItemText(const QString& aText);
29 
35  void addItemTexts(const QStringList& aTexts);
36 
42 
47 };
48 
49 #endif // BPSEDITCOMBOBOX_H
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
A QComboBox enabled for editing with methods to maintain the ordered list of item texts.
Definition: bpseditcombobox.h:14
BpsEditComboBox(QWidget *aParent=nullptr)
void addItemText(const QString &aText)
Add a text to the drop down items, in case it is not yet contained.
void addItemTexts(const QStringList &aTexts)
Add texts to the drop down items, in case they is not yet contained.
QStringList itemTexts() const
void addItemCurrentText()
Add current text to the drop down items, in case it is not yet contained.