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:
arcan1s
2015-05-13 00:02:48 +03:00
parent f665a46346
commit e26da85b5f
13 changed files with 31 additions and 30 deletions

View File

@ -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: {