aboutsummaryrefslogtreecommitdiffstats
path: root/src/controls
Commit message (Collapse)AuthorAgeFilesLines
* Frame: inherit Control instead of ContainerJ-P Nurmi2015-06-183-7/+7
| | | | | Change-Id: I4360dcec1e9c5db32e6cadc87bd12db3b79a10df Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* StackView: inherit Control instead of ContainerJ-P Nurmi2015-06-183-8/+8
| | | | | Change-Id: I0bdaa7f4a7af659f75c15879914b104ca5843d22 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: TextFieldJ-P Nurmi2015-06-167-0/+65
| | | | | Change-Id: I892ca73cdc1d96d924b369b30d822b3dd7611c94 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* TextArea: sync background resizing with ControlJ-P Nurmi2015-06-161-11/+21
| | | | | Change-Id: Iedb86604b9dc545a09f22c713f70970cc11ca6f9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* TextField: sync background resizing with ControlJ-P Nurmi2015-06-161-11/+21
| | | | | Change-Id: Iabf6e88fc929215af6e82fdd1493678b73a65dcd Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* TabBar: implement contentData & contentChildrenJ-P Nurmi2015-06-152-34/+238
| | | | | Change-Id: I61d077758c83027cbfc1b99d32cb68efc0829ffd Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Demote some containers to plain controlsJ-P Nurmi2015-06-152-5/+5
| | | | | | | These don't need the upcoming container API for managing child items. Change-Id: I012db45277f0d4931c8c14fc74f46f9784430ea4 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Promote contentItem from Container to ControlJ-P Nurmi2015-06-156-82/+55
| | | | | Change-Id: I843e8afbee9f321112defeff99f885eadc748e75 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename Control::availableWidth/Height to contentWidth/HeightJ-P Nurmi2015-06-153-26/+28
| | | | | Change-Id: Ia39a52e7e8d968b05fd7a2d64ab3b3030a9f528e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove obsolete Container::contentWidth & contentHeightJ-P Nurmi2015-06-153-50/+1
| | | | | Change-Id: Ia0ed99904e2bcdcf15820da9ad8a7e1f07fc7e1e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Let QQuickGroupBox inherit QQuickFrameJ-P Nurmi2015-06-146-37/+123
| | | | | Change-Id: If1d8f3c5ca35b47031adb308a313deb5c1f38bca Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Pass new & old padding to QQuickControl::paddingChange()J-P Nurmi2015-06-144-17/+24
| | | | | | | | | Consistent with geometryChange() and useful for controls that want to resize delegate items in a specific dimension (ie. either the width or height follows the delegate size). Change-Id: Id143b2ef1e7b266ac32d9f3129f88d0fadb036d0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Slider: add from & to propertiesJ-P Nurmi2015-06-112-24/+113
| | | | | Change-Id: Iee61e89d8519e7e3d27f1bf1c35af210f48bc7c9 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Import the new TabBar implementationJ-P Nurmi2015-06-112-4/+204
| | | | | Change-Id: I2c646c07f8310c27f3f03f3cdb27f748c5e6198c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove the old TabView implementationJ-P Nurmi2015-06-113-367/+0
| | | | | Change-Id: I8d8aa96f2f37f458577a5a3ec681e3c9174d0918 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ProgressBar: add from, to & position propertiesJ-P Nurmi2015-06-102-13/+112
| | | | | Change-Id: I1bf29fab227f1f2642994f9167c9a6957abcbb65 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: ProgressBarJ-P Nurmi2015-06-106-6/+51
| | | | | Change-Id: I82e524281c64580f9a910b700f0efbf53a4dabe7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: SliderJ-P Nurmi2015-06-108-12/+100
| | | | | Change-Id: I9499ab27a74996f43db70ec3ddc49e04b39d2da6 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: ToggleButtonJ-P Nurmi2015-06-109-1/+51
| | | | | Change-Id: Id4db1808a42ee29c030f095f8c87542de1702ce0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: SwitchJ-P Nurmi2015-06-109-3/+68
| | | | | Change-Id: I1cdac365b12b7c7fb88c10f8a1de9d68ec1b44d8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: Customizing Qt Quick ControlsJ-P Nurmi2015-06-104-81/+107
| | | | | Change-Id: I747e030096a068e20043cdff9dd62775ca77feb6 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Container: resize the content automaticallyJ-P Nurmi2015-06-094-1/+33
| | | | | Change-Id: If7964b64b6f78fc77e1095d69658e27bcb89a6f8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* RadioButton docsJ-P Nurmi2015-06-098-1/+61
| | | | | Change-Id: I158dac84c09172b7c27b227f673653feafb956af Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* CheckBox docsJ-P Nurmi2015-06-099-4/+61
| | | | | Change-Id: I7476a94fcae656ca11424681363228cfa2b99c6f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Tweak Button docsJ-P Nurmi2015-06-091-17/+11
| | | | | Change-Id: I23ee64fea97718a4688b03887eb2a62ccb464193 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control docsJ-P Nurmi2015-06-091-12/+72
| | | | | Change-Id: I33a82ce789c649825a7999d8a01c4bc5f42be7cf Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Q_UNUSED() in addition to Q_ASSERT()J-P Nurmi2015-06-062-0/+2
| | | | | Change-Id: Id6509da9434e77349be068a84beb31e1f9edd124 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Control::availableWidth & availableHeightJ-P Nurmi2015-06-036-60/+39
| | | | | | | | | The recently introduced contentWidth/Height was ambiguous. It had even different semantics than in Containers, TextXxx & Flickable etc. Thus, replace with availableWidth/Height. Change-Id: Iaeef25ec82b395c602724d222ca73666460ffd29 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Improve Control::background automatic resizingJ-P Nurmi2015-05-231-2/+2
| | | | | | | | - width follows only if x and width are both not specified - height follows only if y and height are both not specified Change-Id: Ib881daa9da339baac53f7f9d4de6e5bdad7723e2 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix Control::mirroredChanged() emissionJ-P Nurmi2015-05-233-3/+5
| | | | | | | | It was emitted only when LayoutMirroring.enabled changed, but it also needs to be emitted when layoutDirection changes... Change-Id: I9424fdf232c11669780c9abace5c162a0df69dbe Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickContainer: omit automatic content size notifiersJ-P Nurmi2015-05-232-0/+14
| | | | | Change-Id: Iaeb851371810283cc272d755f32ffdafaff16118 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickControlPrivate::resizeBackground()J-P Nurmi2015-05-232-11/+21
| | | | | Change-Id: Id686a132fc9e7933c86e5314056f28fc50f6c61f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Button: revert automatic label layoutingJ-P Nurmi2015-05-233-55/+2
| | | | | | | | | | It got ugly and hackish, and broke for QQuickButton subclasses. Instead, use simple and pretty bindings (thanks to newly introduced contentWidth and contentHeight) to give the label a default size and position. Change-Id: I4cd705e86a12e8c9ffa0b7a768b1878bba797036 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add read-only Control::contentWidth and contentHeightJ-P Nurmi2015-05-236-20/+58
| | | | | | | This is the control width and height without padding. Change-Id: Iebee2a0d3fd6b5475fef1dad507c72efba12d903 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Expose read-only bool Control::mirrored property for convenienceJ-P Nurmi2015-05-224-12/+21
| | | | | Change-Id: Icbb39aa1c3ac6f4b00adbc59c09a6c79e99bafd3 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Promote layoutDirection & effectiveLayoutDirection to ControlJ-P Nurmi2015-05-2210-145/+50
| | | | | Change-Id: I44df09c17d6d20cfd929af4e331e15f48b19587e Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix writable ScrollBar/Indicator position & size propertiesJ-P Nurmi2015-05-222-4/+4
| | | | | | | | | The setters were already exposed as slots, but the properties should be writable to let apps implement eg. "infinite" scrolling using pure declarative bindings. Change-Id: I6c827803559b6d0f1bb97b90345874173ef107e4 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickButton: Add canceled signalGabriel de Dietrich2015-04-292-9/+31
| | | | | | | | | | | | | | We now support the following pattern: 1. Press the mouse button => emit pressed 2. Move the mouse cursor outside the button => pressed = false 3. Release the mouse button => emit canceled Note that getting the mouse grabbed away by another item, at any stage, will also emit the canceled signal. Change-Id: I97e485327370ea47943dfef75553000cee449a01 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Button docsJ-P Nurmi2015-04-288-8/+79
| | | | | Change-Id: I387ecb0cac328e99645b92371687cfc3678b5c71 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Button: provide a default size for the label delegateJ-P Nurmi2015-04-283-1/+48
| | | | | | | | | | | If the label delegate has no explicit size defined, make it follow the size of the button minus padding. This should be a convenient default behavior that satisfies the most users, and saves a few of QML bindings. Makes also the upcoming "the default delegate implementation looks like this" -snippet nice and short. ;) Change-Id: I574439c1e52c2904746be7d830f9536d4cfd9083 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Set BusyIndicator::running to true by defaultFrederik Gladhorn2015-04-271-1/+1
| | | | | | | | This way it works out of the box and can be used with visible true/false etc. It's also in line with what qtquickcontrols (1) do. Change-Id: Ib82b0a60a7a78b6646452704f4ffb96fbd16923c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add QQuickControl::paddingChange()J-P Nurmi2015-04-272-4/+19
| | | | | | | | | Some controls will resize delegates inside the padding. In this case reacting to geometryChange() is not enough, they must handle paddingChange() as well. Change-Id: I424454732a31db6d5a99ee1423f75cf753c80259 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* ExclusiveGroup: don't crash when passing nullJ-P Nurmi2015-04-251-0/+6
| | | | | Change-Id: I4d6f555faac81e56c32c6baf0a9ede14849a5855 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add basic ApplicationWindow docsFrederik Gladhorn2015-04-241-6/+23
| | | | | Change-Id: I943d7df19c50e1e02b38c0b8e337d9d6a5aa7fdb Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix module exports (windows build)Frederik Gladhorn2015-04-241-1/+1
| | | | | | | | After renaming the module to get the doc build working, the exports are wrong. Change-Id: If92c06c0ce1c59a86d99d1f3d1b73ed6beeed297 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
* QQuickStackView: fix buildJ-P Nurmi2015-04-231-1/+1
| | | | | | | error: no member named 'asString' in 'QV4::Value' Change-Id: If0bb37c59d1533f501677022485fe925a468be7f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename module to qtquickcontrols2Frederik Gladhorn2015-04-211-1/+1
| | | | | | | | | This allows to co-install the documentation since it ends up in doc/qtquickcontrols2, otherwise it overrides the qtquickcontrols (1) docs. Change-Id: Ie328d2db75c4023ea0db5106029b8fa14fbaf6e1 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickAbstractStackView: fix buildLiang Qi2015-04-171-1/+1
| | | | | | | error: no member named 'asArrayObject' in 'QV4::Value' Change-Id: I462cab09129916cd6d2834755751dcb3811a9df7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Pimplify QQuickExclusiveAttachedJ-P Nurmi2015-04-152-9/+21
| | | | | Change-Id: I47a70f189e0573b9128a4f2953ae9f6df8f7921f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add missing QQuickButton::pressed() & released() signalsJ-P Nurmi2015-04-152-3/+27
| | | | | Change-Id: I5942457258e1c666a0d67dbc5a9a5611d4ed5967 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>