Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
843 B

#ifndef QTMVVM_SELECTCOMBOBOX_P_H
#define QTMVVM_SELECTCOMBOBOX_P_H
#include <QtCore/QVariant>
#include <QtWidgets/QComboBox>
#include "qtmvvmwidgets_global.h"
namespace QtMvvm {
class SelectComboBox : public QComboBox
{
Q_OBJECT
Q_PROPERTY(QVariant currentValue READ currentValue WRITE setCurrentValue NOTIFY currentValueChanged USER true)
Q_PROPERTY(QVariantList listElements READ listElements WRITE setListElements NOTIFY listElementsChanged)
public:
explicit SelectComboBox(QWidget *parent = nullptr);
QVariant currentValue() const;
QVariantList listElements() const;
public Q_SLOTS:
void setCurrentValue(const QVariant &data);
void setListElements(const QVariantList &listElements);
Q_SIGNALS:
void currentValueChanged();
void listElementsChanged(QVariantList listElements);
};
}
#endif // QTMVVM_SELECTCOMBOBOX_P_H