mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 19:27:38 +08:00
update
This commit is contained in:
parent
5056dc57cf
commit
1b0bd0e750
@ -181,7 +181,7 @@
|
|||||||
<file>res/image/bg_scenic.png</file>
|
<file>res/image/bg_scenic.png</file>
|
||||||
<file>res/image/image_1.jpg</file>
|
<file>res/image/image_1.jpg</file>
|
||||||
<file>qml/window/PageWindow.qml</file>
|
<file>qml/window/PageWindow.qml</file>
|
||||||
<file>qml/page/T_StaggeredView.qml</file>
|
<file>qml/page/T_StaggeredLayout.qml</file>
|
||||||
<file>qml/viewmodel/SettingsViewModel.qml</file>
|
<file>qml/viewmodel/SettingsViewModel.qml</file>
|
||||||
<file>qml/viewmodel/TextBoxViewModel.qml</file>
|
<file>qml/viewmodel/TextBoxViewModel.qml</file>
|
||||||
<file>qml/page/T_Clip.qml</file>
|
<file>qml/page/T_Clip.qml</file>
|
||||||
|
@ -136,7 +136,7 @@ FluExpander{
|
|||||||
"FluTimeline",
|
"FluTimeline",
|
||||||
"FluChart",
|
"FluChart",
|
||||||
"FluRangeSlider",
|
"FluRangeSlider",
|
||||||
"FluStaggeredView",
|
"FluStaggeredLayout",
|
||||||
"FluProgressButton",
|
"FluProgressButton",
|
||||||
"FluLoadingButton",
|
"FluLoadingButton",
|
||||||
"FluClip",
|
"FluClip",
|
||||||
|
@ -210,12 +210,6 @@ FluObject{
|
|||||||
url:"qrc:/example/qml/page/T_Expander.qml"
|
url:"qrc:/example/qml/page/T_Expander.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
|
||||||
title:"StaggeredView"
|
|
||||||
menuDelegate: paneItemMenu
|
|
||||||
url:"qrc:/example/qml/page/T_StaggeredView.qml"
|
|
||||||
onTap:{ navigationView.push(url) }
|
|
||||||
}
|
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Watermark"
|
title:"Watermark"
|
||||||
menuDelegate: paneItemMenu
|
menuDelegate: paneItemMenu
|
||||||
@ -224,6 +218,17 @@ FluObject{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FluPaneItemExpander{
|
||||||
|
title:Lang.layout
|
||||||
|
icon:FluentIcons.DockLeft
|
||||||
|
FluPaneItem{
|
||||||
|
title:"StaggeredLayout"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
|
url:"qrc:/example/qml/page/T_StaggeredLayout.qml"
|
||||||
|
onTap:{ navigationView.push(url) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FluPaneItemExpander{
|
FluPaneItemExpander{
|
||||||
title:Lang.popus
|
title:Lang.popus
|
||||||
icon:FluentIcons.ButtonMenu
|
icon:FluentIcons.ButtonMenu
|
||||||
|
@ -8,6 +8,7 @@ QtObject {
|
|||||||
property string basic_input
|
property string basic_input
|
||||||
property string form
|
property string form
|
||||||
property string surface
|
property string surface
|
||||||
|
property string layout
|
||||||
property string popus
|
property string popus
|
||||||
property string navigation
|
property string navigation
|
||||||
property string theming
|
property string theming
|
||||||
@ -34,6 +35,7 @@ QtObject {
|
|||||||
basic_input="基本输入"
|
basic_input="基本输入"
|
||||||
form="表单"
|
form="表单"
|
||||||
surface="表面"
|
surface="表面"
|
||||||
|
layout="布局"
|
||||||
popus="弹窗"
|
popus="弹窗"
|
||||||
navigation="导航"
|
navigation="导航"
|
||||||
theming="主题"
|
theming="主题"
|
||||||
@ -61,6 +63,7 @@ QtObject {
|
|||||||
basic_input="Basic Input"
|
basic_input="Basic Input"
|
||||||
form="Form"
|
form="Form"
|
||||||
surface="Surfaces"
|
surface="Surfaces"
|
||||||
|
layout="Layout"
|
||||||
popus="Popus"
|
popus="Popus"
|
||||||
navigation="Navigation"
|
navigation="Navigation"
|
||||||
theming="Theming"
|
theming="Theming"
|
||||||
|
@ -7,7 +7,7 @@ import "../component"
|
|||||||
|
|
||||||
FluContentPage{
|
FluContentPage{
|
||||||
|
|
||||||
title:"StaggeredView"
|
title:"StaggeredLayout"
|
||||||
|
|
||||||
property var colors : [FluColors.Yellow,FluColors.Orange,FluColors.Red,FluColors.Magenta,FluColors.Purple,FluColors.Blue,FluColors.Teal,FluColors.Green]
|
property var colors : [FluColors.Yellow,FluColors.Orange,FluColors.Red,FluColors.Magenta,FluColors.Purple,FluColors.Blue,FluColors.Teal,FluColors.Green]
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ FluContentPage{
|
|||||||
contentHeight: staggered_view.implicitHeight
|
contentHeight: staggered_view.implicitHeight
|
||||||
clip: true
|
clip: true
|
||||||
ScrollBar.vertical: FluScrollBar {}
|
ScrollBar.vertical: FluScrollBar {}
|
||||||
FluStaggeredView{
|
FluStaggeredLayout{
|
||||||
id:staggered_view
|
id:staggered_view
|
||||||
width: parent.width
|
width: parent.width
|
||||||
itemWidth: 160
|
itemWidth: 160
|
@ -136,7 +136,7 @@ FluExpander{
|
|||||||
"FluTimeline",
|
"FluTimeline",
|
||||||
"FluChart",
|
"FluChart",
|
||||||
"FluRangeSlider",
|
"FluRangeSlider",
|
||||||
"FluStaggeredView",
|
"FluStaggeredLayout",
|
||||||
"FluProgressButton",
|
"FluProgressButton",
|
||||||
"FluLoadingButton",
|
"FluLoadingButton",
|
||||||
"FluClip",
|
"FluClip",
|
||||||
|
@ -210,12 +210,6 @@ FluObject{
|
|||||||
url:"qrc:/example/qml/page/T_Expander.qml"
|
url:"qrc:/example/qml/page/T_Expander.qml"
|
||||||
onTap:{ navigationView.push(url) }
|
onTap:{ navigationView.push(url) }
|
||||||
}
|
}
|
||||||
FluPaneItem{
|
|
||||||
title:"StaggeredView"
|
|
||||||
menuDelegate: paneItemMenu
|
|
||||||
url:"qrc:/example/qml/page/T_StaggeredView.qml"
|
|
||||||
onTap:{ navigationView.push(url) }
|
|
||||||
}
|
|
||||||
FluPaneItem{
|
FluPaneItem{
|
||||||
title:"Watermark"
|
title:"Watermark"
|
||||||
menuDelegate: paneItemMenu
|
menuDelegate: paneItemMenu
|
||||||
@ -224,6 +218,17 @@ FluObject{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FluPaneItemExpander{
|
||||||
|
title:Lang.layout
|
||||||
|
icon:FluentIcons.DockLeft
|
||||||
|
FluPaneItem{
|
||||||
|
title:"StaggeredLayout"
|
||||||
|
menuDelegate: paneItemMenu
|
||||||
|
url:"qrc:/example/qml/page/T_StaggeredLayout.qml"
|
||||||
|
onTap:{ navigationView.push(url) }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FluPaneItemExpander{
|
FluPaneItemExpander{
|
||||||
title:Lang.popus
|
title:Lang.popus
|
||||||
icon:FluentIcons.ButtonMenu
|
icon:FluentIcons.ButtonMenu
|
||||||
|
@ -8,6 +8,7 @@ QtObject {
|
|||||||
property string basic_input
|
property string basic_input
|
||||||
property string form
|
property string form
|
||||||
property string surface
|
property string surface
|
||||||
|
property string layout
|
||||||
property string popus
|
property string popus
|
||||||
property string navigation
|
property string navigation
|
||||||
property string theming
|
property string theming
|
||||||
@ -34,6 +35,7 @@ QtObject {
|
|||||||
basic_input="基本输入"
|
basic_input="基本输入"
|
||||||
form="表单"
|
form="表单"
|
||||||
surface="表面"
|
surface="表面"
|
||||||
|
layout="布局"
|
||||||
popus="弹窗"
|
popus="弹窗"
|
||||||
navigation="导航"
|
navigation="导航"
|
||||||
theming="主题"
|
theming="主题"
|
||||||
@ -61,6 +63,7 @@ QtObject {
|
|||||||
basic_input="Basic Input"
|
basic_input="Basic Input"
|
||||||
form="Form"
|
form="Form"
|
||||||
surface="Surfaces"
|
surface="Surfaces"
|
||||||
|
layout="Layout"
|
||||||
popus="Popus"
|
popus="Popus"
|
||||||
navigation="Navigation"
|
navigation="Navigation"
|
||||||
theming="Theming"
|
theming="Theming"
|
||||||
|
0
example/qml/page/T_OpenGL.qml
Normal file
0
example/qml/page/T_OpenGL.qml
Normal file
@ -7,7 +7,7 @@ import FluentUI 1.0
|
|||||||
|
|
||||||
FluContentPage{
|
FluContentPage{
|
||||||
|
|
||||||
title:"StaggeredView"
|
title:"StaggeredLayout"
|
||||||
|
|
||||||
property var colors : [FluColors.Yellow,FluColors.Orange,FluColors.Red,FluColors.Magenta,FluColors.Purple,FluColors.Blue,FluColors.Teal,FluColors.Green]
|
property var colors : [FluColors.Yellow,FluColors.Orange,FluColors.Red,FluColors.Magenta,FluColors.Purple,FluColors.Blue,FluColors.Teal,FluColors.Green]
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ FluContentPage{
|
|||||||
contentHeight: staggered_view.implicitHeight
|
contentHeight: staggered_view.implicitHeight
|
||||||
clip: true
|
clip: true
|
||||||
ScrollBar.vertical: FluScrollBar {}
|
ScrollBar.vertical: FluScrollBar {}
|
||||||
FluStaggeredView{
|
FluStaggeredLayout{
|
||||||
id:staggered_view
|
id:staggered_view
|
||||||
width: parent.width
|
width: parent.width
|
||||||
itemWidth: 160
|
itemWidth: 160
|
@ -131,12 +131,12 @@ void FluentUI::registerTypes(const char *uri){
|
|||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluTreeView.qml"),uri,major,minor,"FluTreeView");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluTreeView.qml"),uri,major,minor,"FluTreeView");
|
||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluWindow.qml"),uri,major,minor,"FluWindow");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluWindow.qml"),uri,major,minor,"FluWindow");
|
||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluRangeSlider.qml"),uri,major,minor,"FluRangeSlider");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluRangeSlider.qml"),uri,major,minor,"FluRangeSlider");
|
||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluStaggeredView.qml"),uri,major,minor,"FluStaggeredView");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluStaggeredLayout.qml"),uri,major,minor,"FluStaggeredLayout");
|
||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluProgressButton.qml"),uri,major,minor,"FluProgressButton");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluProgressButton.qml"),uri,major,minor,"FluProgressButton");
|
||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluLoadingButton.qml"),uri,major,minor,"FluLoadingButton");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluLoadingButton.qml"),uri,major,minor,"FluLoadingButton");
|
||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluClip.qml"),uri,major,minor,"FluClip");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluClip.qml"),uri,major,minor,"FluClip");
|
||||||
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluLoader.qml"),uri,major,minor,"FluLoader");
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluLoader.qml"),uri,major,minor,"FluLoader");
|
||||||
|
qmlRegisterType(QUrl("qrc:/qt/qml/FluentUI/Controls/FluShortcutPicker.qml"),uri,major,minor,"FluShortcutPicker");
|
||||||
|
|
||||||
qmlRegisterUncreatableMetaObject(Fluent_Awesome::staticMetaObject, uri,major,minor,"FluentIcons", "Access to enums & flags only");
|
qmlRegisterUncreatableMetaObject(Fluent_Awesome::staticMetaObject, uri,major,minor,"FluentIcons", "Access to enums & flags only");
|
||||||
qmlRegisterUncreatableMetaObject(FluThemeType::staticMetaObject, uri,major,minor,"FluThemeType", "Access to enums & flags only");
|
qmlRegisterUncreatableMetaObject(FluThemeType::staticMetaObject, uri,major,minor,"FluThemeType", "Access to enums & flags only");
|
||||||
|
@ -64,7 +64,15 @@ TextArea{
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.IBeamCursor
|
cursorShape: Qt.IBeamCursor
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: control.echoMode !== TextInput.Password && menu.popup()
|
onClicked: {
|
||||||
|
if(control.echoMode === TextInput.Password){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(control.readOnly && control.text === ""){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
menu.popup()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
FluTextBoxMenu{
|
FluTextBoxMenu{
|
||||||
id:menu
|
id:menu
|
||||||
|
@ -62,7 +62,15 @@ TextField{
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.IBeamCursor
|
cursorShape: Qt.IBeamCursor
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: control.echoMode !== TextInput.Password && menu.popup()
|
onClicked: {
|
||||||
|
if(control.echoMode === TextInput.Password){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(control.readOnly && control.text === ""){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
menu.popup()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
RowLayout{
|
RowLayout{
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
<file>FluentUI/Controls/FluShadow.qml</file>
|
<file>FluentUI/Controls/FluShadow.qml</file>
|
||||||
<file>FluentUI/Controls/FluSlider.qml</file>
|
<file>FluentUI/Controls/FluSlider.qml</file>
|
||||||
<file>FluentUI/Controls/FluSpinBox.qml</file>
|
<file>FluentUI/Controls/FluSpinBox.qml</file>
|
||||||
<file>FluentUI/Controls/FluStaggeredView.qml</file>
|
<file>FluentUI/Controls/FluStaggeredLayout.qml</file>
|
||||||
<file>FluentUI/Controls/FluStatusView.qml</file>
|
<file>FluentUI/Controls/FluStatusView.qml</file>
|
||||||
<file>FluentUI/Controls/FluTableView.qml</file>
|
<file>FluentUI/Controls/FluTableView.qml</file>
|
||||||
<file>FluentUI/Controls/FluTabView.qml</file>
|
<file>FluentUI/Controls/FluTabView.qml</file>
|
||||||
|
@ -65,7 +65,15 @@ TextArea{
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.IBeamCursor
|
cursorShape: Qt.IBeamCursor
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: control.echoMode !== TextInput.Password && menu.popup()
|
onClicked: {
|
||||||
|
if(control.echoMode === TextInput.Password){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(control.readOnly && control.text === ""){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
menu.popup()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
FluTextBoxMenu{
|
FluTextBoxMenu{
|
||||||
id:menu
|
id:menu
|
||||||
|
@ -63,7 +63,15 @@ TextField{
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.IBeamCursor
|
cursorShape: Qt.IBeamCursor
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: control.echoMode !== TextInput.Password && menu.popup()
|
onClicked: {
|
||||||
|
if(control.echoMode === TextInput.Password){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if(control.readOnly && control.text === ""){
|
||||||
|
return
|
||||||
|
}
|
||||||
|
menu.popup()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
RowLayout{
|
RowLayout{
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
Loading…
Reference in New Issue
Block a user