Skip to content

Commit

Permalink
plugin: fix listview width
Browse files Browse the repository at this point in the history
  • Loading branch information
catsout committed Oct 21, 2021
1 parent 70a8647 commit 7bacb69
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions plugin/contents/ui/Common.qml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ QtObject {
return checklib('QtWebSockets 1.0', parentItem)
}

function checklib_webchannel(parentItem) {
return checklib('QtWebChannel 1.10', parentItem)
}


function cbCurrentValue(combo) {
return combo.model[combo.currentIndex].value;
}
Expand Down
14 changes: 11 additions & 3 deletions plugin/contents/ui/config.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ ColumnLayout {
property var libcheck: ({
wallpaper: Common.checklib_wallpaper(root),
folderlist: Common.checklib_folderlist(root),
qtwebsockets: Common.checklib_websockets(root)
qtwebsockets: Common.checklib_websockets(root),
qtwebchannel: Common.checklib_webchannel(root)
})
property var pyext: {
if(!libcheck.qtwebsockets) {
Expand Down Expand Up @@ -513,7 +514,7 @@ ColumnLayout {
visible: libcheck.wallpaper
}
TextEdit {
Layout.preferredWidth: aboutTab.width * 0.5
Layout.preferredWidth: aboutTab.width * 0.6
text: `
<p>Some scene wallpapers may crash your kde</p>
<p>Remove <i>WallpaperFilePath</i> line in <b>~/.config/plasma-org.kde.plasma.desktop-appletsrc</b></p>
Expand All @@ -530,7 +531,10 @@ ColumnLayout {
text: "lib check: "
}
ListView {
height: 100
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
width: font.pixelSize * 20
height: (contentItem.childrenRect.height+spacing) * modelraw.length
clip: true
spacing: 3
model: ListModel {}
property var modelraw: {
Expand All @@ -543,6 +547,10 @@ ColumnLayout {
ok: libcheck.folderlist,
name: "qt-lab-folderlist"
},
{
ok: libcheck.qtwebchannel,
name: "qtwebchannel (qml)"
},
{
ok: libcheck.qtwebsockets,
name: "qtwebsockets (qml)"
Expand Down

0 comments on commit 7bacb69

Please sign in to comment.