Commit Graph

9 Commits

Author SHA1 Message Date
J-P Nurmi 7d0ab32ffb Fix QQuickDayOfWeekModel::setLocale()
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>
2015-09-24 15:28:18 +00:00
Mitch Curtis 0797e0cb20 Merge Qt Quick Extras into Qt Quick Controls
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>
2015-09-18 14:14:07 +00:00
Liang Qi bc8149b076 test: add activeFocusOnTab into auto test
Change-Id: Idf65a4859d012e290b5614ef84063de9540d29b9
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
2015-09-18 10:25:07 +00:00
Liang Qi 9ecf1fd950 Controls: move Accessible from QML to C++
Controls 2.0 could be built with QT_NO_ACCESSIBILITY defined.

Added a few helper functions for accessible in QQuickControl.

Don't set text as Accessible.name for TextArea and TextField.

Change-Id: I40383bbcec2f8c742f709bdec0209623f80da449
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
2015-09-14 18:51:51 +00:00
Mitch Curtis 70e761fce2 Add ApplicationWindow auto tests.
These were copied from Qt Quick Controls.

There are some issues with regards to QQuickThemeData, so some are
commented out for now (see tests for details).

I also added a test for QTBUG-47318.

Change-Id: Iaee0f4531b8d7bc9b4984146aaf00b76afa77793
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
2015-07-21 09:35:20 +00:00
J-P Nurmi be1f632742 Add tst_snippets
This is going to include all snippets used in the documentation,
which will be then automatically tested for vality, and at the
same time the respective screenshots are automatically generated.

Notice that copying the screenshots over to src/doc/images is still
a manual step. This is fully intentional because the screenshot
results may vary quite a bit across different platforms due to
different fonts and so on. FWIW, my personal favorite for generating
the screenshots is OS X.

Change-Id: I72b299f15b498abc1afd0a686c56d43159bee775
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
2015-06-27 08:41:16 +00:00
J-P Nurmi f5b24fd48d Auto test anchors & attached objects
Rename the former tst_declarative to tst_sanity and
extend it with tests to prevent:
a) use of anchors, and
b) multiple attached object instances of the same type.

Anchors are not allowed for two reasons:
- performance (QQuickAnchors is a QObject), and
- to let users relayout delegates (x/y/width/height bindings
  can be overridden, anchors not so easily)

Multiple attached object instances (eg. Theme) can easily happen by
accident. "Theme.fooColor" can be used in the control root, but in all
delegate items, "control.Theme.fooColor" must be used instead.

Change-Id: I4045d5bd717fa21db79d1c3bd618fc450e292fa4
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
2015-06-14 16:10:05 +00:00
J-P Nurmi ede8e3dcff Auto test 100% declarative QML layer
Not allowed:
- .js files
- signal handlers
- function declarations

Change-Id: I31247f154b96718ca95835120c9e7326e3c97968
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
2015-06-11 16:08:32 +00:00
J-P Nurmi 8b2a1ec431 Import the Qt Quick Controls 2 prototype
Change-Id: Ib8c0c4160958e5cfea29a6e9df1b3f1fb19715fc
Reviewed-by: Jari-Pekka Nurmi <jpnurmi@theqtcompany.com>
2015-02-05 14:50:29 +02:00