How to sort TableModel QML Type

2020-10-17 Thread chiasa.men
Is there a way to sort a TableModel without relying on c++ code?

Re: How is that border color defined? (system color schemes)

2020-10-14 Thread chiasa.men
On Mittwoch, 14. Oktober 2020 08:13:43 CEST Noah Davis wrote: > KColorUtils::mix( palette.color( QPalette::Window ), palette.color( > QPalette::WindowText ), 0.25 ) > > On Tue, Oct 13, 2020 at 2:25 PM chiasa.men wrote: > > https://pasteboard.co/JvupDV3.png > > > >

How is that border color defined? (system color schemes)

2020-10-13 Thread chiasa.men
https://pasteboard.co/JvupDV3.png Per trial and error I assumed the line (border of list view (vertical right under the cursor)) color: #bcbebf is defined by a combination of Window Text and Window Background (at least it changes if one of the colors is changed) - but how is it determined exactly?

TableView (QtQuick 2) with alternating row colors (DelegateChooser)

2020-10-13 Thread chiasa.men
// code import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick 2.12 import QtQuick.Controls 2.5 import Qt.labs.qmlmodels 1.0 ApplicationWindow { width: 400 height: 400 visible: true TableView { anchors.fill: parent columnSpacing: 1 rowSpacing: 1

IconDialog customLocation

2020-10-08 Thread chiasa.men
My plasmoid provides icons. I want to use an IconPicker so that the user can decide which icon to use. Therefore Im using the following snippet: import org.kde.kquickcontrolsaddons 2.0 as KQuickAddons ... KQuickAddons.IconDialog { id: iconDialog onIconNameChanged: {