BPS C++ API  2.24.4
bpsstocklocationinput.h
Go to the documentation of this file.
1 
4 #ifndef BPSSTOCKLOCATIONINPUT_H
5 #define BPSSTOCKLOCATIONINPUT_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 
29  BpsStockLocationInput(BpsDatastore* aDatastore, QWidget* aParent = nullptr);
30 
34  QVariant key() const;
35 
36 public slots:
37 
42  void setKey(const QVariant& aKey);
43 
44 signals:
45 
50  void keyChanged(const QVariant& aKey);
51 
53 protected:
54  virtual bool focusNextPrevChild(bool aNext);
56 };
57 
58 #endif // BPSSTOCKLOCATIONINPUT_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 widget to select a stock location from a search list.
Definition: bpsstocklocationinput.h:19
QVariant key() const
void keyChanged(const QVariant &aKey)
This signal is emitted when another stock location got selected.
void setKey(const QVariant &aKey)
Set the current stock location key.
BpsStockLocationInput(BpsDatastore *aDatastore, QWidget *aParent=nullptr)
virtual bool focusNextPrevChild(bool next)