Skip to content

Commit

Permalink
Use qt components instead of plasma components in the config dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust committed Apr 17, 2016
1 parent 0332974 commit 83e47e9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
8 changes: 4 additions & 4 deletions package/contents/ui/config/AppMenuDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
* along with this program. If not, see <http: //www.gnu.org/licenses/>.
*/
import QtQuick 2.2
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.2
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras

Dialog {
id: appMenuDialog
Expand All @@ -41,7 +41,7 @@ Dialog {
id: appsModel
}

PlasmaExtras.ScrollArea {
ScrollView {
width: parent.width
height: 400

Expand Down Expand Up @@ -94,7 +94,7 @@ Dialog {
}
}

PlasmaComponents.Label {
Label {
text: appsSource.data[desktop].name
height: parent.height
verticalAlignment: Text.AlignVCenter
Expand All @@ -112,7 +112,7 @@ Dialog {
anchors.fill: parent
color: theme.complementaryBackgroundColor

PlasmaComponents.Label {
Label {
x: units.smallSpacing
y: 0
width: parent.width - 2*units.smallSpacing
Expand Down
26 changes: 15 additions & 11 deletions package/contents/ui/config/ConfigGeneral.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.plasma.extras 2.0 as PlasmaExtras

Item {
Expand All @@ -37,15 +36,15 @@ Item {
GridLayout {
columns: 2

PlasmaComponents.Label {
Label {
text: i18n('Title:')
}

TextField {
id: title
}

PlasmaComponents.Label {
Label {
text: i18n('Icon:')
}

Expand All @@ -54,8 +53,8 @@ Item {
id: icon
}

PlasmaComponents.Button {
iconSource: 'folder'
Button {
iconName: 'folder'
onClicked: {
iconDialog.open()
}
Expand All @@ -70,9 +69,14 @@ Item {
Rectangle {
width: 200
height: 200
color: theme.viewBackgroundColor
border {
width: 1
color: "lightgrey"
}
radius: 2
color: "#20FFFFFF"

PlasmaExtras.ScrollArea {
ScrollView {
anchors.fill: parent

ListView {
Expand Down Expand Up @@ -118,7 +122,7 @@ Item {
}
}

PlasmaComponents.Label {
Label {
text: appsSource.data[modelData].name
height: parent.height
verticalAlignment: Text.AlignVCenter
Expand Down Expand Up @@ -250,18 +254,18 @@ Item {
}
}

PlasmaComponents.Button {
Button {
id: addAppButton
anchors.right: parent.right
text: i18n('Add application')
iconSource: 'list-add'
iconName: 'list-add'
onClicked: {
appMenuDialog.open()
}
}
}

PlasmaComponents.Label {
Label {
text: i18n('Widget width:')
}

Expand Down

0 comments on commit 83e47e9

Please sign in to comment.