11 #ifndef __MULTIBOXCOMBO_H__ 12 #define __MULTIBOXCOMBO_H__ 18 #include <QListWidget> 19 #include <QVBoxLayout> 20 #include <QStylePainter> 33 void SetDisplayText(QString text);
36 QString GetDisplayText()
const;
39 void addItem(
const QString& text,
const QVariant& userData = QVariant());
42 virtual void paintEvent(QPaintEvent *
e);
45 void setPopupHeight(
int h);
53 void setCurrentIndex(
int index);
54 QString currentText();
55 QString itemText(
int row);
56 QVariant itemData(
int row);
57 void setItemChecked(
int row,
bool checked);
66 void scanItemSelect(QListWidgetItem* item);
69 void initStyleOption(QStyleOptionComboBox *option)
const;
GLM_FUNC_DECL genType e()
GLM_FUNC_DECL genType::row_type row(genType const &m, length_t const &index)
int screenbound_
lower/upper screen bound
QFrame popframe_
popup frame
int popheight_
the height of the popup
QString m_DisplayText_
hold the main display text
QListWidget vlist_
multi selection list in the popup frame