mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-15 06:45:49 +00:00
release 1.4.5
+ add translation support to plugin part * more correct interface painting * more correct configuration interface painting (fix #42) * move plugin from private
This commit is contained in:
@ -19,7 +19,7 @@ import QtQuick 2.0
|
||||
import QtQuick.Controls 1.3 as QtControls
|
||||
import QtQuick.Layouts 1.0 as QtLayouts
|
||||
|
||||
import org.kde.plasma.private.netctl 1.0
|
||||
import org.kde.plasma.netctl 1.0
|
||||
|
||||
|
||||
Item {
|
||||
@ -33,7 +33,7 @@ Item {
|
||||
|
||||
Column {
|
||||
id: pageColumn
|
||||
width: units.gridUnit * 25
|
||||
anchors.fill: parent
|
||||
QtControls.TabView {
|
||||
height: parent.height
|
||||
width: parent.width
|
||||
|
@ -21,7 +21,7 @@ import QtQuick.Controls.Styles 1.3 as QtStyles
|
||||
import QtQuick.Dialogs 1.1 as QtDialogs
|
||||
import QtQuick.Layouts 1.0 as QtLayouts
|
||||
|
||||
import org.kde.plasma.private.netctl 1.0
|
||||
import org.kde.plasma.netctl 1.0
|
||||
|
||||
|
||||
Item {
|
||||
@ -52,7 +52,7 @@ Item {
|
||||
|
||||
Column {
|
||||
id: pageColumn
|
||||
width: units.gridUnit * 25
|
||||
anchors.fill: parent
|
||||
Row {
|
||||
height: implicitHeight
|
||||
width: parent.width
|
||||
|
@ -21,7 +21,7 @@ import QtQuick.Dialogs 1.1 as QtDialogs
|
||||
import QtQuick.Layouts 1.0 as QtLayouts
|
||||
import QtQuick.Controls.Styles 1.3 as QtStyles
|
||||
|
||||
import org.kde.plasma.private.netctl 1.0
|
||||
import org.kde.plasma.netctl 1.0
|
||||
|
||||
|
||||
Item {
|
||||
@ -37,7 +37,7 @@ Item {
|
||||
|
||||
Column {
|
||||
id: pageColumn
|
||||
width: units.gridUnit * 25
|
||||
anchors.fill: parent
|
||||
Row {
|
||||
height: implicitHeight
|
||||
width: parent.width
|
||||
|
@ -17,11 +17,12 @@
|
||||
|
||||
import QtQuick 2.4
|
||||
import QtQuick.Controls 1.3 as QtControls
|
||||
import QtQuick.Layouts 1.1
|
||||
import org.kde.plasma.plasmoid 2.0
|
||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||
import org.kde.plasma.components 2.0 as PlasmaComponents
|
||||
|
||||
import org.kde.plasma.private.netctl 1.0
|
||||
import org.kde.plasma.netctl 1.0
|
||||
|
||||
|
||||
Item {
|
||||
@ -75,8 +76,8 @@ Item {
|
||||
}
|
||||
|
||||
// ui
|
||||
Grid {
|
||||
id: mainGrid
|
||||
GridLayout {
|
||||
anchors.fill: parent
|
||||
columns: 2
|
||||
|
||||
Image {
|
||||
@ -126,15 +127,6 @@ Item {
|
||||
text.text = NetctlAdds.parsePattern(plasmoid.configuration.textPattern)
|
||||
Plasmoid.toolTipSubText = NetctlAdds.valueByKey("info")
|
||||
needMenuUpdate()
|
||||
// updae geometry
|
||||
text.update()
|
||||
icon.height = text.contentHeight
|
||||
icon.width = text.contentHeight
|
||||
icon.update()
|
||||
height = text.contentHeight
|
||||
width = icon.paintedWidth + text.contentWidth
|
||||
update()
|
||||
|
||||
}
|
||||
|
||||
onNeedMenuUpdate: {
|
||||
|
@ -21,7 +21,7 @@ import QtQuick.Dialogs 1.1 as QtDialogs
|
||||
import QtQuick.Layouts 1.0 as QtLayouts
|
||||
import QtQuick.Controls.Styles 1.3 as QtStyles
|
||||
|
||||
import org.kde.plasma.private.netctl 1.0
|
||||
import org.kde.plasma.netctl 1.0
|
||||
|
||||
|
||||
Item {
|
||||
@ -48,7 +48,7 @@ Item {
|
||||
|
||||
Column {
|
||||
id: pageColumn
|
||||
width: units.gridUnit * 25
|
||||
anchors.fill: parent
|
||||
Row {
|
||||
height: implicitHeight
|
||||
width: parent.width
|
||||
|
Reference in New Issue
Block a user