UI: Update Qt 5.12

This commit is contained in:
Nodir Temirkhodjaev 2018-04-24 16:19:51 +05:00
parent e7e576ad29
commit 0df24aa825
11 changed files with 36 additions and 36 deletions

View File

@ -42,9 +42,9 @@ import QtQuick.Templates 2.5 as T
T.Button {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6

View File

@ -42,11 +42,11 @@ import QtQuick.Controls.impl 2.5
T.CheckDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
Math.max(implicitContentHeight,
implicitIndicatorHeight) + topPadding + bottomPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 12
spacing: 12

View File

@ -42,11 +42,11 @@ import QtQuick.Templates 2.5 as T
T.ItemDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
Math.max(implicitContentHeight,
implicitIndicatorHeight) + topPadding + bottomPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 12
spacing: 8

View File

@ -42,11 +42,11 @@ import QtQuick.Controls.impl 2.5
T.MenuBarItem {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
Math.max(implicitContentHeight,
implicitIndicatorHeight) + topPadding + bottomPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
spacing: 6
padding: 6

View File

@ -42,11 +42,11 @@ import QtQuick.Templates 2.5 as T
T.MenuItem {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
Math.max(implicitContentHeight,
implicitIndicatorHeight) + topPadding + bottomPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 6
spacing: 6

View File

@ -42,11 +42,11 @@ import QtQuick.Templates 2.5 as T
T.RadioDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
Math.max(implicitContentHeight,
implicitIndicatorHeight) + topPadding + bottomPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 12
spacing: 12

View File

@ -42,9 +42,9 @@ import QtQuick.Templates 2.5 as T
T.RoundButton {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6

View File

@ -42,11 +42,11 @@ import QtQuick.Templates 2.5 as T
T.SwipeDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
Math.max(implicitContentHeight,
implicitIndicatorHeight) + topPadding + bottomPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 12
spacing: 12

View File

@ -42,11 +42,11 @@ import QtQuick.Controls.impl 2.5
T.SwitchDelegate {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
Math.max(implicitContentHeight,
implicitIndicatorHeight) + topPadding + bottomPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding,
implicitIndicatorHeight + topPadding + bottomPadding)
padding: 12
spacing: 12

View File

@ -42,9 +42,9 @@ import QtQuick.Templates 2.5 as T
T.TabButton {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6

View File

@ -42,9 +42,9 @@ import QtQuick.Templates 2.5 as T
T.ToolButton {
id: control
implicitWidth: Math.max(implicitBackgroundWidth,
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight,
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
implicitContentHeight + topPadding + bottomPadding)
padding: 6