BPS C++ API  2.24.4
bpsarticleinput.h
Go to the documentation of this file.
1 
4 #ifndef BPSARTICLEINPUT_H
5 #define BPSARTICLEINPUT_H
6 
7 #include "bpsgui_global.h"
8 #include <QWidget>
9 #include <QVariant>
10 
11 class BpsDatastore;
12 
19 {
20  Q_OBJECT
22 
23 public:
24 
30  BpsArticleInput(BpsDatastore* aDatastore, QWidget* aParent = nullptr);
31 
36 
37 public slots:
38 
43  void setArticleKey(const QVariant& aKey);
44 
45 signals:
46 
51  void articleKeyChanged(const QVariant& aKey);
52 
54 protected:
55  virtual bool focusNextPrevChild(bool aNext);
57 };
58 
59 #endif // BPSARTICLEINPUT_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
A widget to select a article from a search list.
Definition: bpsarticleinput.h:19
void setArticleKey(const QVariant &aKey)
Set the current article key.
void articleKeyChanged(const QVariant &aKey)
This signal is emitted when another article got selected.
QVariant articleKey() const
BpsArticleInput(BpsDatastore *aDatastore, QWidget *aParent=nullptr)
The constructor.
BPS datastore class.
Definition: bpsdatastore.h:61
virtual bool focusNextPrevChild(bool next)