summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2011-03-10 13:54:16 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2011-03-10 13:54:16 (GMT)
commit5448446a4e02c50d83ad7e8c6c0d8022d0aaa876 (patch)
treef121842dc0d1bd83bb0fe6dbf55297d357c191ef
parent25f3fbc516aad3cbd08deaa890a3f5a93582a13b (diff)
downloadQt-5448446a4e02c50d83ad7e8c6c0d8022d0aaa876.zip
Qt-5448446a4e02c50d83ad7e8c6c0d8022d0aaa876.tar.gz
Qt-5448446a4e02c50d83ad7e8c6c0d8022d0aaa876.tar.bz2
Doc: Cannot alter SelectionMode of a combobox's view
-rw-r--r--src/gui/widgets/qcombobox.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/qcombobox.cpp b/src/gui/widgets/qcombobox.cpp
index dbbf49a..8aeef50 100644
--- a/src/gui/widgets/qcombobox.cpp
+++ b/src/gui/widgets/qcombobox.cpp
@@ -944,7 +944,10 @@ QComboBox::QComboBox(bool rw, QWidget *parent, const char *name)
to set and get item data (e.g., setItemData() and itemText()). You
can also set a new model and view (with setModel() and setView()).
For the text and icon in the combobox label, the data in the model
- that has the Qt::DisplayRole and Qt::DecorationRole is used.
+ that has the Qt::DisplayRole and Qt::DecorationRole is used. Note
+ that you cannot alter the \l{QAbstractItemView::}{SelectionMode}
+ of the view(), e.g., by using
+ \l{QAbstractItemView::}{setSelectionMode()}.
\image qstyle-comboboxes.png Comboboxes in the different built-in styles.