| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Change-Id: I0a5afbf82df8d70f63cae57358cc2d2148d52825
Task-number: QTBUG-45148
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I7c8321089d9187aeb0093d0c0361950385b92cba
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
QStandardPaths::PicturesLocation is a specialized kind of file URL on iOS;
if this folder is set, then when the dialog is opened, it will be the new
dialog helper which uses the native picture gallery picker interface.
This will always work, so we do not need to check whether the path exists.
The application developer needs to have a way to get that platform-specific
(and odd-looking) URL by name, so the FileDialog.shortcuts property is now
public API: a map from programmatic names (similar to those in QStandardPaths)
to URLs. But DefaultFileDialog.qml should not display the names from this map,
because they are not translated to the user's language. So __shortcuts
is added as a private property providing a map from programmatic name to
an object containing the translated name and the URL.
This makes possible setting
FileDialog { folder: shortcuts.pictures }
which will open the special image gallery browser on iOS; and several
other paths from QStandardPaths can be set in the same way.
[ChangeLog][QtQuick.Dialogs] added FileDialog.shortcuts to enable setting
the starting folder to a standard system path. Setting folder to
shortcuts.pictures will result in a special image gallery dialog on iOS.
Change-Id: I14f04712eb4f44ff422ac91a8720b9e3ff8fb920
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I36ee43ff94e72ca22af597cea11c13bdae683678
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removes the duplicated style settings functionality in Extras and
simplifies the installed styles directory structure.
- Extras' Base style is now part of Controls' Base style, eliminating
the need for a separate QtQuick.Extras.Styles import. The cost of
doing this should be negligible: a few QML files and two images.
If we didn't merge Extras' Baste style into Controls', we'd need
extras-specific code in qquickcontrolssettings, as the default style
search path is:
qml/QtQuick/Controls/Styles/
Whereas the Extras Base style would be in:
qml/QtQuick/Extras/Styles/
The Extras Base style can't go into Controls' Base style directory,
either, because otherwise we'd have two qmldir files there.
The Flat style doesn't have this problem because it is all contained
in one plugin and gets installed into its own Flat/ folder.
- Documentation now lists the Extras controls as \since QtQuick.Extras
1.4.
- Adds the customcontrolsstyle auto test to ensure that custom styling
is tested.
Change-Id: I19ca7a8b7e1c1daa85b272f4ccf9a2f05c76e0d9
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I97620d07b12c5b1203c99da0fdd4937d50bbdecc
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
* Do not define Components as properties (not supported)
* Define the binding on columnWidth as a Binding object so
it can be ignored by the designer and we have a static default.
Change-Id: I97620d07b12c5b1203c90da0fdd4937d50bbde1c
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
| |
* Giving every file a default size
Change-Id: Ied25b5a4c142be98fdbea27c268782b2d337bb4a
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ia95c64b333416568fe6a88607d802fe7239dba35
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Iebc592d37b8c720bdced5946e1c1a56322a06411
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The TreeView, as currently implemented, extends the
TableView by adding support for hierarchical models. In
the broad sense, it remains a list view with columns,
like TableView.
The main architecture is based on TreeModelAdaptor, that
wraps the hierarchical model. It keeps track of which
items are expanded or collapsed, and also relays model
changes to the view. (TreeModelAdaptor is a private type
and should be considered as an implementation detail.)
The TreeView only supports QAbstractItemModels for the
time being, and, just like TableView, relies on roles to
pass the data to the view. This also means that model
columns are not supported.
Selection is supported by ItemSelectionModel which exposes
part of the API of QItemSelectionModel. For this, support
has been added for QModelIndex and related classes. This
requires importing QtQml.Models 2.2 should an actual usage
of the TreeView use selection.
In the same way, TreeViewStyle currently extends TableViewStyle
with the relevant features, like branch indicator.
[ChangeLog][QtQuick.Controls] Introducing TreeView
With-Help-From: Caroline Chao <caroline.chao@theqtcompany.com>
Change-Id: Id3dba240a732744571e4a646b7b98678ab522da6
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I59c5c97c564f707da4ce617e25e13ff8124f7d4b
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I41096c464db4e1513db1d4ffe7311be3c902d973
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
|
|
|
|
|
|
| |
Change-Id: I2c181d880e88c16a169c87b9260423db093d9ce8
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
| |
A simple sortable and searchable table view example that
also fits a mobile screen. The old "example" is demoted
as a manual test app.
Task-number: QTBUG-41253
Change-Id: I746c8e5871c35a184748abbb4427ca3d160ffc8e
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
This example served no purpose. A similar snippet can
be found in SplitView docs, in the detailed description.
Change-Id: Ic53e5bbe8c0c46c7cf9a0002f12ad6c229028388
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A much simpler, scalable and mobile friendly UI.
Some of the more complex controls, such as TextArea and TableView,
are intentionally left out. They are scrollable on their own, so
they wouldn't play nice inside scrollable pages. Furthermore, adding
them as standlone pages would increase the amount of tabs too much.
Those controls are demonstrated in the Text Editor and Table View
examples, respectively.
Task-number: QTBUG-41307
Change-Id: Ib3efb346e621e388087f3f14c73b3b54279db280
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make tab and button labels shorter so that they fit even on very-small-
screen devices (like iOS).
Make the content of some tabs scrollable.
Background color of the Font tab matches the others.
Use RowLayout to make baseline alignment of checkboxes and associated
text fields possible.
Use ColumnLayout because it works better inside a ScrollView.
Use Label instead of Text so that the renderType is consistent.
Change-Id: Ie2d07153532f35d108a0b6ad0bb4f10326f79d24
Task-number: QTBUG-41999
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
|
|
|
|
|
|
|
| |
A custom dialog might have a use for these.
Change-Id: Ibef05dd63d65476e1225477d2e7ed9d24fbba9ed
Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
All dialogs populate the label showing how they were accepted or
rejected.
Change-Id: I0bad4af0864bdf24e56c18aeecd8ca8f6536b6b0
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
| |
On Android, it should prefer to close the dialog rather than get stuck
or exit the application. (It was already possible to close the dialog
by tapping outside, though.) The back button can also be used on
other platforms which have them (e.g. multimedia keyboards on desktop).
Change-Id: I19d2ad62ff370fa467d80d51d73cb95fd5830bed
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I314be395ba82b89f89d6b84702e17f3adcabf1b1
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I82be07e215b1784039b1b3a2c5398d4fc0f19b84
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Ib637f850ed2002de10d7cb18e242f0b44482247c
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
This is material for a manual _desktop_ test application.
Change-Id: I9fe10ca05184410b53331bdd7b3157daaceb7640
Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Remove the non-functional submenu items that belong to a manual
test application. The edit/context menu presents submenu items
well enough. Furthermore, reduce the amount of cruft in main.qml
by declaring the non-shared about action inline as a menu item
instead.
Change-Id: I1060a3ed63aa1a388e220fedddda4b7d5b412ba7
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Based on the "Styles" tab of the Gallery. The motivation for this
change is to cleanup the Gallery example so that it eventually runs
nicely on various desktop and mobile platforms without major
modifications.
Task-number: QTBUG-41307
Change-Id: Iffcd3557bf7c77f5a10bda8bfda5ddb636dd5ac1
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
|
|
|
|
|
|
|
|
| |
The content is identical to the Basic Layouts example.
Task-number: QTBUG-41307
Change-Id: I781d741ccfb9cc1443eae7410990d968ff6a209d
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Delegates tab in the example shows how to use custom types as
TableView header, row, and item. The UI has a checkbox to toggle
a sort indicator for the header - this change implements the
indicator for the custom header delegate, and adjusts the header
text accordingly.
Task-number: QTBUG-41396
Change-Id: Iab917b87b9b91c3dcc468f87aa14ec9293afd5f6
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
|
|
|
|
|
|
|
| |
It's not a good example to rely on instances "somewhere in the outer
context" => move things where they are used so they can be referenced
via IDs that are in the scope.
Change-Id: I352dca270de92590b5d620e529e84b9d18105082
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
|
|
|
|
|
|
|
|
|
| |
ApplicationWindow sets the background color as appropriate => no need
to use SystemPalette there. The child window was unnecessarily creating
an extra Rectangle just for the background color => use Window::color.
Change-Id: Id109c9e5f4d633baf1133afd3a1e9af277310e98
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
|
|
|
|
|
|
|
|
|
| |
Since all input fields have a menu assigned to it by
default (which in most cases never will be shown), it should
be an optimization to await creating it until needed.
Change-Id: I5777bbdae42103981e9b2f5ddfdfd763acea07ae
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
|
|
|
| |
Change-Id: I5caf76c8fb225760bc742b20e699c2cc40403e3c
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|
|
|
|
|
|
|
| |
There is no such reference AFAICT. Use SystemPalette instead.
Task-number: QTBUG-41390
Change-Id: I09becb9a39e20137a5092942c4d9cb09ef133abb
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The sidebar takes up too much space on some devices, so now it is
possible for the application author to hide it by default. The user
can also toggle it with a button similar to that used for the
Qt Creator sidebar, and this state is stored as a setting; however
if the application sets sidebarVisible: false, that overrides the setting.
[ChangeLog][QtQuick.Dialogs] FileDialog: added sidebarVisible property
and button
Task-number: QTBUG-39231
Change-Id: Ie8b379da02f4b12764732b2c01b79039722778ab
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|\
| |
| |
| | |
Change-Id: I4aa5c960a03616d95f9e1d10b4c8ba222997a24d
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The default property "contentItem" is normally the parent of the
added content, but you can set the content directly into the property
to avoid having any buttons or margins.
Task-number: QTBUG-38056
Change-Id: Ie0e96969b3e35f079b29a9f3f57eaaf16236d4c1
Reviewed-by: Liang Qi <liang.qi@digia.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Renamed LICENSE.LGPL to LICENSE.LGPLv21
- Added LICENSE.LGPLv3 & LICENSE.GPLv2
- Removed LICENSE.GPL
Change-Id: I470909ba0980db33ab551790d619c59a35978590
Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
setDefaultFormat() is being moved form QQuickWindow to QSurfaceFormat.
Change-Id: Id76c2c332c837e2e988a2e8f4da2975065938e32
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
|
|\ \
| |/
| |
| | |
Change-Id: Iac8c62211c34b36394812d9afedd362a62ba6cef
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The example was using a Row type to present the visual items, which is
changed to Flow type now, so that the items are rearranged based on the
orientation change on a Mobile device.
Task-number: QTBUG-37203
Change-Id: I990f77a87c409b623a7fe4495d74206a1ca2e1c7
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
|
|\ \
| |/
| |
| | |
Change-Id: Icc15fe685e94dd043979b6b9c6a624f18f2d1e4c
|
| |
| |
| |
| |
| |
| | |
Change-Id: I030012f48668db4f01737ef92fdb7e6e0426e025
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Liang Qi <liang.qi@digia.com>
|
| |
| |
| |
| |
| |
| | |
Task-number: QTBUG-39473
Change-Id: Ibfb1c040efd9744ba6c8bc56affcdf90a807b046
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|
|\ \
| |/
| |
| |
| |
| |
| | |
Conflicts:
src/controls/Styles/Base/MenuStyle.qml
Change-Id: I95c8b4f348260b958f158ae28c0984d54af973a8
|
| |
| |
| |
| |
| |
| |
| | |
Also fixed a qWarning and updated example import statement.
Change-Id: I873b52e297bbefe66c6c131573804eee98c40a2f
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
Conflicts:
.qmake.conf
src/controls/Styles/Desktop/SpinBoxStyle.qml
Change-Id: Ia501c1388a2af9f273ec2742abbfc766717ad9e6
|
| |
| |
| |
| |
| | |
Change-Id: I9e84ce56e853a18205aa180cef1ee8ff4f2f678c
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
|
| |
| |
| |
| |
| | |
Change-Id: Ifacceae8690d2ab4dfaed0d5439b9e29804c1943
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Changes.txt says that with Qt 5.2.0 dependency for
Widgets have been removed for touch based platforms.
But QNX is also a touch based platform and its missing.
Change-Id: I140842d4501422537175ac5acb07beebe994f0eb
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
|