diff --git a/applets/dict/package/contents/ui/main.qml b/applets/dict/package/contents/ui/main.qml index d97972916..bb29c299e 100644 --- a/applets/dict/package/contents/ui/main.qml +++ b/applets/dict/package/contents/ui/main.qml @@ -1,49 +1,49 @@ import QtQuick 2.0 import QtQuick.Layouts 1.1 import org.kde.plasma.components 2.0 as PlasmaComponents import org.kde.plasma.core 2.0 as PlasmaCore import QtWebEngine 1.1 import org.kde.plasma.private.dict 1.0 ColumnLayout { DictObject { id: dict selectedDictionary: plasmoid.configuration.dictionary onSearchInProgress: web.loadHtml(i18n("Looking up definition...")); onDefinitionFound: web.loadHtml(html); } RowLayout { Layout.fillWidth: true PlasmaComponents.TextField { id: input - placeholderText: i18n("Enter word to define here") + placeholderText: i18nc("@info:placeholder", "Enter word to define here") implicitWidth: units.gridUnit * 40 onAccepted: { if (input.text === "") { web.visible = false; } else { web.visible = true; dict.lookup(input.text); } } } PlasmaComponents.Button { iconSource: "configure" onClicked: plasmoid.action("configure").trigger(); } } WebEngineView { id: web visible: false Layout.fillWidth: true //Layout.fillHeight: true Layout.preferredHeight: 400 zoomFactor: units.devicePixelRatio profile: dict.webProfile } } diff --git a/applets/fifteenPuzzle/package/contents/ui/configAppearance.qml b/applets/fifteenPuzzle/package/contents/ui/configAppearance.qml index 2bbf860e7..e1f64ebb3 100644 --- a/applets/fifteenPuzzle/package/contents/ui/configAppearance.qml +++ b/applets/fifteenPuzzle/package/contents/ui/configAppearance.qml @@ -1,118 +1,118 @@ /* * Copyright 2013 Bhushan Shah * Copyright 2013 Sebastian Kügler * Copyright 2014 Kai Uwe Broulik * Copyright 2014 Jeremy Whiting * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see */ import QtQuick 2.0 import QtQuick.Controls 1.2 as QtControls import QtQuick.Layouts 1.0 as QtLayouts import QtQuick.Dialogs 1.2 as QtDialogs import org.kde.kquickcontrols 2.0 as KQC QtLayouts.ColumnLayout { id: appearancePage property alias cfg_boardSize: sizeSpinBox.value property alias cfg_boardColor: pieceColorPicker.color property alias cfg_numberColor: numberColorPicker.color property alias cfg_showNumerals: showNumeralsCheckBox.checked property alias cfg_useImage: useImageCheckBox.checked property alias cfg_imagePath: imagePathTextField.text QtLayouts.GridLayout { columns: 2 QtControls.Label { text: i18nc("@label:spinbox", "Size:") QtLayouts.Layout.alignment: Qt.AlignRight } QtControls.SpinBox { id: sizeSpinBox } QtControls.Label { text: i18nc("@label:chooser", "Piece color:") QtLayouts.Layout.alignment: Qt.AlignRight } KQC.ColorButton { id: pieceColorPicker } QtControls.Label { text: i18nc("@label:chooser", "Number color:") QtLayouts.Layout.alignment: Qt.AlignRight } KQC.ColorButton { id: numberColorPicker } QtControls.CheckBox { id: useImageCheckBox text: i18nc("@option:check", "Use custom image") QtLayouts.Layout.alignment: Qt.AlignRight } QtLayouts.RowLayout { QtControls.TextField { id: imagePathTextField QtLayouts.Layout.fillWidth: true - placeholderText: i18n("Path to custom image") + placeholderText: i18nc("@info:placeholder", "Path to custom image") onTextChanged: useImageCheckBox.checked = true } QtControls.Button { iconName: "document-open" tooltip: i18nc("@info:tooltip", "Browse...") onClicked: imagePicker.open() QtDialogs.FileDialog { id: imagePicker title: i18nc("@title:window", "Choose an Image") folder: shortcuts.pictures // TODO ask QImageReader for supported formats nameFilters: [ i18n("Image Files (*.png *.jpg *.jpeg *.bmp *.svg *.svgz)") ] onFileUrlChanged: { imagePathTextField.text = fileUrl.toString().replace("file://", "") } } } } QtControls.CheckBox { id: showNumeralsCheckBox QtLayouts.Layout.columnSpan: 2 text: i18nc("@option:check", "Show numerals") } } Item { // tighten layout QtLayouts.Layout.fillHeight: true } } diff --git a/applets/quicklaunch/package/contents/ui/ConfigGeneral.qml b/applets/quicklaunch/package/contents/ui/ConfigGeneral.qml index 534a67cfb..73baeb2a2 100644 --- a/applets/quicklaunch/package/contents/ui/ConfigGeneral.qml +++ b/applets/quicklaunch/package/contents/ui/ConfigGeneral.qml @@ -1,107 +1,107 @@ /* * Copyright 2015 David Rosca * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License or (at your option) version 3 or any later version * accepted by the membership of KDE e.V. (or its successor approved * by the membership of KDE e.V.), which shall act as a proxy * defined in Section 14 of version 3 of the license. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see */ import QtQuick 2.0 import QtQuick.Layouts 1.0 import QtQuick.Controls 1.0 import org.kde.plasma.core 2.0 as PlasmaCore ColumnLayout { property bool vertical: plasmoid.formFactor == PlasmaCore.Types.Vertical || (plasmoid.formFactor == PlasmaCore.Types.Planar && plasmoid.height > plasmoid.width) property alias cfg_maxSectionCount: maxSectionCount.value property alias cfg_showLauncherNames: showLauncherNames.checked property alias cfg_enablePopup: enablePopup.checked property alias cfg_title: title.text GroupBox { Layout.fillWidth: true flat: true title: i18nc("@title:group", "Arrangement") RowLayout { Label { text: vertical ? i18nc("@label:spinbox", "Maximum columns:") : i18nc("@label:spinbox", "Maximum rows:") } SpinBox { id: maxSectionCount minimumValue: 1 } } } GroupBox { Layout.fillWidth: true flat: true title: i18nc("@title:group", "Appearance") ColumnLayout { CheckBox { id: showLauncherNames text: i18nc("@option:check", "Show launcher names") } CheckBox { id: enablePopup text: i18nc("@option:check", "Enable popup") } } } GroupBox { Layout.fillWidth: true flat: true title: i18nc("@title:group", "Title") visible: plasmoid.formFactor == PlasmaCore.Types.Planar RowLayout { anchors.fill: parent CheckBox { id: showTitle checked: title.activeFocus || title.length text: i18nc("@option:check", "Show title") onClicked: { if (checked) { title.forceActiveFocus(); } else { title.text = ""; } } } TextField { id: title Layout.fillWidth: true enabled: showTitle.checked - placeholderText: i18n("Enter title") + placeholderText: i18nc("@info:placeholder", "Enter title") } } } Item { // tighten layout Layout.fillHeight: true } }