diff options
author | Marcin Miklas <marcin.miklas@teleca.com> | 2010-04-02 15:40:44 +0200 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@nokia.com> | 2010-04-14 09:36:36 +0300 |
commit | 2672d9880a586abb2007faa3a0691375e06a9fc1 (patch) | |
tree | 1977c84a985874653bd8fe684e76abf580e40009 /src/corelib/widgets/mcombobox.cpp | |
parent | b31ba6ba7d2b875818a19ba95a82af54763f90f8 (diff) |
New: Progress bar added to MComboBox.
RevBy: Daniel d'Andrada
Details:
Now, for long taking selections, MComboBox can display progress indicator.
I've added ProgressIndicatorVisible property to MComboBox and helper functions:
showProgressIndicator, hideProgressIndicator
My changes also required to update MContentItem, so I moved
additionalItem to MContentItemModel class, and changed MContentItemView
to update layout when additionalItem property is changed.
WidgetsGallery comboboxpage updated to show new feature of MComboBox.
Diffstat (limited to 'src/corelib/widgets/mcombobox.cpp')
-rw-r--r-- | src/corelib/widgets/mcombobox.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/widgets/mcombobox.cpp b/src/corelib/widgets/mcombobox.cpp index 262c17dc..ce6bfb7e 100644 --- a/src/corelib/widgets/mcombobox.cpp +++ b/src/corelib/widgets/mcombobox.cpp @@ -183,6 +183,11 @@ QString MComboBox::title() const return model()->title(); } +bool MComboBox::isProgressIndicatorVisible() const +{ + return model()->progressIndicatorVisible(); +} + void MComboBox::addItem(const QString &text) { insertItem(count(), text); @@ -351,6 +356,11 @@ void MComboBox::setTitle(const QString &title) model()->setTitle(title); } +void MComboBox::setProgressIndicatorVisible(bool enable) +{ + model()->setProgressIndicatorVisible(enable); +} + void MComboBox::setCurrentIndex(int index) { if (index == currentIndex()) return; |