diff --git a/examples/TaoQuickShow/Contents/General/ListViewWithTab.qml b/examples/TaoQuickShow/Contents/General/ListViewWithTab.qml index da5f24b..f7ce941 100644 --- a/examples/TaoQuickShow/Contents/General/ListViewWithTab.qml +++ b/examples/TaoQuickShow/Contents/General/ListViewWithTab.qml @@ -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 { @@ -21,7 +21,7 @@ Item { id: titleItem width: parent.width height: 60 - Label { + CusLabel { font.pixelSize: 18 text: qsTr("系统设置") anchors { @@ -41,7 +41,7 @@ Item { width: parent.width height: 60 - Label { + CusLabel { text: qsTr("基本设置") anchors { left: parent.left @@ -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)