Skip to content

Commit fca389a

Browse files
authored
Merge pull request #150 from jmlich/master
Add Nemo because of missing Theme
2 parents f05f660 + 12dd014 commit fca389a

33 files changed

+41
-11
lines changed

src/plugins/about/about.qml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
import QtQuick 2.6
2020

21+
import Nemo
2122
import Nemo.Controls
2223

2324
import Nemo.Dialogs 1.0

src/plugins/bluez/bluez.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import QtQuick
2020
import QtQuick.Window
2121

22+
import Nemo
2223
import Nemo.Controls
2324
import org.nemomobile.models
2425

src/plugins/datetime/SetupDate.qml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20+
import Nemo
2021
import Nemo.Controls
2122

2223
import org.nemomobile.systemsettings 1.0

src/plugins/datetime/SetupTime.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20-
20+
import Nemo
2121
import Nemo.Controls
2222

2323
import org.nemomobile.systemsettings 1.0

src/plugins/datetime/SetupTimezone.qml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20+
import Nemo
2021
import Nemo.Controls
2122

2223
import org.nemomobile.systemsettings 1.0

src/plugins/datetime/datetime.qml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20+
import Nemo
2021
import Nemo.Controls
2122

2223
import org.nemomobile.systemsettings 1.0

src/plugins/devicelock/DeviceLockPad.qml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20+
import Nemo
2021
import Nemo.Controls
2122

2223
import Nemo.Dialogs 1.0

src/plugins/devicelock/devicelock.qml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20+
import Nemo
2021
import Nemo.Controls
2122
import org.nemomobile.systemsettings 1.0
2223
import org.nemomobile.devicelock 1.0

src/plugins/display/display.qml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
import QtQuick 2.6
2020
import QtQuick.Window 2.1
21+
import Nemo
2122
import Nemo.Controls
2223

2324
import org.nemomobile.systemsettings 1.0
@@ -244,7 +245,7 @@ Page {
244245

245246
Slider {
246247
id: scaleSlider
247-
value: dpScaleFactor.value == 0 ? size.dpScaleFactor : dpScaleFactor.value
248+
value: dpScaleFactor.value == 0 ? Theme.dpScaleFactor : dpScaleFactor.value
248249
from: 0.5
249250
to: 2
250251
stepSize: 0.1

src/plugins/example/example.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import QtQuick 2.6
2020
import QtQuick.Window 2.1
2121

22+
import Nemo
2223
import Nemo.Controls
2324

2425
Page {

src/plugins/language/language.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
*/
1919

2020
import QtQuick 2.6
21+
import Nemo
2122
import Nemo.Controls
22-
2323
import Nemo.Dialogs 1.0
2424

2525
import org.nemomobile.systemsettings 1.0

src/plugins/location/location.qml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import QtQuick 2.6
2020
import QtQuick.Window 2.1
2121
import QtPositioning 5.2
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import Nemo.Configuration 1.0

src/plugins/mobile/mobile.qml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
import QtQuick 2.6
2020

21+
import Nemo
2122
import Nemo.Controls
2223
import QOfono 0.2
2324

src/plugins/nfc/nfc.qml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
import QtQuick 2.6
2020

21+
import Nemo
2122
import Nemo.Controls
2223

2324
import org.nemomobile.systemsettings 1.0

src/plugins/powersave/BatteryHealth.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import QtQuick 2.6
2020
import QtQuick.Window 2.1
2121

22+
import Nemo
2223
import Nemo.Controls
2324

2425
import org.nemomobile.systemsettings 1.0

src/plugins/powersave/powersave.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import QtQuick 2.6
2020
import QtQuick.Window 2.1
2121

22+
import Nemo
2223
import Nemo.Controls
2324

2425
import Nemo.Configuration 1.0

src/plugins/sounds/SoundLabel.qml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import QtQuick 2.6
2222
import QtQuick.Window 2.1
2323

2424
import QtMultimedia
25+
import Nemo
2526
import Nemo.Controls
2627

2728
import org.nemomobile.systemsettings 1.0

src/plugins/sounds/sounds.qml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import QtQuick 2.6
2222

2323
import QtMultimedia
2424

25+
import Nemo
2526
import Nemo.Controls
2627

2728
import org.nemomobile.systemsettings 1.0

src/plugins/storage/storage.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import QtQuick 2.6
2020
import QtQuick.Window 2.1
2121

22+
import Nemo
2223
import Nemo.Controls
2324

2425
import org.nemomobile.systemsettings 1.0

src/plugins/usb/usb.qml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20+
import Nemo
2021
import Nemo.Controls
2122
import org.nemomobile.systemsettings 1.0
2223
import Glacier.Controls.Settings 1.0

src/plugins/wifi/NetworkDelegate.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import QtQuick 2.6
2121
import QtQuick.Window 2.1
22+
import Nemo
2223
import Nemo.Controls
2324
import Connman 0.2
2425

src/plugins/wifi/SavedServices.qml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import QtQuick 2.6
2121
import QtQuick.Window 2.1
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import Connman 0.2
@@ -49,7 +50,7 @@ Page {
4950
height: parent.height - header.height
5051
model: savedModel
5152
delegate: ListViewItemWithActions{
52-
height: size.dp(80)
53+
height: Theme.dp(80)
5354
label: networkService.name
5455
width: savedPage.width
5556

src/plugins/wifi/SavedStatus.qml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import QtQuick 2.6
2121
import QtQuick.Window 2.1
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import Connman 0.2

src/plugins/wifi/WifiSettings.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import QtQuick 2.6
2020
import QtQuick.Window 2.1
2121

22+
import Nemo
2223
import Nemo.Controls
2324

2425
import Connman 0.2

src/plugins/wifi/WifiStatus.qml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import QtQuick 2.6
2020
import QtQuick.Window 2.1
2121

22+
import Nemo
2223
import Nemo.Controls
2324

2425
import Connman 0.2

src/plugins/wifi/wifi.qml

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import QtQuick 2.6
2121
import QtQuick.Window 2.1
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import Connman 0.2
@@ -79,7 +80,7 @@ Page {
7980
width: parent.width
8081
height: parent.height-wifiEnable.height
8182

82-
contentHeight: networks.height+size.dp(50)
83+
contentHeight: networks.height+Theme.dp(50)
8384

8485
clip: true
8586

src/plugins/wifi/wifisettingsplugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WiFiSettingsPlugin::WiFiSettingsPlugin(QObject* parent)
3838
connect(m_wifiTech, &NetworkTechnology::poweredChanged, this, &WiFiSettingsPlugin::onPoweredChanded);
3939
connect(m_wifiTech, &NetworkTechnology::connectedChanged, this, &WiFiSettingsPlugin::onConnectedChanged);
4040
} else {
41-
qCWarning(lcGlacierSettingsCoreLog) << "WiFi not found";
41+
qWarning() << "WiFi not found";
4242
}
4343
}
4444

src/qml/components/AiroplaneButton.qml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import QtQuick 2.6
2121
import QtQuick.Window 2.1
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import Connman 0.2

src/qml/components/RightCheckBox.qml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919
import QtQuick 2.6
2020

21+
import Nemo
2122
import Nemo.Controls
2223

2324
Item {

src/qml/components/SettingsColumn.qml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Boston, MA 02110-1301, USA.
1818
*/
1919
import QtQuick 2.6
20+
import Nemo
2021
import Nemo.Controls
2122

2223
Column{

src/qml/components/VolumeButton.qml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import QtQuick 2.6
2121
import QtQuick.Window 2.1
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import org.nemomobile.systemsettings 1.0

src/qml/components/WifiButton.qml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import QtQuick 2.6
2121
import QtQuick.Window 2.1
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import Connman 0.2

src/qml/glacier-settings.qml

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import QtQuick
2121
import QtQuick.Window
2222

23+
import Nemo
2324
import Nemo.Controls
2425

2526
import org.nemomobile.glacier.settings 1.0
@@ -59,12 +60,12 @@ ApplicationWindow{
5960
Row {
6061
id: brightnessRow
6162
width: mainPage.width
62-
spacing: size.dp(40)
63-
padding: size.dp(40)
63+
spacing: Theme.dp(40)
64+
padding: Theme.dp(40)
6465

6566
Slider{
6667
id: brightnessSlider
67-
width: parent.width-brightnessIcon.width-size.dp(120)
68+
width: parent.width-brightnessIcon.width-Theme.dp(120)
6869

6970
from: 0
7071
to: displaySettings.maximumBrightness
@@ -105,7 +106,7 @@ ApplicationWindow{
105106
Column {
106107
id: content
107108
width: parent.width
108-
spacing: size.dp(20)
109+
spacing: Theme.dp(20)
109110

110111
Repeater {
111112
id: view
@@ -139,7 +140,7 @@ ApplicationWindow{
139140

140141
Rectangle{
141142
id: line
142-
height: size.dp(1)
143+
height: Theme.dp(1)
143144
color: Theme.textColor
144145
width: content.width-sectionText.width-Theme.itemHeightExtraSmall
145146
anchors{

0 commit comments

Comments
 (0)