aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/nested-groups
Commit message (Collapse)AuthorAgeFilesLines
* Remove the base module import from most test data projectsJoerg Bornemann2018-06-222-4/+0
| | | | | | | | Keep the base import in blackbox/testdata/deprecated-property to ensure we don't accidentally break it. Change-Id: I790da21a7490ec9c1b0335f45e8707e7e04daa7c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Make a Group's prefix default to the one of the parent groupChristian Kandeler2017-08-149-0/+2
| | | | | | | | | | This should be the most sensible default. [ChangeLog] Groups without a prefix now inherit the one of the parent group. Change-Id: Ieee94d1a0f5cb073def8db9feff8c1ca5ea1eacf Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Set product scope in nested groups from modulesChristian Kandeler2016-11-231-0/+1
| | | | | | | This was forgotten when we introduced nested groups. Change-Id: I824cba8c7958902268f188b5a3009d7e252fc39a Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Let nested groups inherit the parent group's file tagsChristian Kandeler2016-11-102-0/+36
| | | | | | | Tags should behave the same as module properties in that respect. Change-Id: I5cbfde9c2cf90eef93feef0a8ffd894309341577 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Update license headersIikka Eklund2016-08-296-0/+168
| | | | | | | | | | Patch-set 2 includes *.cpp *.c Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ie6e493097af6f7dd6a8adff170eb856f496e689e Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Update license headersIikka Eklund2016-08-294-0/+112
| | | | | | | | | | Patch-set 1 includes *.h Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ib6cf3ac47dfba6dff262fded44bc952aef3bda8b Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Fix nestedGroups() autotest on macOSChristian Kandeler2016-07-281-0/+1
| | | | | Change-Id: I44b065191560350a7048d7a52d9fd72d649fe829 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Allow nested group itemsChristian Kandeler2016-07-2812-0/+91
This serves two use cases. Use case 1: Groups with overlapping conditions can be structured more naturally, possibly getting rid of redundant property assignments. Consider this: Group { condition: qbs.targetOS.contains("unix") cpp.dynamicLibraries: ["pthread"] files: ["unix_all.cpp"] } Group { condition: qbs.targetOS.contains("linux") cpp.dynamicLibraries: ["pthread", "dl"] files: ["linux.cpp"] } Group { condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("linux") cpp.dynamicLibraries: ["pthread"] files: ["unix_nonlinux.cpp"] } Whereas now we can write: Group { condition: qbs.targetOS.contains("unix") cpp.dynamicLibraries: ["pthread"] files: ["unix_all.cpp"] Group { condition: qbs.targetOS.contains("linux") cpp.dynamicLibraries: outer.concat(["dl"]) files: ["linux.cpp"] } Group { condition: !qbs.targetOS.contains("linux") files: ["unix_nonlinux.cpp"] } } Use case 2: Putting source files into a dedicated project file which can be instantiated from different products (similar to pri files in qmake) becomes much more useful when these files can actually contain more than one group. In this context, the top-level Group item will often act purely as a structural element, satisfying the QML syntax' requirement of a single root item. [ChangeLog] Made the Group item nestable. Change-Id: Ie1d7bed7bca33f6f023b625e8726d2e8db08e45d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Jake Petroules <jake.petroules@qt.io>