aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/calendar
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Update plugins.qmltypesJ-P Nurmi2015-10-011-57/+207
| | | | | Change-Id: I6ab27aec6ac86203a64d42482a7327b69b075554 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix qmldir dependenciesJ-P Nurmi2015-10-011-0/+1
| | | | | 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-013-3/+3
| | | | | 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-017-7/+7
| | | | | | 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-0120-75/+75
| | | | | Change-Id: Ief7e28f6c595cb60f15a4960dada24a6c2f5ca3e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Doc: Use a single documentation project for Controls + CalendarTopi Reinio2015-09-3010-148/+0
| | | | | | | | | | | 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>
* Initial QtQuick.Calendar docsJ-P Nurmi2015-09-2514-0/+405
| | | | | | | The overview is still missing. Change-Id: I081f1684b64fc8b95f59844b8373293523181266 Reviewed-by: Mitch Curtis <mitch.curtis@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>
* Calendar: don't expose MonthModel, DayOfWeekModel, WeekNumberModelJ-P Nurmi2015-09-241-6/+0
| | | | | Change-Id: Ib80bfb5d95c8bee8bcf21e511a704d7da1e9cd83 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Rename libQtQuickControls to libQtQuickTemplatesJ-P Nurmi2015-09-167-7/+7
| | | | | Change-Id: I1e663bb7be2be8b3d4edf0c038862cc2150aec40 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Calendar: fix compilation with QT_NO_ACCESSIBILITYLiang Qi2015-09-151-1/+0
| | | | | | Change-Id: If840f4bf715b4290fb50388b94e33420505b1a9b Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add missing QLocale includeFrederik Gladhorn2015-09-093-0/+3
| | | | | Change-Id: I5b0f8f130202506f4b7be595043c4dfa77768495 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
* Calendar: merge C++ lib to the QML pluginJ-P Nurmi2015-09-0817-13/+2129
| | | | | Change-Id: I7eeb0335fd88002c85f93136fc71dfb394788421 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Optimize DayfOfWeekRow & WeekNumberColumnJ-P Nurmi2015-07-082-4/+2
| | | | | | | Apply the same improvements that were applied to CalendarView. Change-Id: I9c0302501f76c1ace091d6e347b7157be194b818 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Speedup CalendarViewJ-P Nurmi2015-07-081-5/+1
| | | | | | | | | | | | | | | | | | | | | - Use spacing inside the positioner instead of setting padding inside each and every cell. - Resize cells in C++ to avoid those crazy expensive width/height bindings (which lead to binding loops in certain circumstances). - Cache QDate::currentDate() for model.today - Remove the dynamic font size calculation. We can add that as an example in the docs. Before: RESULT : tst_CreationTime::testCalendar():"CalendarView": 12.5 msecs per iteration (total: 100, iterations: 8) After: RESULT : tst_CreationTime::testCalendar():"CalendarView": 6.5 msecs per iteration (total: 52, iterations: 8) Change-Id: Iba6c57cb543e1e90518d920f6b52bd981160e27c Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove non-color properties from ThemeJ-P Nurmi2015-07-063-5/+5
| | | | | | | | Better start with a minimal set. It will be also easier to transition from Theme to Palette if it gets done. Change-Id: Ic9951ac5b913f99a84e2b8efb9ae7f8d61177aee Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Control::spacingJ-P Nurmi2015-06-303-0/+4
| | | | | Change-Id: I67d81db16e95813b1ed9903017ce4d272093f7bb Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Calendar: "soft" content item referencesJ-P Nurmi2015-06-293-13/+6
| | | | | | | | Cleanup the hard-coded references to the built-in content item, to let applications replace the content item with a custom one. Change-Id: I08659170fd7c586517faa473c68fb6b3b2daa7f7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Kill CalendarDelegateJ-P Nurmi2015-06-234-65/+7
| | | | | | | | | | | | The default CalendarView delegate implementation will be included in the "Customizing CalendarView" docs. That should be enough to get started, so we avoid exposing such type and committing to its API for now. Hiding it from the API allows also a bit simpler implementation => getting rid of the wrapper item reduces the total amount of items in a CalendarView from 87 to 45. Change-Id: Idac693347df72377b3bb518fb1bab505d20d6f12 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Calendar: declare delegate component properties in C++J-P Nurmi2015-06-233-26/+32
| | | | | Change-Id: I1582e230c84ed6bdbd443b88f2b048c0f1122814 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: Customizing Qt Quick Controls 2J-P Nurmi2015-06-233-0/+6
| | | | | Change-Id: I6fa85e9fa9a2f7c98ec751786271a60c6c050db5 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Add plugins.qmltypesJ-P Nurmi2015-06-181-0/+147
| | | | | Change-Id: Ic8f29953a7198664ec4be051abc2fc42b92a4435 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Remove contentWidth/Height usage where applicableJ-P Nurmi2015-06-143-15/+12
| | | | | Change-Id: If8213f3416511c4881e5a7cd8904e4624ddd06bb Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Container: resize the content automaticallyJ-P Nurmi2015-06-093-15/+0
| | | | | Change-Id: If7964b64b6f78fc77e1095d69658e27bcb89a6f8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Use Control::availableWidth and availableHeightJ-P Nurmi2015-06-093-6/+6
| | | | | | | | | The same "w - lp - rp" and "h - tp - bp" patterns were repeated all over the codebase. This is why availableWidth and availableHeight were introduced. Change-Id: I8124e8668b553a409a25aa18d775f1bf0494398d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename qquickcalendar2 & qquickextras2 to be consistentJ-P Nurmi2015-04-231-1/+1
| | | | | Change-Id: I2abeb51c1c202a69626b6e4ae16c161b44a856f7 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Fix buid issue: qtquickcontrols-private => qtquickcontrols2-privateCaroline Chao2015-04-231-1/+1
| | | | | | | The module name has been change to qtquickcontrols2. Change-Id: I023fca6086251e151752ef6f18fe8bf6ffcaf1e1 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Remove "abstract" prefix from the C++ classesJ-P Nurmi2015-04-101-6/+6
| | | | | | | | | | The QML type registration is still using Abstract-prefix to avoid conflicts, until QTBUG-43581 & QTBUG-43582 have been resolved so that the public types can be used for accessing attached properties and enums. Change-Id: I469712461f706a83c226e4017282ca1d6914c670 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Rename Style to ThemeJ-P Nurmi2015-04-083-8/+8
| | | | | Change-Id: I0186cd36f0b42ca015b70a09af27f8a3517d4a60 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Implement Style as an attached propertyJ-P Nurmi2015-03-113-8/+8
| | | | | Change-Id: I006ee566647e31d1a14919d164d7dd68539aae10 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* import QtQuick 2.6J-P Nurmi2015-03-064-4/+4
| | | | | Change-Id: I2a8a1c6884e65383f0938763497a419d2f0fcbd6 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Update src/imports to use top/left/right/bottomPaddingJ-P Nurmi2015-03-033-20/+22
| | | | | Change-Id: I9c72db2d8f44429a7c87baaad663b88c7e1f1bb9 Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
* Import the Qt Quick Controls 2 prototypeJ-P Nurmi2015-02-057-0/+387
Change-Id: Ib8c0c4160958e5cfea29a6e9df1b3f1fb19715fc Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>