aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Attached properties are now available using the QML composite type nameJ-P Nurmi2015-10-091-1/+1
| | | | | | Change-Id: I8cfbd420cea4e01528d2f289cfc5989268d8718a Task-number: QTBUG-43581 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Button: add a MouseEvent argument for the signalsJ-P Nurmi2015-10-093-19/+52
| | | | | Change-Id: I7857456cae802ca18069b01b14f3c0131e4ae4c7 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* Add AbstractButton::doubleClicked() signalJ-P Nurmi2015-10-092-0/+14
| | | | | Change-Id: Ie53124b1186fee8c4b151a6c6bc3fcfe76c0250f Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* Docs: sync Button::clicked() description with pressed() and released()J-P Nurmi2015-10-091-1/+1
| | | | | Change-Id: I1d7a3d066378f52e5cecf137b36cd058afe897d7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Support for Frame as Panel top-level itemGabriel de Dietrich2015-10-092-0/+16
| | | | | Change-Id: I694db3f0fa86eacb4db5d9f003622b14e724bd40 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* ApplicationWindow: Add interstitial content itemGabriel de Dietrich2015-10-092-1/+31
| | | | | | | | | | | The goal of this is twofold. First, it allows the window's contentItem to follow the window size, keeping its nice properties. And second, it prepares for adding a popup layer item to ApplicationWindow, which should remove any need to set high z values to ensure popup windows stay on top. Change-Id: Ie024b7627808e2f3d22d7572f0ac5975e9bdf1a5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix crash in theme code when loading engines in successionJ-P Nurmi2015-10-091-5/+6
| | | | | | | | | | | | Store global engine specific themes as dynamic properties on the engines themselves. This avoids the problem that storing engines and their themes to a hash map had that destroyed engines and themes were not cleaned up from the hash map. Change-Id: I7330995339c263d456f74d33f6535d5ac7d9d5d4 Task-number: QTBUG-48651 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Fixed TabBar reset currentIndex to -1 on completionNikita Krupenko2015-10-081-1/+0
| | | | | | | | | | | | | | | TabBar resets currentIndex to -1 on completion, even if it has been explicitly set to a proper value. This is due to a calling updateCurrent() on completion. As updateCurrent() handle cases, where tab clicked by user, and proper index handled by QQuickContainer, there is no need to call this function on TabBar completion. Task-number: QTBUG-48624 Change-Id: Ied316af2bfb8983ea1d5947544cc8399aaf7eb84 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add missing "We mean it" comments to private header.Friedemann Kleint2015-10-051-0/+11
| | | | | Change-Id: I89476d298bde3880dd2c60def9ddb5f3ad1833b6 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Docs: use constant-value -tables for supported enum valuesJ-P Nurmi2015-10-046-35/+19
| | | | | Change-Id: I6243e08099d1fdd0584817f7ff5ccf5825a8cae0 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Calendar: improve the documentation about 0-based month numbersJ-P Nurmi2015-10-043-38/+66
| | | | | Change-Id: Ibcd36070b6652ca9c5033265af4415daaba4b3ef Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add Calendar singletonJ-P Nurmi2015-10-046-4/+187
| | | | | | | | | | Not yet super useful, as it only contains a Month enum to help with JavaScript's zero-based months. Later on, we can add various calendar related utility methods, such as calculating the next/prev month and so on. Change-Id: I7685eb931833fc0c30e2d5d4fe874d0618d054b4 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Calendar: kill the controls dependencyJ-P Nurmi2015-10-044-7/+0
| | | | | Change-Id: I98b3d0f7e2ec7e07462ec66d92b082b4db953806 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename CalendarView to MonthGridJ-P Nurmi2015-10-0414-107/+107
| | | | | | | | | | Let's reserve CalendarView for a bit higher level control that combines MonthGrid, DayOfWeekRow and WeekNumberColumn, and provides built-in navigation. CalendarView would use the not-so-extensible CalendarModel internally, so we could get that out of the public API as well... Change-Id: I43126ed4c87f54a5b24129b9d60c969f5bd58642 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* TextField: fix implicit sizeJ-P Nurmi2015-10-044-0/+40
| | | | | Change-Id: Iceaa5af83b2a9f0eb03829829fcfc4e4a6261100 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Controls: fix metainfo file for Qt CreatorLiang Qi2015-10-031-15/+15
| | | | | Change-Id: I07eed4a316957d0c3f96599d15d3562463032b2f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Calendar: validate month & year rangesJ-P Nurmi2015-10-034-22/+50
| | | | | | | Fixes also all Calendar types to use 0-based month. Change-Id: Iee3cafc00e0338b8076fbb3fe195b8491752cbc1 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Fix Slider position calculation to take paddings into accountJ-P Nurmi2015-10-031-7/+6
| | | | | | | | | When Slider had paddings set, the handle didn't follow the touch point / mouse cursor. The larger paddings were set, the more the handle was "off". Change-Id: I82d97092a2c3fc99cba108fe011a463a571e5507 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Doc: Update example directories in .qdocconfTopi Reinio2015-10-021-2/+2
| | | | | | | Examples are now found under examples/labs. Change-Id: Id138f4123df0511da80161935921efc2742e15ae Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Update plugins.qmltypesJ-P Nurmi2015-10-013-658/+473
| | | | | Change-Id: I6ab27aec6ac86203a64d42482a7327b69b075554 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix qmldir dependenciesJ-P Nurmi2015-10-013-1/+3
| | | | | Change-Id: Ic9583f6cf19a281c4e46b3f9961294774e6c8bb8 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename QtQuick.Controls 2.0 to Qt.labs.controls 1.0J-P Nurmi2015-10-01166-516/+511
| | | | | Change-Id: I142622dd85e95ef70b11132e77ccf48701f2cabc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename QtQuick.Templates 2.0 to Qt.labs.templates 1.0J-P Nurmi2015-10-01112-323/+323
| | | | | | Change-Id: I3263a600065dfa2bfe7334ec44a74e2dca83aa36 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename QtQuick.Calendar 2.0 to Qt.labs.calendar 1.0J-P Nurmi2015-10-0130-92/+92
| | | | | Change-Id: Ief7e28f6c595cb60f15a4960dada24a6c2f5ca3e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add PageIndicator::interactiveJ-P Nurmi2015-09-303-2/+132
| | | | | Change-Id: Iecb6d855d1c7710901925097ad4e03006d58309c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: Use a single documentation project for Controls + CalendarTopi Reinio2015-09-3013-72/+52
| | | | | | | | | | | QML types from QtQuick.Calendar module use their own import statement, but in the documentation they can listed as part of Controls. Edit the landing page and module pages to list (or link to) the usage and QML type info for both modules. Change-Id: I4e711a8d7ae84d888736eea59f5e25dadc1d35d5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* TabBar: fix implicit sizeJ-P Nurmi2015-09-301-0/+3
| | | | | | | | | | | | Like many other controls, TabBar calculates its implicit size based on the implicit sizes of its content and background items. Because of QTBUG-35038, the default content item didn't have any implicit size specified. Now that the binding loop issue has been fixed, we can specify the missing implicit size for the content, so that TabBar itself gets a sensible implicit size. Change-Id: Iaedc20b57cf613066c3ca3fef34e42eed93a9a1c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* StackView Template: Empty transitions should not crashGabriel de Dietrich2015-09-301-0/+6
| | | | | | | So we make sure a transitioner exists before running any transition. Change-Id: I3ef40e591fdbdcd5b25a5dc53e71551ac13b7531 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: Fixes required to avoid the following qdoc warningsVenugopal Shivashankar2015-09-282-2/+2
| | | | | | | | | qtquickcontrols2-index.qdoc:28: warning: Can't link to 'No' qquickstackview.cpp:46: warning: Can't link to 'replace()' Change-Id: I44cc2fab7d6b745175d0cbd3636b8025eb415c70 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove ToggleButtonJ-P Nurmi2015-09-2511-385/+1
| | | | | | | | We don't have a sensible design. It's better not to have it at all than to have a confusing tiny bit tweaked clone of Switch. Change-Id: Ib0eabd075590100e9e49846c7172909525b54a57 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Initial QtQuick.Calendar docsJ-P Nurmi2015-09-2515-1/+406
| | | | | | | The overview is still missing. Change-Id: I081f1684b64fc8b95f59844b8373293523181266 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add support for file selector based stylesJ-P Nurmi2015-09-251-28/+31
| | | | | | | | | | | unset QT_FILE_SELECTORS ./app # => selects qtbase/qml/QtQuick/Controls.2/Button.qml export QT_FILE_SELECTORS=Flat ./app # => selects qtbase/qml/QtQuick/Controls.2/+Flat/Button.qml Change-Id: Ib5d6fdcee89c14b2511dce90ea2ac5c077aafa0d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add controls.priJ-P Nurmi2015-09-252-34/+36
| | | | | Change-Id: Iab776ece0035877414626230985bb94edcfba5d8 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Fix Tumbler font, and TextField & TextArea placeholder fontsJ-P Nurmi2015-09-253-0/+3
| | | | | Change-Id: Ifbc8e0a221b1190becb789d69b9b313ab45e1615 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Calendar: fix fonts of the default delegatesJ-P Nurmi2015-09-243-2/+5
| | | | | Change-Id: Ia85c9100cd052919f99162bcb1ef63be0b9efb9d Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Fix QQuickDayOfWeekModel::setLocale()J-P Nurmi2015-09-241-3/+1
| | | | | | | | It must emit dataChanged() even if the first day of week of the new and old locales are the same. The names are most likely different. Change-Id: I932215821962910ef1fb8a66f2dab81dcc51a3b1 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* QtQuick.Controls depends on QtQuick.TemplatesJ-P Nurmi2015-09-241-0/+1
| | | | | Change-Id: Icddc2a863eb1e38978d87a4db77e2f07ac2931b9 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Docs: fix non-wrapping Tumbler snippetJ-P Nurmi2015-09-241-0/+1
| | | | | Change-Id: I7482b008ed74b7da0eb58c1114b04f8376cda806 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Calendar: don't expose MonthModel, DayOfWeekModel, WeekNumberModelJ-P Nurmi2015-09-241-6/+0
| | | | | Change-Id: Ib80bfb5d95c8bee8bcf21e511a704d7da1e9cd83 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Templatize the former extrasJ-P Nurmi2015-09-2316-55/+38
| | | | | Change-Id: Ief9ee07d1f5f6c80500bfa611bace860481e2a3f Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Doc: Replaced the module name qualifier used for QML docsVenugopal Shivashankar2015-09-2323-147/+148
| | | | | | | | Also made changes to avoid qdoc warnings about qml snippets. Change-Id: Ide047fe7a4901fcf4b03efdccf457662e60585d2 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Doc: Show the version in QML module \briefTopi Reinio2015-09-231-1/+1
| | | | | | | | | This is a workaround for distinguishing between QtQuick.Controls version 1 and 2 in 'All QML APIs by Module' (modules-qml.html) page, which currently shows identical entries for the two. Change-Id: I4d0bbb201784def3056a57898e1ac619109b9a52 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add 'Preparing for Migration' section to docs.Mitch Curtis2015-09-221-0/+18
| | | | | | | | | While working on a personal project using Qt Quick Controls, I realized that putting each custom-styled control into its own file would ease the transition to Qt Quick Controls 2. Change-Id: Ic3cbf822d40d63e9cccf3c93d049dc15b1acb63f Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* Controls: move Accessible from QML to C++ for DialLiang Qi2015-09-212-3/+2
| | | | | | Change-Id: I95604be3b31bc69f7ac3f7ed8ff444833713b67d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Templates: fix font rendering in Label, TextArea and TextFieldLiang Qi2015-09-186-35/+29
| | | | | Change-Id: I264e0b86dcf54623b545d695f1a23f7d4a08972b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Merge Qt Quick Extras into Qt Quick ControlsMitch Curtis2015-09-1835-509/+110
| | | | | | | | | | | | The original split existed because the public and enterprise controls were developed separately. Now that all controls are public and developed together, the split no longer makes sense and is difficult for users to understand. Change-Id: I00420f4d09f8c837232231d03fe818b7b3403fab Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Tidy up QQuickControlPrivate::updateFontRecur() a bitJ-P Nurmi2015-09-181-17/+12
| | | | | Change-Id: I420c48e95380f79c4d4f3aaa40f7f65f1646834d Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Add QQuickControlPrivate::get()J-P Nurmi2015-09-182-1/+6
| | | | | Change-Id: Ide0e32f5a91d866cb45a96414713facba3d48e6c Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Templates: fix activeFocusOnTabLiang Qi2015-09-171-1/+0
| | | | | | | Autotest is included, except ScrollBar and StackView. Change-Id: Idfbf031451ff3b244cd7f538c7210f0c242482ac Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Move currentIndex, add/insert/removeItem to QQuickContainerMitch Curtis2015-09-177-151/+105
| | | | | Change-Id: I6bb2adb4de972bb62f0e72c80cc50cf90964631f Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>