summaryrefslogtreecommitdiff
path: root/src/controls/Styles/Desktop/TableViewStyle.qml
Commit message (Collapse)AuthorAgeFilesLines
* Unify license header usageAntti Kokko2016-02-041-12/+15
| | | | | | | Update old header.LGPL3 to header.LGPL Change-Id: I3c851bc24da89f6300b94199387d1adf16ca4f48 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Tree- & TableView: Fix non-left aligned text marginsGabriel de Dietrich2015-08-071-1/+4
| | | | | | | | | | | This happens for both the item and header delegates. Previously, we were only taking left alignment into account. This resulted in poorly aligned item delegates with relation to the column header. Change-Id: I879d05cfb53641f02d5133a59fbe5a377b813f39 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Desktop/TreeViewStyle: Fix first column marginGabriel de Dietrich2015-07-231-1/+1
| | | | | | | | | | The margin was different depending on the item's depth resulting in an extra indentation for those items of depth zero. We fix this, and also set the proper inden- tation from the style. Change-Id: I8c9babd4b7c8b413f5c46cb756682eae4bf86892 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Introducing TreeViewGabriel de Dietrich2015-02-131-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Controls: update license headersJ-P Nurmi2015-02-111-28/+25
| | | | | | | Change-Id: I77e7a218a958d76ac7ef7780f4be52a81f76fa6b Reviewed-by: Caroline Chao <caroline.chao@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>
* TableViewStyle: Fix and document styleData.hasActiveFocus propertyGabriel de Dietrich2014-10-221-2/+2
| | | | | | | | | The property has been present since 5.1 for rowDelegate and missing for itemDelegate. Also, the property was incorrectly bound to the table having active focus instead of the row. Change-Id: I43a93975dffd849b37cfee6363343f8aef57d11b Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Singleton SystemPaletteJ-P Nurmi2014-06-231-1/+1
| | | | | | | | | | Each SystemPalette instance installs an event filter on the application object. Avoid this by sharing a single SystemPalette instance. Change-Id: Ica9f8979b33e511c1238add3d689f380d0daa93c Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Kill unnecessary SystemPalette instancesJ-P Nurmi2014-06-201-4/+0
| | | | | | | | | | | | Each SystemPalette instance installs an event filter on the application object, so we should try to avoid these as much as possible. Style already creates an instance that switches between Active and Disabled states based on control's enabled state and is suitable for most use cases. Change-Id: Icdbc793f639a3217ece6b2ded281e2a8beacb742 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* TableView: Allow resizing and scrolling single-column tablesGabriel de Dietrich2014-06-061-3/+3
| | | | | | | | Also makes sure the resize handle is visible in desktop style. Task-number: QTBUG-39393 Change-Id: I44410c65e76b0a3221ea5fce713c1f1b69079947 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Bump QtQuick.Controls import version to 1.2J-P Nurmi2014-04-071-1/+1
| | | | | Change-Id: Idc0b93cbfc2fe23e8be3bcaece672d06555a81f6 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Import QtQuick 2.2J-P Nurmi2014-04-071-1/+1
| | | | | Change-Id: Ifc9719ec6fbbd80b866c01eebc471d0ed121bd16 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Support text alignment for TableViewHeaderv5.3.0-alpha1Jens Bache-Wiig2014-02-251-1/+1
| | | | | | | | | task-number: QTBUG-33072 [ChangeLog][QtQuickControls][TableView] TableView headers now respect TableViewColumn::textAlignment Change-Id: I482e74e10b8879b367bce8165fa9310b28a06ad2 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Optimize TableView by using ImageProviderJens Bache-Wiig2013-11-071-11/+8
| | | | | | | | | This optimizes tableview as we were not able to utilize the image atlas efficiently without it. Change-Id: I3cce48b7557d843fb057cc1597dc4363c35bdef8 Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
* Added 9-patch functionality to StyleItemGunnar Sletta2013-10-221-0/+4
| | | | | | Change-Id: I5224c2e11ebdcdcb658a7bcecd5c16ca9e4d878d Reviewed-by: Caroline Chao <caroline.chao@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Minor cleanup for TableViewStyleJens Bache-Wiig2013-10-141-7/+1
| | | | | | | No need to create two text items here Change-Id: I4b32932bcee269c77f665172476ae17045773e81 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
* Update imports to 1.1 and remove version from qmlmodule definitionJens Bache-Wiig2013-09-101-1/+1
| | | | | Change-Id: Icb4c6d78225c072da787e4646a55d8cf71a5db7a Reviewed-by: Caroline Chao <caroline.chao@digia.com>
* Move Styles and Private under controlsCaroline Chao2013-08-161-0/+120
Register the C++ private API from the controls plugin. The private plugin is not needed anymore. The Controls "submodules" Styles and Private are moved to the controls subfolder in the sources tree. Change-Id: I98358227c945b6cd1a8dbff9d07e6cad4f044277 Reviewed-by: J-P Nurmi <jpnurmi@digia.com>