- 04 Nov, 2014 - 1 commit
-
-
Marco Martin authored
The qstyle can set as preferred size for itemview items a different size than the text height depending from the result of sizeFromContents( CT_ItemViewItem, .. Examples of styles that do this, are Oxygen and Breeze, in order to have a bit more spacing. This makes the combobox render incorrectly. This patch makes use of the size hint of the qstyle instead of the text height. Since the height can be more than the font height, the text (and optional icon) are now drawn vertically centered in the delegate. Change-Id: I898d85c994d5760979750c2f3a5dafd83f1e3cbd Reviewed-by:
J-P Nurmi <jpnurmi@theqtcompany.com>
-
- 25 Aug, 2014 - 1 commit
-
-
Antti Kokko authored
- 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>
-
- 12 Aug, 2014 - 1 commit
-
-
Simon Hausmann authored
Change-Id: I85620159f29ccc3eb375d845da7e4bef996c8ff7 Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- 09 Aug, 2014 - 1 commit
-
-
Simon Hausmann authored
This allows scene graph backends to customize the rendering itself Change-Id: Ib5f7ccca09aeba14a6da00e38f18da370648da4f Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- 12 May, 2014 - 1 commit
-
-
Berthold Krevert authored
Some styles (QFusionStyle, QGtkStyle) don't draw a focus rectangle if QStyle::State_KeyboardFocusChange is not set. This patch is based on change,84388 in QtDeclarative. Change-Id: Ic0c0bdd68689055cff12d601e64b77b53e7980dd Reviewed-by:
Liang Qi <liang.qi@digia.com> Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 09 Apr, 2014 - 1 commit
-
-
David Edmundson authored
When a style calculates the sizeFromContents on a pushbutton it needs to be informed about the size of the icon on the button. In oxygen icons with buttons are slightly larger than buttons without. Change-Id: I2f2d5f08747ad5e6ac0dfb50531c3e7627e9b35f Reviewed-by:
Sebastian Kügler <sebas@kde.org> Reviewed-by:
Marco Martin <mart@kde.org> Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 02 Apr, 2014 - 1 commit
-
-
David Edmundson authored
Change-Id: Ic1fff15231907039d0130cd76e4c65e1a48f5457 Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 31 Mar, 2014 - 1 commit
-
-
Laszlo Agocs authored
The recent removal of QSGPlainTexture::setHasMipMaps() made the texture material enable mipmapping on the texture by default. Previously this was not the case, the material did not enable mipmapping on the texture regardless of the value of mipmapFiltering. The default value (Nearest) now properly enables mipmapping but this is not ideal for the style item. Therefore we disable mipmapping explicitly. Task-number: QTBUG-37690 Change-Id: I15607fd0c3a06f0cefc416b74f6cee25ef7966bd Reviewed-by:
Gunnar Sletta <gunnar.sletta@jollamobile.com>
-
- 20 Mar, 2014 - 1 commit
-
-
Gabriel de Dietrich authored
This queries the platform theme for each type, and sets the right palette. This should allow us to remove some workarounds we might have for those cases in desktop style. Change-Id: Ia5f650b46de5418586bc946d63fd394875e90184 Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 05 Mar, 2014 - 1 commit
-
-
Gabriel de Dietrich authored
This amends e88bdffe API-wise. Change-Id: I9243aa05c3c4803e1c3ee08a761e782ee8e0841a Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 03 Mar, 2014 - 1 commit
-
-
Jens Bache-Wiig authored
This is a regression caused by removing the fillrect for SpinBoxStyle itself. Change-Id: Ibab509634a12aec591d2d031a0e735d602b388c6 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 25 Feb, 2014 - 1 commit
-
-
Jens Bache-Wiig authored
task-number: QTBUG-33072 [ChangeLog][QtQuickControls][TableView] TableView headers now respect TableViewColumn::textAlignment Change-Id: I482e74e10b8879b367bce8165fa9310b28a06ad2 Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 14 Feb, 2014 - 1 commit
-
-
Gabriel de Dietrich authored
MenuStyle We expose the frame and item properties together with some convenience properties (basically color related). The menu item data is exposed via a styleData object, similarly to what's done in TabViewStyle. In addition, we introduce MenuStyle.menuItem which brings some convenience when it comes to overriding subcontrols of the menu item. MenuBarStyle We expose background and menuBarItem. The menubar item's properties are accessible through the styleData property in scope. Style cascading Additionally, MenuBarStyle has a menuStyle property that will apply to all its menus and their submenus. Similarly, assigning a style to a Menu object, will apply it to its submenus. It's still possible to override the parent menu's style by declaring its own. [ChangeLog][QtQuickControls][Styles]Menu and MenuBar are now styleable Change-Id: Ib724b7a6426bdfce5da314620d51dfaa76f76500 Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 22 Jan, 2014 - 1 commit
-
-
Jens Bache-Wiig authored
This patch ensures that we take the minimum width of the SpinBox into account when getting the size from the style item. The patch still relies on the height of the TextField since we want to ensure that they keep similar height and the existing spinbox code behaves somewhat erratic. Task-number: QTBUG-36283 Change-Id: I50d14e5afb2576548c381e7f70063dfcb727e7d6 [ChangeLog][QtQuickControls]Fixed implicit width for SpinBox Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 21 Jan, 2014 - 1 commit
-
-
Jan Arve Saether authored
Change-Id: I24f1ecc3df05b2730a43c52727026aa98bf82acd Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 13 Dec, 2013 - 1 commit
-
-
Martin Gräßlin authored
For some controls an explicit QStyleOptionFrame is created. By setting the styleObject the QStyle can recognize that it's a QQuickItem and adjust the rendering. This is for example needed in the oxygen style to get the frame around a menu. Change-Id: I52d2a8b259477b2ff668827334d5073c6934f23c Reviewed-by:
Martin Klapetek <mklapetek@kde.org> Reviewed-by:
David Edmundson <davidedmundson@kde.org> Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 04 Dec, 2013 - 1 commit
-
-
David Edmundson authored
This is useful for oxygen to return the correct size Change-Id: I0476f89f68eabf4c1a8611623095213c8f70cef2 Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 03 Dec, 2013 - 1 commit
-
-
J-P Nurmi authored
QStyleAnimation automatically stopped for hidden QWidgets, but didn't know anything about QQuickItems and kept animating regardless of their visibility. QStyleAnimation was changed so that it will keep animating only as long as the animation target accepts animation updates. This change ensures that the style animation updates are accepted only when the control is visible. Note: In order to restart such style animations, QQuickStyleItem needs to be manually updated when it becomes visible. Task-number: QTBUG-35319 Change-Id: Ia053912883b9babb184a5467adfc90dd619b3dc5 Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com> Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 20 Nov, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
We need to scale the texture size since it has twice the pixel count on retina macs. Task-number: QTBUG-34922 Change-Id: I38ff316016ccb1e609037598f7107d62b3ba4295 Reviewed-by:
Gunnar Sletta <gunnar.sletta@digia.com>
-
- 07 Nov, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
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>
-
- 22 Oct, 2013 - 1 commit
-
-
Gunnar Sletta authored
Change-Id: I5224c2e11ebdcdcb658a7bcecd5c16ca9e4d878d Reviewed-by:
Caroline Chao <caroline.chao@digia.com> Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 27 Sep, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
This will add a menu property to ToolButton which it should have anyway and allows it to be styled as a normal button. Change-Id: Ie298752ad2e7e237f103479e6c97fb76ae381354 Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 25 Sep, 2013 - 1 commit
-
-
J-P Nurmi authored
Change-Id: I4bcbf80f382ad8e972c302a6144c5b42a28f936d Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 20 Sep, 2013 - 1 commit
-
-
Jan Arve Saether authored
Change-Id: I126fd3d9b399fa3a7c62685060fd49b1cea4df62 Reviewed-by:
Jan Arve Sæther <jan-arve.saether@digia.com>
-
- 19 Sep, 2013 - 1 commit
-
-
Gabriel de Dietrich authored
We factor out part the menu item container logic from Menu into ColumnMenuContent, which takes care of scrolling and mouse hovering, and selection. This makes possible to extend the menu items layout. The pop-over and pull-down look is specified by the menu style component by overriding the ScrollView style. The popup's maximum height is also specified by the menu style. The gallery example can finally use a font families combo box. Task-number: QTBUG-31568 Change-Id: I34a7278f476471c0eb51ef51dde3dd83e13002fe Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 09 Sep, 2013 - 1 commit
-
-
Gunnar Sletta authored
Change-Id: I182329a15ac2d7ca5c50e7a943cf4c171cf2562b Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 26 Aug, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
Not needed by controls right now but I would like to see if we can create an editable combo box for creator as a temporary solution. Change-Id: If818e9d51e074d7631708bf8fba8162ae0276713 Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 16 Aug, 2013 - 1 commit
-
-
Caroline Chao authored
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>
-
- 14 Aug, 2013 - 1 commit
-
-
Gunnar Sletta authored
Change-Id: I039730c4146c599e61cb726517271b59e9ed3622 Reviewed-by:
J-P Nurmi <jpnurmi@digia.com>
-
- 13 Aug, 2013 - 1 commit
-
-
Richard Moe Gustavsen authored
Change-Id: I462bab74999c6a36b638eb3940d25c45d9620d73 Reviewed-by:
Jens Bache-Wiig <jens.bache-wiig@digia.com>
-
- 05 Aug, 2013 - 1 commit
-
-
J-P Nurmi authored
Change-Id: I5c23c555336e71ffc8267263c3d2171fa35c4efb Reviewed-by:
Caroline Chao <caroline.chao@digia.com>
-
- 12 Jul, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
We were drawing an ugly double gray line and had uneven spacing between tool buttons and margins. Change-Id: Ifd2a30cb2ae8f3fb31b5df8410e17cfbd1175978 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 18 Jun, 2013 - 1 commit
-
-
J-P Nurmi authored
Task-number: QTBUG-31537 Change-Id: I670730934a48655f65df4f2be44e6ce8fa6bbdf7 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 31 May, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
Using the implicitHeight of an item makes ToolBar and StatusBar a lot more useable with layouts. In addition we enable the padding property from the style, allowing its content to be positioned in a more convenient way. This is similar to how we already do it for GroupBox. Change-Id: Ia2aa1bcb9ae109718fd752401400222adec242ac Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 30 May, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
The styleHints are not really flexible enough as a stringlist as we want to be able to pass actual properties. Since we already have a properties member of the style we should move all of our internal properties to that. Change-Id: Id7a66ade243461f54c41b9ec89144668aaf19483 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 27 May, 2013 - 4 commits
-
-
Jens Bache-Wiig authored
We need to update the active palette text color every time the state changes. Change-Id: I7861eb4be76ccaeb58e9ff9aea58fa54d4f8d4c9 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
Jens Bache-Wiig authored
Made the SpinBox and TextField 22 px on mac. Fixed internal offset. Change-Id: I36964048415dfedb3db0fac65fb8c1b710ea226f Reviewed-by:
Richard Moe Gustavsen <richard.gustavsen@digia.com> Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
Jens Bache-Wiig authored
In particular QGtkStyle depends on having the selected tab rect in the style option. Otherwise it cannot draw the tab frame correctly as we pass this information on to gtk. In addition we were not correctly setting the tab position on the frame. Change-Id: I9aa17d6b33f6b283122014994dc92a6afb913f30 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
Jens Bache-Wiig authored
These were both too small on most platforms. Since we have rather broken logic in widgets for this, I will simply assume they share the same height. Change-Id: I98da5a925087fec300de3c1c91b58110103e1a38 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-
- 24 May, 2013 - 1 commit
-
-
Jens Bache-Wiig authored
Only mac style actually indicated focus as we depend on a focus rect around the text label for other styles. Bonus fix: When setting the width of the check box we would still use the implicit width in the style which meant that items would overlap incorrectly Change-Id: Ibb4dc92633fbc5fb200a35d1c0b04a297c7f8f42 Reviewed-by:
Gabriel de Dietrich <gabriel.dedietrich@digia.com>
-