Review Request 124635: WIP: Add QmlConfigPage class
Kevin Funk
kfunk at kde.org
Thu Aug 6 06:01:33 UTC 2015
> On Aug. 5, 2015, 10:28 p.m., Sven Brauch wrote:
> > Very nice idea, when I finally manage to get kdev-python working again at all I'll try porting its config pages to this, I'd be very happy to get rid of all the boilerplate code.
A Problem here is that we don't have QML replacements for useful widgets such as KUrlRequester (auto-completed line edit + button for selecting URLs). I don't know if Plasma Components offer something like this. Maybe Aleix knows?
> On Aug. 5, 2015, 10:28 p.m., Sven Brauch wrote:
> > util/qmlconfigpage.cpp, line 88
> > <https://git.reviewboard.kde.org/r/124635/diff/1/?file=390511#file390511line88>
> >
> > i18n?
It's a message for developers, the user should never see this.
- Kevin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124635/#review83470
-----------------------------------------------------------
On Aug. 5, 2015, 9:58 p.m., Kevin Funk wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124635/
> -----------------------------------------------------------
>
> (Updated Aug. 5, 2015, 9:58 p.m.)
>
>
> Review request for KDevelop.
>
>
> Repository: kdevplatform
>
>
> Description
> -------
>
> WIP: Add QmlConfigPage class
>
>
> Diffs
> -----
>
> util/qmlconfigpage.cpp PRE-CREATION
> util/qmlconfigpage.h PRE-CREATION
> util/CMakeLists.txt 6ce19e0ce73ce60ea77b7cbd47962423aa805fa7
>
> Diff: https://git.reviewboard.kde.org/r/124635/diff/
>
>
> Testing
> -------
>
> Example implementation of the JSHint preferences page:
>
> ```
> import QtQuick 2.2
> import QtQuick.Controls 1.2
> import QtQuick.Layouts 1.0
>
> import org.kde.plasma.core 2.0 as PlasmaCore
>
> Rectangle {
> id: root
>
> readonly property string name: i18n("JSHint Config")
>
> property alias cfg_JSHintPath: jshintPath.text
>
> SystemPalette { id: sysPalette }
>
> color: sysPalette.window
>
> GroupBox {
> width: parent.width
> title: i18n("Paths")
>
> GridLayout {
> id: gridLayout
>
> anchors.fill: parent
> columns: 2
>
> Label { text: i18n("JSHint Executable:") }
> TextField { id: jshintPath; Layout.fillWidth: true}
> }
> }
> }
> ```
>
> Comments welcome.
>
>
> Thanks,
>
> Kevin Funk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20150806/067a2181/attachment.html>
More information about the KDevelop-devel
mailing list