Changeset View
Changeset View
Standalone View
Standalone View
kcms/nightcolor/package/contents/ui/LocationsAutoView.qml
Show All 9 Lines | |||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | 12 | GNU General Public License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | *********************************************************************/ | 16 | *********************************************************************/ | ||
17 | import QtQuick 2.1 | 17 | import QtQuick 2.1 | ||
18 | import QtQuick.Layouts 1.1 | 18 | import org.kde.kirigami 2.5 as Kirigami | ||
19 | import QtQuick.Controls 1.4 as Controls | | |||
20 | 19 | | |||
21 | GridLayout { | 20 | Kirigami.FormLayout { | ||
22 | columns: 2 | 21 | twinFormLayouts: parentLayout | ||
23 | rowSpacing: units.smallSpacing | | |||
24 | columnSpacing: units.smallSpacing | | |||
25 | enabled: activator.checked | 22 | enabled: activator.checked | ||
26 | 23 | | |||
27 | property double latitude | 24 | property double latitude | ||
28 | property double longitude | 25 | property double longitude | ||
29 | 26 | | |||
30 | onLatitudeChanged: latitudeField.backend = latitude; | 27 | onLatitudeChanged: latitudeField.backend = latitude; | ||
31 | onLongitudeChanged: longitudeField.backend = longitude; | 28 | onLongitudeChanged: longitudeField.backend = longitude; | ||
32 | 29 | | |||
33 | Controls.Label { | | |||
34 | text: i18n("Latitude") | | |||
35 | Layout.alignment: Qt.AlignRight | | |||
36 | enabled: false | | |||
37 | } | | |||
38 | NumberField { | 30 | NumberField { | ||
39 | id: latitudeField | 31 | id: latitudeField | ||
32 | Kirigami.FormData.label: i18n("Latitude:") | ||||
40 | backend: locator.latitude | 33 | backend: locator.latitude | ||
41 | enabled: false | 34 | enabled: false | ||
42 | } | 35 | } | ||
43 | Controls.Label { | 36 | | ||
44 | text: i18n("Longitude") | | |||
45 | Layout.alignment: Qt.AlignRight | | |||
46 | enabled: false | | |||
47 | } | | |||
48 | NumberField { | 37 | NumberField { | ||
49 | id: longitudeField | 38 | id: longitudeField | ||
39 | Kirigami.FormData.label: i18n("Longitude:") | ||||
50 | backend: locator.longitude | 40 | backend: locator.longitude | ||
51 | enabled: false | 41 | enabled: false | ||
52 | } | 42 | } | ||
53 | } | 43 | } |