mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-25 16:07:19 +00:00
Merge branch 'master' of github.com:arcan1s/awesome-widgets
This commit is contained in:
commit
daa362fc16
@ -8,7 +8,7 @@ ProjectRootRelative=./
|
|||||||
|
|
||||||
[CMake][CMake Build Directory 0]
|
[CMake][CMake Build Directory 0]
|
||||||
Build Directory Path=file:///home/arcanis/Documents/github/awesome-widgets/build
|
Build Directory Path=file:///home/arcanis/Documents/github/awesome-widgets/build
|
||||||
Build Type=Release
|
Build Type=Debug
|
||||||
CMake Binary=file:///usr/bin/cmake
|
CMake Binary=file:///usr/bin/cmake
|
||||||
Environment Profile=
|
Environment Profile=
|
||||||
Extra Arguments=
|
Extra Arguments=
|
||||||
|
@ -14,6 +14,12 @@
|
|||||||
|
|
||||||
<group name="Advanced">
|
<group name="Advanced">
|
||||||
<!-- advanced -->
|
<!-- advanced -->
|
||||||
|
<entry name="height" type="int">
|
||||||
|
<default>0</default>
|
||||||
|
</entry>
|
||||||
|
<entry name="width" type="int">
|
||||||
|
<default>0</default>
|
||||||
|
</entry>
|
||||||
<entry name="tooltipType" type="string">
|
<entry name="tooltipType" type="string">
|
||||||
<default>windows</default>
|
<default>windows</default>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -34,7 +34,7 @@ Item {
|
|||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: pageColumn
|
id: pageColumn
|
||||||
width: units.gridUnit * 25
|
anchors.fill: parent
|
||||||
QtControls.TabView {
|
QtControls.TabView {
|
||||||
height: parent.height
|
height: parent.height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -48,8 +48,7 @@ Item {
|
|||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: pageColumn
|
id: pageColumn
|
||||||
width: units.gridUnit * 25
|
anchors.fill: parent
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
height: implicitHeight
|
height: implicitHeight
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -32,6 +32,8 @@ Item {
|
|||||||
|
|
||||||
property bool debug: DPAdds.isDebugEnabled()
|
property bool debug: DPAdds.isDebugEnabled()
|
||||||
|
|
||||||
|
property alias cfg_height: widgetHeight.value
|
||||||
|
property alias cfg_width: widgetWidth.value
|
||||||
property string cfg_tooltipType: tooltipType.currentText
|
property string cfg_tooltipType: tooltipType.currentText
|
||||||
property alias cfg_tooltipWidth: tooltipWidth.value
|
property alias cfg_tooltipWidth: tooltipWidth.value
|
||||||
property alias cfg_tooltipColor: tooltipColor.text
|
property alias cfg_tooltipColor: tooltipColor.text
|
||||||
@ -42,7 +44,47 @@ Item {
|
|||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: pageColumn
|
id: pageColumn
|
||||||
width: units.gridUnit * 25
|
anchors.fill: parent
|
||||||
|
Row {
|
||||||
|
height: implicitHeight
|
||||||
|
width: parent.width
|
||||||
|
QtControls.Label {
|
||||||
|
height: parent.height
|
||||||
|
width: parent.width * 2 / 5
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
text: i18n("Widget height, px")
|
||||||
|
}
|
||||||
|
QtControls.SpinBox {
|
||||||
|
id: widgetHeight
|
||||||
|
width: parent.width * 3 / 5
|
||||||
|
minimumValue: 0
|
||||||
|
maximumValue: 4096
|
||||||
|
stepSize: 50
|
||||||
|
value: plasmoid.configuration.height
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Row {
|
||||||
|
height: implicitHeight
|
||||||
|
width: parent.width
|
||||||
|
QtControls.Label {
|
||||||
|
height: parent.height
|
||||||
|
width: parent.width * 2 / 5
|
||||||
|
horizontalAlignment: Text.AlignRight
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
text: i18n("Widget width, px")
|
||||||
|
}
|
||||||
|
QtControls.SpinBox {
|
||||||
|
id: widgetWidth
|
||||||
|
width: parent.width * 3 / 5
|
||||||
|
minimumValue: 0
|
||||||
|
maximumValue: 4096
|
||||||
|
stepSize: 50
|
||||||
|
value: plasmoid.configuration.width
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
height: implicitHeight
|
height: implicitHeight
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -48,7 +48,7 @@ Item {
|
|||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: pageColumn
|
id: pageColumn
|
||||||
width: units.gridUnit * 25
|
anchors.fill: parent
|
||||||
Row {
|
Row {
|
||||||
height: implicitHeight
|
height: implicitHeight
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
@ -50,13 +50,14 @@ Item {
|
|||||||
|
|
||||||
// ui
|
// ui
|
||||||
Grid {
|
Grid {
|
||||||
|
anchors.fill: parent
|
||||||
|
horizontalItemAlignment: Grid.AlignHCenter
|
||||||
|
verticalItemAlignment: Grid.AlignVCenter
|
||||||
columns: plasmoid.configuration.verticalLayout ? 1 : DPAdds.numberOfDesktops()
|
columns: plasmoid.configuration.verticalLayout ? 1 : DPAdds.numberOfDesktops()
|
||||||
rows: plasmoid.configuration.verticalLayout ? DPAdds.numberOfDesktops() : 1
|
rows: plasmoid.configuration.verticalLayout ? DPAdds.numberOfDesktops() : 1
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
id: repeater
|
id: repeater
|
||||||
height: implicitHeight
|
|
||||||
width: implicitWidth
|
|
||||||
model: DPAdds.numberOfDesktops()
|
model: DPAdds.numberOfDesktops()
|
||||||
Text {
|
Text {
|
||||||
id: text
|
id: text
|
||||||
@ -123,8 +124,8 @@ Item {
|
|||||||
repeater.itemAt(i).font.weight = general.fontWeight[plasmoid.configuration.fontWeight]
|
repeater.itemAt(i).font.weight = general.fontWeight[plasmoid.configuration.fontWeight]
|
||||||
}
|
}
|
||||||
repeater.itemAt(i).update()
|
repeater.itemAt(i).update()
|
||||||
newHeight += repeater.itemAt(i).contentHeight
|
newHeight += plasmoid.configuration.height == 0 ? repeater.itemAt(i).contentHeight : plasmoid.configuration.height / repeater.count
|
||||||
newWidth += repeater.itemAt(i).contentWidth
|
newWidth += plasmoid.configuration.width == 0 ? repeater.itemAt(i).contentWidth : plasmoid.configuration.width / repeater.count
|
||||||
}
|
}
|
||||||
Layout.minimumHeight = newHeight
|
Layout.minimumHeight = newHeight
|
||||||
Layout.minimumWidth = newWidth
|
Layout.minimumWidth = newWidth
|
||||||
|
@ -35,7 +35,7 @@ Item {
|
|||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: pageColumn
|
id: pageColumn
|
||||||
width: units.gridUnit * 25
|
anchors.fill: parent
|
||||||
QtControls.Label {
|
QtControls.Label {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
@ -220,6 +220,7 @@ Item {
|
|||||||
QtControls.TextArea {
|
QtControls.TextArea {
|
||||||
id: textPattern
|
id: textPattern
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
height: parent.height * 4 / 5
|
||||||
textFormat: TextEdit.PlainText
|
textFormat: TextEdit.PlainText
|
||||||
text: plasmoid.configuration.text
|
text: plasmoid.configuration.text
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user