-
Notifications
You must be signed in to change notification settings - Fork 52
/
main.qml
31 lines (28 loc) · 1.22 KB
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Window 2.0
import Ths 1.0
//eg.
import "Base"
import "ColorPalette"
import "DragBar"
import "IOS-RadioButton"
import "LockscreenShortcut"
import "./WPTile"
ApplicationWindow {
title: qsTr("qmlStyle")
width: Config.isMoblie ? Screen.width : 320
height: Config.isMoblie ? Screen.height : 480
visible: true
LauncherList {
anchors.fill: parent
Component.onCompleted: {
addExample("DragBar", "实现QQ列表界面侧划效果", Qt.resolvedUrl("DragBar/MenuDragBar.qml"))
addExample("ColorPalette", "一种调色板类似的实现策略", Qt.resolvedUrl("ColorPalette/MenuColorPalette.qml"))
addExample("IOS-RadioButton", "仿照ios开关按钮效果", Qt.resolvedUrl("IOS-RadioButton/MenuRadioButton.qml"))
addExample("LockscreenShortcut", "仿小米锁屏4界面方向快捷键", Qt.resolvedUrl("LockscreenShortcut/MenuLockscreenShortcut.qml"))
addExample("WPTile", "WP风格磁贴实现", Qt.resolvedUrl("WPTile/MenuWPTile.qml"))
addExample("Vertical-ScrollBar", "实现一个竖向滚轮吧", Qt.resolvedUrl("Vertical-ScrollBar/MenuVerticalScrollBar.qml"))
}
}
}