Skip to content

Commit

Permalink
ListViewWithTab update
Browse files Browse the repository at this point in the history
  • Loading branch information
jared2020 committed Apr 21, 2023
1 parent d200697 commit 021f338
Showing 1 changed file with 297 additions and 26 deletions.
323 changes: 297 additions & 26 deletions examples/TaoQuickShow/Contents/General/ListViewWithTab.qml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQml.Models 2.0

import QtQml.Models 2.1
import TaoQuick 1.0
Item {
anchors.fill: parent
Rectangle {
Expand All @@ -21,7 +21,7 @@ Item {
id: titleItem
width: parent.width
height: 60
Label {
CusLabel {
font.pixelSize: 18
text: qsTr("系统设置")
anchors {
Expand All @@ -41,7 +41,7 @@ Item {
width: parent.width
height: 60

Label {
CusLabel {
text: qsTr("基本设置")
anchors {
left: parent.left
Expand Down Expand Up @@ -113,28 +113,299 @@ Item {
//互斥flag
property bool notifyLeft: true

delegate: Item {
width: 400
height: 160
Label {
x: 60
text: modelData + ":"
}
Column {
x: 230
height: parent.height
CheckBox {
text: "开机时自动启动"
}
CheckBox {
text: "启动时自动登录"
}
CheckBox {
text: "总是打开登录提示"
}
}
}
model: leftListView.model
// delegate: Item {
// width: 400
// height: 160
// CusLabel {
// x: 60
// text: modelData + ":"
// }
// Column {
// x: 230
// height: parent.height
// CusCheckBox {
// text: "开机时自动启动"
// }
// CusCheckBox {
// text: "启动时自动登录"
// }
// CusCheckBox {
// text: "总是打开登录提示"
// }
// }
// }
// model: leftListView.model
model: ObjectModel {
Item {
width: 400
height: 120
CusLabel {
x: 60
text: "登录" + ":"
}
Column {
x: 230
height: parent.height
spacing: 6
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 340
CusLabel {
x: 60
text: "状态" + ":"
}
Column {
x: 230
height: parent.height
Row {
CusLabel {
text: "登录后状态为:"
}
CusComboBox {
model: ["在线","忙碌","隐身"]
width: 100
}
}
CusCheckBox {
text: "运行全屏程序时切换至“忙碌”状态"
}
CusLabel {
x: 30
text: "仅在“我在线上”状态下生效"
enabled: false
}
Row {
CusCheckBox {
text: "鼠标键盘无动作"
}
CusSpinBox {
value: 5
from: 1
to: 999
}
CusLabel {
text: "分钟后:"
}
}

Row {
x: 30
CusRadioButton {
id: radio_stateTo
text: "将状态切换至"

}
CusComboBox {
model:["忙碌"]
}
}
CusRadioButton {
id: radio_lock
text: "自动锁定"
}
ButtonGroup {
id: onlineStateChangeGroup
buttons: [radio_stateTo, radio_lock]
}
CusCheckBox {
text: "离开、忙碌、请勿打扰时自动回复(100字以内)"
}
Row {
CusButton {
text: "自动回复设置"
}
CusButton {
text: "快捷回复设置"
}
}
}
}
Item {
width: 400
height: 160
CusLabel {
x: 60
text: "会话窗口" + ":"
}
Column {
x: 230
height: parent.height
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 160
CusLabel {
x: 60
text: "提醒" + ":"
}
Column {
x: 230
height: parent.height
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 120
CusLabel {
x: 60
text: "热键" + ":"
}
Column {
x: 230
height: parent.height
spacing: 6
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 120
CusLabel {
x: 60
text: "声音" + ":"
}
Column {
x: 230
height: parent.height
spacing: 6
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 120
CusLabel {
x: 60
text: "软件更新" + ":"
}
Column {
x: 230
height: parent.height
spacing: 6
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 120
CusLabel {
x: 60
text: "文件管理" + ":"
}
Column {
x: 230
height: parent.height
spacing: 6
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 120
CusLabel {
x: 60
text: "文件共享" + ":"
}
Column {
x: 230
height: parent.height
spacing: 6
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
Item {
width: 400
height: 120
CusLabel {
x: 60
text: "音视频通话" + ":"
}
Column {
x: 230
height: parent.height
spacing: 6
CusCheckBox {
text: "开机时自动启动"
}
CusCheckBox {
text: "启动时自动登录"
}
CusCheckBox {
text: "总是打开登录提示"
}
}
}
}
onContentYChanged: {
if (notifyLeft) {
var i = rightListView.indexAt(0, contentY)
Expand Down

0 comments on commit 021f338

Please sign in to comment.