Skip to content

Instantly share code, notes, and snippets.

@Zren
Last active June 21, 2017 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zren/1d93dfb5e687e68732d470d26104bf6d to your computer and use it in GitHub Desktop.
Save Zren/1d93dfb5e687e68732d470d26104bf6d to your computer and use it in GitHub Desktop.
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, tried ("/home/chris/.local/share", "/usr/share/usr/share/xsessions/plasma", "/usr/local/share", "/usr/share", "/var/lib/snapd/desktop")
WARNING: Cannot find style "org.kde.desktop" - fallback: "/usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Styles/Desktop"
qml: cellHeight iconHeight 108
qml: cellWidth iconWidth 92
qml: cellHeight iconHeight 108
qml: cellWidth iconWidth 92
qml: availableColumns 2.608695652173913 = containerSize / cellSize 240 92
qml: availableColumns 2 floored
qml: allColumnSize 184
qml: extraSpace 56
qml: extraSpacing 28
qml: cellWidth extraWidth 28
qml: cellHeight iconHeight 108
qml: availableColumns 1.3888888888888888 = containerSize / cellSize 150 108
qml: availableColumns 1 floored
qml: allColumnSize 108
qml: extraSpace 42
qml: extraSpacing 42
qml: cellHeight extraHeight 42
qml: cellWidth iconWidth 92
qml: cellHeight iconHeight 108
qml: cellWidth iconWidth 92
qml: cellHeight iconHeight 108
qml: cellHeight iconHeight 108
qml: cellWidth iconWidth 92
qml: cellWidth iconWidth 92
qml: availableColumns 20.782608695652176 = containerSize / cellSize 1912 92
qml: availableColumns 20 floored
qml: allColumnSize 1840
qml: extraSpace 72
qml: extraSpacing 3.6
qml: cellWidth extraWidth 3.6
qml: cellHeight iconHeight 108
qml: cellWidth iconWidth 92
qml: availableColumns 20.869565217391305 = containerSize / cellSize 1920 92
qml: availableColumns 20 floored
qml: allColumnSize 1840
qml: extraSpace 80
qml: extraSpacing 4
qml: cellWidth extraWidth 4
qml: cellHeight iconHeight 108
qml: availableColumns 10 = containerSize / cellSize 1080 108
qml: availableColumns 10 floored
qml: allColumnSize 1080
qml: extraSpace 0
qml: extraSpacing 0
qml: cellHeight extraHeight 0
No metadata file in the package, expected it at: "/home/chris/Pictures/Wallpapers/"
No metadata file in the package, expected it at: "/home/chris/Pictures/Wallpapers/"
No metadata file in the package, expected it at: "/home/chris/Pictures/Wallpapers/"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
Notifications service registered
....
networkmanager-qt: virtual void NetworkManager::DevicePrivate::propertyChanged(const QString&, const QVariant&) Unhandled property "Real"
Both point size and pixel size set. Using pixel size.
qml: clearing connected sources, stop source was: killall redshift; redshift -x
qml: enabling redshift with command: redshift -l 50:7 -t 5000:4000 -b 1:1 -g 1:1:1 -r
qml: rootModel.refresh.star 1498063160132
KActivities: Database connection: "kactivities_db_resources_139872481265856_readonly"
query_only: QVariant(qlonglong, 1)
journal_mode: QVariant(QString, "wal")
wal_autocheckpoint: QVariant(qlonglong, 100)
synchronous: QVariant(qlonglong, 0)
Nothing to load - the client id is empty
qml: rootModel.refresh.done 1498063160189
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
file:///home/chris/.local/share/plasma/plasmoids/org.kde.desktopcontainment/contents/ui/FolderItemDelegate.qml:282:17: QML Text: Binding loop detected for property "width"
qml: timeLeft 0 1498063160638
qml: cellHeight iconHeight 108
qml: availableColumns 9.722222222222221 = containerSize / cellSize 1050 108
qml: availableColumns 9 floored
qml: allColumnSize 972
qml: extraSpace 78
qml: extraSpacing 8.666666666666666
qml: cellHeight extraHeight 8.666666666666666
QProcess: Destroyed while process ("/bin/sh") is still running.
qml: allAppsModel.refresh().star 1498063160826
qml: allAppsModel.refresh().done 1498063160896
trying to show an empty dialog
function calcExtraSpacing(cellSize, containerSize) {
var availableColumns = containerSize / cellSize;
console.log('\t', 'availableColumns', availableColumns, ' = containerSize / cellSize', containerSize, cellSize)
availableColumns = Math.floor(availableColumns);
console.log('\t', 'availableColumns', availableColumns, ' floored')
// var availableColumns = Math.floor(containerSize / cellSize);
var extraSpacing = 0;
if (availableColumns > 0) {
var allColumnSize = availableColumns * cellSize;
console.log('\t', 'allColumnSize', allColumnSize)
var extraSpace = Math.max(containerSize - allColumnSize); // TODO: Max() missing second arg (0?)
console.log('\t', 'extraSpace', extraSpace)
extraSpacing = extraSpace / availableColumns;
}
console.log('\t', 'extraSpacing', extraSpacing)
return extraSpacing;
}
// readonly property int iconWidth: {
// var val = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing)
// console.log('cellWidth', 'iconWidth', val)
// return val
// }
// readonly property real extraWidth: {
// var val = calcExtraSpacing(iconWidth, scrollArea.viewportWidth)
// console.log('cellWidth', 'extraWidth', val)
// return val
// }
cellWidth: {
if (root.useListViewMode) {
return gridView.width;
// } else if (root.isContainment && isRootView) {
// console.log('cellWidth is containment', 'iconWidth', iconWidth, 'extraWidth', extraWidth)
// return iconWidth + extraWidth;
// } else {
// console.log('cellWidth not containment', 'iconWidth', iconWidth)
// return iconWidth;
// }
} else {
var iconWidth = iconSize + (2 * units.largeSpacing) + (2 * units.smallSpacing);
console.log('cellWidth', 'iconWidth', iconWidth)
if (root.isContainment && isRootView && scrollArea.viewportWidth > 0) {
var extraWidth = calcExtraSpacing(iconWidth, scrollArea.viewportWidth);
console.log('cellWidth', 'extraWidth', extraWidth)
return iconWidth + extraWidth;
} else {
return iconWidth;
}
}
}
// readonly property int iconHeight: {
// var val = (iconSize + (theme.mSize(theme.defaultFont).height * plasmoid.configuration.textLines) + (6 * units.smallSpacing))
// console.log('cellHeight', 'iconHeight', val)
// return val
// }
// readonly property real extraHeight: {
// var val = calcExtraSpacing(iconHeight, scrollArea.viewportHeight)
// console.log('cellHeight', 'extraHeight', val)
// return val
// }
cellHeight: {
if (root.useListViewMode) {
return Math.ceil((Math.max(theme.mSize(theme.defaultFont).height, iconSize)
+ Math.max(highlightItemSvg.margins.top + highlightItemSvg.margins.bottom,
listItemSvg.margins.top + listItemSvg.margins.bottom)) / 2) * 2;
// } else if (root.isContainment && isRootView) {
// console.log('cellHeight is containment', 'iconHeight', iconHeight, 'extraHeight', extraHeight)
// return iconHeight + extraHeight;
// } else {
// console.log('cellHeight not containment', 'extraHeight', extraHeight)
// return iconHeight;
// }
} else {
var iconHeight = iconSize + (theme.mSize(theme.defaultFont).height * plasmoid.configuration.textLines) + (6 * units.smallSpacing);
console.log('cellHeight', 'iconHeight', iconHeight)
if (root.isContainment && isRootView && scrollArea.viewportHeight > 0) {
var extraHeight = calcExtraSpacing(iconHeight, scrollArea.viewportHeight);
console.log('cellHeight', 'extraHeight', extraHeight)
return iconHeight + extraHeight;
} else {
return iconHeight;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment