-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
721cf4b
commit 459ea92
Showing
29 changed files
with
80 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.4 | ||
import QtQuick 2.9 | ||
|
||
import QtQuick.Layouts 1.2 | ||
import QtQuick.Window 2.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.4 | ||
import QtQuick 2.9 | ||
|
||
import QtQuick.Layouts 1.2 | ||
import QtQuick.Window 2.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.4 | ||
import QtQuick 2.9 | ||
|
||
import QtQuick.Controls 2.2 | ||
import QtQuick.Layouts 1.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.4 | ||
import QtQuick 2.9 | ||
|
||
import QtQuick.Controls 2.2 | ||
import QtQuick.Layouts 1.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.4 | ||
import QtQuick 2.9 | ||
|
||
import QtQuick.Controls 2.2 | ||
import QtQuick.Layouts 1.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.4 | ||
import QtQuick 2.9 | ||
|
||
import QtQuick.Controls 1.4 | ||
import QtQuick.Layouts 1.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.0 | ||
import QtQuick 2.9 | ||
import QtQuick.Controls 2.2 | ||
import "ThemedControls" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
import QtQuick | ||
import QtQuick.Layouts | ||
import QtQuick.Controls | ||
import QtQuick 2.9 | ||
import QtQuick.Layouts 1.2 | ||
import QtQuick.Controls 2.2 | ||
|
||
ScrollView { | ||
property alias content: item.data | ||
id: scrollView | ||
property alias content: childitem.data | ||
Layout.fillHeight: true | ||
Layout.fillWidth: true | ||
contentHeight: item.height + 30 | ||
Keys.forwardTo: item.children[0] | ||
contentHeight: childitem.height + 30 | ||
contentWidth: Math.max(childitem.width + 30, scrollView.width) | ||
Keys.forwardTo: childitem.children[0] | ||
|
||
Item { | ||
id: item | ||
anchors.centerIn: parent | ||
width: Math.min(parent.width - 30, 760) | ||
height: data[0].height | ||
anchors.left: parent.left | ||
anchors.top: parent.top | ||
anchors.right: parent.right | ||
anchors.bottom: parent.bottom | ||
anchors.leftMargin: Math.max((scrollView.width - childitem.width) / 2, 15) | ||
anchors.topMargin: 15 | ||
anchors.bottomMargin: 15 | ||
anchors.rightMargin: (function() { | ||
var val = Math.max((scrollView.width - childitem.width) / 2, 15); | ||
console.log("marginr=" + val); | ||
return val; | ||
})() | ||
Item { | ||
id: childitem | ||
width: Math.min(Math.max(children[0].Layout.minimumWidth, scrollView.width - 30), 720) | ||
height: data[0].height | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.0 | ||
import QtQuick 2.9 | ||
import QtQuick.Templates 2.1 as T | ||
|
||
T.BusyIndicator { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.0 | ||
import QtQuick 2.9 | ||
import QtQuick.Templates 2.1 as T | ||
|
||
T.Button { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.0 | ||
import QtQuick 2.9 | ||
import QtQuick.Templates 2.1 as T | ||
|
||
T.ProgressBar { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.0 | ||
import QtQuick 2.9 | ||
import QtQuick.Layouts 1.2 | ||
import QtQuick.Templates 2.1 as T | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.0 | ||
import QtQuick 2.9 | ||
import QtQuick.Templates 2.1 as T | ||
|
||
T.Button { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import QtQuick 2.4 | ||
import QtQuick 2.9 | ||
|
||
import QtQuick.Controls 2.2 | ||
import QtQuick.Layouts 1.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters