BPS C++ API  2.24.4
bpsrelationinput.h
Go to the documentation of this file.
1 
4 #ifndef BPSRELATIONINPUT_H
5 #define BPSRELATIONINPUT_H
6 
7 #include "bpsgui_global.h"
8 #include <QComboBox>
9 
10 class BpsDatastore;
11 
16 {
17  Q_OBJECT
19 
20 public:
21 
28  BpsRelationInput(BpsDatastore* aDatastore, const QString& aRelTable, const QString& aRelColumn, QWidget* aParent = nullptr);
29 
34 
35 public slots:
36 
41  void setRelationKey(const QVariant& aKey);
42 
43 signals:
44 
49  void relationKeyChanged(const QVariant& aKey);
50 };
51 
52 #endif // BPSRELATIONINPUT_H
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
BPS datastore class.
Definition: bpsdatastore.h:61
A combo box to select an option from a relation table.
Definition: bpsrelationinput.h:16
QVariant relationKey() const
void relationKeyChanged(const QVariant &aKey)
This signal is emitted when another option got selected.
void setRelationKey(const QVariant &aKey)
Set the current relation table key.
BpsRelationInput(BpsDatastore *aDatastore, const QString &aRelTable, const QString &aRelColumn, QWidget *aParent=nullptr)