Created
February 8, 2016 06:29
-
-
Save jherico/f3b90e241390413a5e38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ComboBoxPreference : public EditPreference { | |
Q_OBJECT | |
Q_PROPERTY(QStringList items READ getItems CONSTANT) | |
public: | |
ComboBoxPreference(const QString& category, const QString& name, Getter getter, Setter setter) | |
: EditPreference(category, name, getter, setter) { } | |
Type getType() { return ComboBox; } | |
const QStringList& getItems() { return _browseLabel; } | |
void setItems(const QStringList& items) { _items = items; } | |
protected: | |
QStringList _items; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment