mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-21 09:39:58 +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:
@ -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: {
|
||||
|
Reference in New Issue
Block a user