This repository was archived by the owner on Apr 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,6 @@ QVariant AboutSettings::diskUsageModel() const
153
153
return m_internalStorage;
154
154
}
155
155
156
- QVariant AboutSettings::externalStorageUsageModel () const
157
- {
158
- return m_externalStorage;
159
- }
160
-
161
156
QString AboutSettings::wlanMacAddress () const
162
157
{
163
158
return m_netinfo->macAddress (QNetworkInfo::WlanMode, 0 );
@@ -258,7 +253,6 @@ void AboutSettings::partitionCountChanged()
258
253
void AboutSettings::reloadStorageLists ()
259
254
{
260
255
m_internalStorage.clear ();
261
- m_externalStorage.clear ();
262
256
263
257
for (auto partition : m_partitionManager.partitions ()) {
264
258
QVariantMap row;
@@ -283,9 +277,7 @@ void AboutSettings::reloadStorageLists()
283
277
}
284
278
}();
285
279
286
- if (partition.storageType () == Partition::External) {
287
- m_externalStorage << QVariant (row);
288
- } else {
280
+ if (partition.storageType () != Partition::External) {
289
281
m_internalStorage << QVariant (row);
290
282
}
291
283
}
Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ class SYSTEMSETTINGS_EXPORT AboutSettings: public QObject
55
55
Q_PROPERTY (QString vendorName READ vendorName CONSTANT)
56
56
Q_PROPERTY (QString vendorVersion READ vendorVersion CONSTANT)
57
57
58
- Q_PROPERTY (QVariant internalStorageUsageModel READ diskUsageModel NOTIFY storageChanged)
59
- Q_PROPERTY (QVariant externalStorageUsageModel READ externalStorageUsageModel NOTIFY storageChanged)
60
-
61
58
public:
62
59
explicit AboutSettings (QObject *parent = 0 );
63
60
virtual ~AboutSettings ();
@@ -75,7 +72,6 @@ class SYSTEMSETTINGS_EXPORT AboutSettings: public QObject
75
72
* - total: total bytes on the storage
76
73
**/
77
74
Q_INVOKABLE QVariant diskUsageModel () const ;
78
- QVariant externalStorageUsageModel () const ;
79
75
Q_INVOKABLE void refreshStorageModels ();
80
76
81
77
QString wlanMacAddress () const ;
@@ -101,7 +97,6 @@ class SYSTEMSETTINGS_EXPORT AboutSettings: public QObject
101
97
QDeviceInfo *m_devinfo;
102
98
103
99
QVariantList m_internalStorage;
104
- QVariantList m_externalStorage;
105
100
PartitionManager m_partitionManager;
106
101
107
102
mutable QMap<QString, QString> m_osRelease;
Original file line number Diff line number Diff line change @@ -23,8 +23,6 @@ Module {
23
23
Property { name: "adaptationVersion"; type: "string"; isReadonly: true }
24
24
Property { name: "vendorName"; type: "string"; isReadonly: true }
25
25
Property { name: "vendorVersion"; type: "string"; isReadonly: true }
26
- Property { name: "internalStorageUsageModel"; type: "QVariant"; isReadonly: true }
27
- Property { name: "externalStorageUsageModel"; type: "QVariant"; isReadonly: true }
28
26
Signal { name: "storageChanged" }
29
27
Method { name: "totalDiskSpace"; type: "qlonglong" }
30
28
Method { name: "availableDiskSpace"; type: "qlonglong" }
You can’t perform that action at this time.
0 commit comments