aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickcombobox.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace Popup::pressed|releasedOutside with close policy flagsJ-P Nurmi2016-01-281-23/+2
| | | | | Change-Id: I3e09c4e2b6cbbe39bdf9e943905664e5dc1fe954 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Popup::closePolicyJ-P Nurmi2016-01-281-2/+0
| | | | | Change-Id: Ie3d0f50a59aeaab36ec388af897cbf2596269ce3 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* ComboBox: add support for object arrayJ-P Nurmi2016-01-261-1/+31
| | | | | | | Change-Id: Ia43ba18cfd7ce9f5c4c28e239645320af5ba41e7 Task-number: QTBUG-50141 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Popup::parentJ-P Nurmi2016-01-231-0/+7
| | | | | | | | | | | | | | | The parent defaults to the QML parent object where Popup is declared. Popup::x/y are relative to the parent, and the popup also automatically follows the parent as appropriate. QQuickPopupPositioner has been adapted from Qt Quick Controls 1. It was called QQuickScenePosListener, and it was implemented for the text selection handle popups. ComboBox's popup now follows the control eg. when scrolling, but the below/above positioning feature is temporarily gone missing. It will be restored in a follow up commit. Change-Id: I8a6b58cd74e07f33930abc35d0ab9da056685128 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: add notes about the Qt.labs moduleJ-P Nurmi2016-01-191-0/+2
| | | | | Change-Id: I65c37f661689bf30e7a9119bb877dce68eeb634c Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
* Implement QQuickComboBox::defaultFont()J-P Nurmi2016-01-151-0/+6
| | | | | Change-Id: I99a5b899effbd1c5b758f12a96c336266539892e Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* ComboBox: fix delegate model re-creationJ-P Nurmi2016-01-141-8/+9
| | | | | | | | | | | | | Instead of deleting the old model first and then immediately creating a new model, create the new model first, and then destroy the old one afterwards. This simple trick ensures that the new model doesn't land to the same memory address where the old model was allocated, which in turn made QQuickItemView think the model didn't change. Change-Id: Ic1ba1345d50b62a93309e4c3f201152ce57d0412 Task-number: QTBUG-50385 Task-number: QTBUG-50386 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ComboBox: fix displayText initializationJ-P Nurmi2015-12-231-1/+1
| | | | | | | | | Make ComboBox::textAt(idx) call ObjectModel::object(idx) to force initialization of the model items. Change-Id: If99c9263fa00ae6d21a92f11a45caf6e1f6b731c Task-number: QTBUG-50143 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Popup: rename show()/hide() to open()/close()J-P Nurmi2015-12-141-2/+2
| | | | | | | | | QML popups have traditionally used more explicit open() and close(). Renaming them to show() and hide() at this stage doesn't seem to have any real advantages. Change-Id: I1e7c8c4817c67e62cef965525e00f5bf125a7d76 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix QQuickComboBox::focusOutEvent()J-P Nurmi2015-12-121-1/+1
| | | | | | | Call the immediate base class, QQuickControl, instead of QQuickItem. Change-Id: If48283375f010c30a5860903097f3693cbc2b097 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename Panel to PopupJ-P Nurmi2015-12-091-44/+44
| | | | | | | | | Popup is a more descriptive name. Furthermore, this name change opens the door for another type called Pane. It gives the appropriate background color for the current style & theme. Change-Id: Idb91d37e807f62e870b50f0b656e84ee2d43a9fb Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add ComboBoxJ-P Nurmi2015-12-041-0/+795
Change-Id: I4cfc2367db92786097a1ce66bd4b5a2f71322a2e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>