|
18 | 18 | import QtQuick 2.0 |
19 | 19 | import QtQuick.Controls 2.1 |
20 | 20 | import QtQuick.Controls.Material 2.0 |
21 | | -import Fluid.Controls 1.0 |
22 | | -import Fluid.Material 1.0 |
| 21 | +import Fluid.Controls 1.0 as FluidControls |
| 22 | +import Fluid.Material 1.0 as FluidMaterial |
23 | 23 | import QmlDownloader 1.0 |
24 | 24 | import "utils.js" as Utils |
25 | 25 |
|
|
33 | 33 | bottomMargin: 60 |
34 | 34 | } |
35 | 35 |
|
36 | | - Card { |
| 36 | + FluidControls.Card { |
37 | 37 | anchors { |
38 | 38 | right: parent.right |
39 | 39 | } |
|
50 | 50 | width: parent.width |
51 | 51 | height: parent.height |
52 | 52 |
|
53 | | - BodyLabel { |
| 53 | + FluidControls.BodyLabel { |
54 | 54 | id: instruction |
55 | 55 |
|
56 | 56 | anchors { |
@@ -85,78 +85,78 @@ Item { |
85 | 85 |
|
86 | 86 | visible: false |
87 | 87 |
|
88 | | - BodyLabel { |
| 88 | + FluidControls.BodyLabel { |
89 | 89 | width: 5 |
90 | 90 | } |
91 | 91 |
|
92 | | - BodyLabel { |
| 92 | + FluidControls.BodyLabel { |
93 | 93 | id: completedDownload |
94 | 94 | text: Utils.humanSize(downloader.completedSize) |
95 | 95 | font.pixelSize: 17 |
96 | 96 | } |
97 | 97 |
|
98 | | - BodyLabel { |
| 98 | + FluidControls.BodyLabel { |
99 | 99 | text: " / " |
100 | 100 | font.pixelSize: 17 |
101 | 101 | } |
102 | 102 |
|
103 | | - BodyLabel { |
| 103 | + FluidControls.BodyLabel { |
104 | 104 | id: totalDownload |
105 | 105 | text: Utils.humanSize(downloader.totalSize) |
106 | 106 | font.pixelSize: 17 |
107 | 107 | } |
108 | 108 |
|
109 | | - BodyLabel { |
| 109 | + FluidControls.BodyLabel { |
110 | 110 | width: 20 |
111 | 111 | } |
112 | 112 |
|
113 | | - BodyLabel { |
| 113 | + FluidControls.BodyLabel { |
114 | 114 | id: eta |
115 | 115 | text: Utils.humanTime(downloader.eta) |
116 | 116 | font.pixelSize: 17 |
117 | 117 | } |
118 | 118 |
|
119 | | - BodyLabel { |
| 119 | + FluidControls.BodyLabel { |
120 | 120 | width: 20 |
121 | 121 | } |
122 | 122 |
|
123 | | - BodyLabel { |
| 123 | + FluidControls.BodyLabel { |
124 | 124 | text: "DL: " |
125 | 125 | font.pixelSize: 17 |
126 | 126 | } |
127 | 127 |
|
128 | | - BodyLabel { |
| 128 | + FluidControls.BodyLabel { |
129 | 129 | id: downloadSpeed |
130 | 130 | text: Utils.humanSize(downloader.downloadSpeed) |
131 | 131 | font.pixelSize: 17 |
132 | 132 | } |
133 | 133 |
|
134 | | - BodyLabel { |
| 134 | + FluidControls.BodyLabel { |
135 | 135 | width: 20 |
136 | 136 | text: "/s" |
137 | 137 | font.pixelSize: 17 |
138 | 138 | } |
139 | 139 |
|
140 | | - BodyLabel { |
| 140 | + FluidControls.BodyLabel { |
141 | 141 | text: "UL: " |
142 | 142 | font.pixelSize: 17 |
143 | 143 | } |
144 | 144 |
|
145 | | - BodyLabel { |
| 145 | + FluidControls.BodyLabel { |
146 | 146 | id: uploadSpeed |
147 | 147 | text: Utils.humanSize(downloader.uploadSpeed) |
148 | 148 | font.pixelSize: 17 |
149 | 149 | } |
150 | 150 |
|
151 | | - BodyLabel { |
| 151 | + FluidControls.BodyLabel { |
152 | 152 | text: "/s" |
153 | 153 | font.pixelSize: 17 |
154 | 154 | } |
155 | 155 | } |
156 | 156 | } |
157 | 157 | } |
158 | 158 |
|
159 | | - ActionButton { |
| 159 | + FluidMaterial.ActionButton { |
160 | 160 | id: downloadAction |
161 | 161 |
|
162 | 162 | anchors { |
|
0 commit comments