22#ifndef KPROPERTY_COMBOBOX_H
23#define KPROPERTY_COMBOBOX_H
25#include "KPropertyWidgetsFactory.h"
29class KPROPERTYWIDGETS_EXPORT KPropertyComboBoxEditorIconProviderInterface
32 KPropertyComboBoxEditorIconProviderInterface() {}
33 virtual ~KPropertyComboBoxEditorIconProviderInterface() {}
34 virtual QIcon icon(
int index)
const = 0;
35 virtual KPropertyComboBoxEditorIconProviderInterface* clone()
const = 0;
38class KPROPERTYWIDGETS_EXPORT KPropertyComboBoxEditorOptions
41 KPropertyComboBoxEditorOptions();
42 KPropertyComboBoxEditorOptions(
const KPropertyComboBoxEditorOptions& other);
43 ~KPropertyComboBoxEditorOptions();
45 KPropertyComboBoxEditorOptions& operator=(
const KPropertyComboBoxEditorOptions &other);
47 KPropertyComboBoxEditorIconProviderInterface *iconProvider =
nullptr;
48 bool extraValueAllowed;
51class KPROPERTYWIDGETS_EXPORT KPropertyComboBoxEditor :
public QComboBox
54 Q_PROPERTY(
QVariant value READ value WRITE setValue USER
true)
58 const KPropertyComboBoxEditorOptions &options,
61 ~KPropertyComboBoxEditor()
override;
68 void commitData(
QWidget * editor );
73 virtual void setValue(
const QVariant &value);
76 void slotValueChanged(
int value);
85 bool listDataKeysAvailable()
const;
88 Q_DISABLE_COPY(KPropertyComboBoxEditor)
97 KPropertyComboBoxDelegate();
An interface for editor widget creators.
A data container for properties of list type.
Provides a specialized conversion of value to string depending on type.
The base class representing a single property.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:18 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.