From 5813191191c37d98ea2719b524e8efe918653637 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Thu, 21 May 2020 20:00:36 +0800 Subject: [PATCH] Minor tweaks Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- examples/QQPlayer-demo/resources/qml/CloseButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/MainMenuButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/MaximizeButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/MinimizeButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/NextButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/OpenFileButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/PlayButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/PreviousButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/StopButton.qml | 4 ++-- examples/QQPlayer-demo/resources/qml/VolumeButton.qml | 4 ++-- resources/qml/CloseButton.qml | 4 ++-- resources/qml/MaximizeButton.qml | 4 ++-- resources/qml/MinimizeButton.qml | 4 ++-- 13 files changed, 26 insertions(+), 26 deletions(-) diff --git a/examples/QQPlayer-demo/resources/qml/CloseButton.qml b/examples/QQPlayer-demo/resources/qml/CloseButton.qml index ef308c8..65ebc04 100644 --- a/examples/QQPlayer-demo/resources/qml/CloseButton.qml +++ b/examples/QQPlayer-demo/resources/qml/CloseButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 45 - height: 30 + implicitWidth: 45 + implicitHeight: 30 ToolTip.visible: hovered && !down ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval diff --git a/examples/QQPlayer-demo/resources/qml/MainMenuButton.qml b/examples/QQPlayer-demo/resources/qml/MainMenuButton.qml index 54ead56..a76358e 100644 --- a/examples/QQPlayer-demo/resources/qml/MainMenuButton.qml +++ b/examples/QQPlayer-demo/resources/qml/MainMenuButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 75 - height: 15 + implicitWidth: 75 + implicitHeight: 15 contentItem: Image { anchors.fill: parent diff --git a/examples/QQPlayer-demo/resources/qml/MaximizeButton.qml b/examples/QQPlayer-demo/resources/qml/MaximizeButton.qml index 3e816c7..73aad03 100644 --- a/examples/QQPlayer-demo/resources/qml/MaximizeButton.qml +++ b/examples/QQPlayer-demo/resources/qml/MaximizeButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 45 - height: 30 + implicitWidth: 45 + implicitHeight: 30 property bool maximized: false diff --git a/examples/QQPlayer-demo/resources/qml/MinimizeButton.qml b/examples/QQPlayer-demo/resources/qml/MinimizeButton.qml index 65df3d0..9a5daf5 100644 --- a/examples/QQPlayer-demo/resources/qml/MinimizeButton.qml +++ b/examples/QQPlayer-demo/resources/qml/MinimizeButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 45 - height: 30 + implicitWidth: 45 + implicitHeight: 30 ToolTip.visible: hovered && !down ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval diff --git a/examples/QQPlayer-demo/resources/qml/NextButton.qml b/examples/QQPlayer-demo/resources/qml/NextButton.qml index c7a8091..4e9c4a9 100644 --- a/examples/QQPlayer-demo/resources/qml/NextButton.qml +++ b/examples/QQPlayer-demo/resources/qml/NextButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 16 - height: 14 + implicitWidth: 16 + implicitHeight: 14 contentItem: Image { anchors.fill: parent diff --git a/examples/QQPlayer-demo/resources/qml/OpenFileButton.qml b/examples/QQPlayer-demo/resources/qml/OpenFileButton.qml index e60d36d..bc44656 100644 --- a/examples/QQPlayer-demo/resources/qml/OpenFileButton.qml +++ b/examples/QQPlayer-demo/resources/qml/OpenFileButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 187 - height: 50 + implicitWidth: 187 + implicitHeight: 50 contentItem: Image { anchors.fill: parent diff --git a/examples/QQPlayer-demo/resources/qml/PlayButton.qml b/examples/QQPlayer-demo/resources/qml/PlayButton.qml index 6ed92db..c05d776 100644 --- a/examples/QQPlayer-demo/resources/qml/PlayButton.qml +++ b/examples/QQPlayer-demo/resources/qml/PlayButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 45 - height: 45 + implicitWidth: 45 + implicitHeight: 45 contentItem: Image { anchors.fill: parent diff --git a/examples/QQPlayer-demo/resources/qml/PreviousButton.qml b/examples/QQPlayer-demo/resources/qml/PreviousButton.qml index cb26dd7..d6d92df 100644 --- a/examples/QQPlayer-demo/resources/qml/PreviousButton.qml +++ b/examples/QQPlayer-demo/resources/qml/PreviousButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 16 - height: 14 + implicitWidth: 16 + implicitHeight: 14 contentItem: Image { anchors.fill: parent diff --git a/examples/QQPlayer-demo/resources/qml/StopButton.qml b/examples/QQPlayer-demo/resources/qml/StopButton.qml index 564483d..2737310 100644 --- a/examples/QQPlayer-demo/resources/qml/StopButton.qml +++ b/examples/QQPlayer-demo/resources/qml/StopButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 14 - height: 14 + implicitWidth: 14 + implicitHeight: 14 contentItem: Image { anchors.fill: parent diff --git a/examples/QQPlayer-demo/resources/qml/VolumeButton.qml b/examples/QQPlayer-demo/resources/qml/VolumeButton.qml index 626fbf1..b68bba7 100644 --- a/examples/QQPlayer-demo/resources/qml/VolumeButton.qml +++ b/examples/QQPlayer-demo/resources/qml/VolumeButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 18 - height: 14 + implicitWidth: 18 + implicitHeight: 14 contentItem: Image { anchors.fill: parent diff --git a/resources/qml/CloseButton.qml b/resources/qml/CloseButton.qml index 2983632..0ead30e 100644 --- a/resources/qml/CloseButton.qml +++ b/resources/qml/CloseButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 45 - height: 30 + implicitWidth: 45 + implicitHeight: 30 ToolTip.visible: hovered && !down ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval diff --git a/resources/qml/MaximizeButton.qml b/resources/qml/MaximizeButton.qml index 820f98b..08a4b70 100644 --- a/resources/qml/MaximizeButton.qml +++ b/resources/qml/MaximizeButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 45 - height: 30 + implicitWidth: 45 + implicitHeight: 30 property bool maximized: false diff --git a/resources/qml/MinimizeButton.qml b/resources/qml/MinimizeButton.qml index 0700856..6c9c983 100644 --- a/resources/qml/MinimizeButton.qml +++ b/resources/qml/MinimizeButton.qml @@ -4,8 +4,8 @@ import QtQuick.Controls 2.15 Button { id: button - width: 45 - height: 30 + implicitWidth: 45 + implicitHeight: 30 ToolTip.visible: hovered && !down ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval