UI: Migrate to Qt 5.12

This commit is contained in:
Nodir Temirkhodjaev 2018-04-07 13:09:35 +05:00
parent 49075fd6ad
commit 3e54261f58
44 changed files with 111 additions and 123 deletions

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.Button { T.Button {
id: control id: control
@ -46,11 +46,9 @@ T.Button {
contentItem.implicitWidth + leftPadding + rightPadding) contentItem.implicitWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
contentItem.implicitHeight + topPadding + bottomPadding) contentItem.implicitHeight + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 6 padding: 6
leftPadding: padding + 2 horizontalPadding: padding + 2
rightPadding: padding + 2
spacing: 6 spacing: 6
icon.width: 24 icon.width: 24

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
T.CheckDelegate { T.CheckDelegate {
id: control id: control
@ -47,7 +47,6 @@ T.CheckDelegate {
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight, Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 12 padding: 12
spacing: 12 spacing: 12

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.ItemDelegate { T.ItemDelegate {
id: control id: control
@ -47,7 +47,6 @@ T.ItemDelegate {
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight, Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 12 padding: 12
spacing: 8 spacing: 8

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
T.MenuBarItem { T.MenuBarItem {
id: control id: control
@ -47,7 +47,6 @@ T.MenuBarItem {
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight, Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
spacing: 6 spacing: 6
padding: 6 padding: 6

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.MenuItem { T.MenuItem {
id: control id: control
@ -47,7 +47,6 @@ T.MenuItem {
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight, Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 6 padding: 6
spacing: 6 spacing: 6

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.RadioDelegate { T.RadioDelegate {
id: control id: control
@ -47,7 +47,6 @@ T.RadioDelegate {
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight, Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 12 padding: 12
spacing: 12 spacing: 12

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.RoundButton { T.RoundButton {
id: control id: control
@ -46,7 +46,6 @@ T.RoundButton {
contentItem.implicitWidth + leftPadding + rightPadding) contentItem.implicitWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
contentItem.implicitHeight + topPadding + bottomPadding) contentItem.implicitHeight + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 6 padding: 6
spacing: 6 spacing: 6

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.SwipeDelegate { T.SwipeDelegate {
id: control id: control
@ -47,7 +47,6 @@ T.SwipeDelegate {
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight, Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 12 padding: 12
spacing: 12 spacing: 12

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
T.SwitchDelegate { T.SwitchDelegate {
id: control id: control
@ -47,7 +47,6 @@ T.SwitchDelegate {
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
Math.max(contentItem.implicitHeight, Math.max(contentItem.implicitHeight,
indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding) indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 12 padding: 12
spacing: 12 spacing: 12

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.TabButton { T.TabButton {
id: control id: control
@ -46,7 +46,6 @@ T.TabButton {
contentItem.implicitWidth + leftPadding + rightPadding) contentItem.implicitWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
contentItem.implicitHeight + topPadding + bottomPadding) contentItem.implicitHeight + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 6 padding: 6
spacing: 6 spacing: 6

View File

@ -34,10 +34,10 @@
** **
****************************************************************************/ ****************************************************************************/
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Controls.impl 2.4 import QtQuick.Controls.impl 2.5
import QtQuick.Templates 2.4 as T import QtQuick.Templates 2.5 as T
T.ToolButton { T.ToolButton {
id: control id: control
@ -46,7 +46,6 @@ T.ToolButton {
contentItem.implicitWidth + leftPadding + rightPadding) contentItem.implicitWidth + leftPadding + rightPadding)
implicitHeight: Math.max(background ? background.implicitHeight : 0, implicitHeight: Math.max(background ? background.implicitHeight : 0,
contentItem.implicitHeight + topPadding + bottomPadding) contentItem.implicitHeight + topPadding + bottomPadding)
baselineOffset: contentItem.y + contentItem.baselineOffset
padding: 6 padding: 6
spacing: 6 spacing: 6

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
Button { Button {
id: bt id: bt

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
Button { Button {
id: bt id: bt

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
Rectangle { Rectangle {

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
Label { Label {
id: bt id: bt

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
ListView { ListView {
id: listView id: listView

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
RoundButton { RoundButton {
id: bt id: bt

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
ScrollBar { ScrollBar {

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
RowLayout { RowLayout {

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
SwipeView { SwipeView {

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
Frame { Frame {
id: frame id: frame

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
Menu { Menu {
id: contextMenu id: contextMenu

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
TextField { TextField {
id: textField id: textField

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
HSeparator { HSeparator {

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import "controls" import "controls"
import "pages" import "pages"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../controls" import "../controls"
import "addresses" import "addresses"

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../controls" import "../controls"
import "apps" import "apps"

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
Pane { Pane {
id: page id: page

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../controls" import "../controls"
import "log" import "log"

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../controls" import "../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../controls" import "../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../controls" import "../controls"
import "schedule" import "schedule"

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../controls" import "../controls"
import "log" import "log"

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import com.fortfirewall 1.0 import com.fortfirewall 1.0

View File

@ -1,5 +1,5 @@
import QtQuick 2.11 import QtQuick 2.12
import QtQuick.Controls 2.4 import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3 import QtQuick.Layouts 1.3
import "../../controls" import "../../controls"
import com.fortfirewall 1.0 import com.fortfirewall 1.0