52 lines
909 B
QML
52 lines
909 B
QML
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
import org.kde.plasma.plasmoid 2.0
|
|
|
|
Item {
|
|
id: fullRep
|
|
|
|
anchors.fill: parent
|
|
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
|
|
ScrollView {
|
|
id: view
|
|
width: parent.width
|
|
height: (parent.width < parent.height ? parent.width : parent.height) * 0.9
|
|
|
|
TextArea {
|
|
width: parent.width
|
|
height: (parent.width < parent.height ? parent.width : parent.height) * 0.9
|
|
text: root.listOfPackages
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
RowLayout {
|
|
id: buttonRow
|
|
|
|
anchors {
|
|
bottom: parent.bottom
|
|
horizontalCenter: parent.horizontalCenter
|
|
}
|
|
|
|
Button {
|
|
text: i18n("Check updates")
|
|
onClicked: updater.checkUpdates()
|
|
}
|
|
|
|
Button {
|
|
text: i18n("Install updates")
|
|
onClicked: updater.upgrade()
|
|
}
|
|
}
|
|
|
|
}
|