summaryrefslogtreecommitdiffstats
path: root/src/controls
diff options
context:
space:
mode:
Diffstat (limited to 'src/controls')
-rw-r--r--src/controls/ComboBox.qml2
-rw-r--r--src/controls/Private/qquickrangemodel_p_p.h6
-rw-r--r--src/controls/plugins.qmltypes8
3 files changed, 12 insertions, 4 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 4e29dfe95..10702ff69 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -564,7 +564,7 @@ Control {
style: isPopup ? __style.__popupStyle : __style.__dropDownStyle
property string currentText: selectedText
- onSelectedTextChanged: if (selectedText) popup.currentText = selectedText
+ onSelectedTextChanged: popup.currentText = selectedText
property string selectedText
on__SelectedIndexChanged: {
diff --git a/src/controls/Private/qquickrangemodel_p_p.h b/src/controls/Private/qquickrangemodel_p_p.h
index 67f0745c0..235ba0690 100644
--- a/src/controls/Private/qquickrangemodel_p_p.h
+++ b/src/controls/Private/qquickrangemodel_p_p.h
@@ -93,7 +93,11 @@ public:
return minimum;
const qreal scale = (maximum - minimum) / posRange;
- return (pos - effectivePosAtMin()) * scale + minimum;
+ // Avoid perverse rounding glitches when at an end:
+ const qreal mid = (effectivePosAtMax() + effectivePosAtMin()) * 0.5;
+ if (pos < mid)
+ return (pos - effectivePosAtMin()) * scale + minimum;
+ return maximum - scale * (effectivePosAtMax() - pos);
}
qreal publicPosition(qreal position) const;
diff --git a/src/controls/plugins.qmltypes b/src/controls/plugins.qmltypes
index 866ef043b..89b9260a7 100644
--- a/src/controls/plugins.qmltypes
+++ b/src/controls/plugins.qmltypes
@@ -2339,8 +2339,12 @@ Module {
name: "QQuickWindow"
defaultProperty: "data"
prototype: "QWindow"
- exports: ["QtQuick.Window/Window 2.0"]
- exportMetaObjectRevisions: [0]
+ exports: [
+ "QtQuick.Window/Window 2.0",
+ "QtQuick.Window/Window 2.1",
+ "QtQuick.Window/Window 2.2"
+ ]
+ exportMetaObjectRevisions: [0, 1, 2]
Enum {
name: "SceneGraphError"
values: {