logic: Directory list box now restricts the user to select files, directories or both if required

* split QtDirectoryListBox and QtStringListBox
* renamed QtDirectoryListBox to QtPathListBox
* extracted QtListItemWidget class to own file
* renamed QtListItemWidget to QtListBoxItem
* added SelectionPolicyType to QtPathListBox to allow for specifying if selecting files, directories or both should be allowed.
This commit is contained in:
mlangkabel
2018-03-30 18:25:58 +02:00
parent af1657f7e5
commit 3ffe76d161
26 changed files with 884 additions and 619 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
font-size: 12px;
}
QtDirectoryListBox {
QtListBox {
background-color: white;
border: 1px solid lightgray;
border-radius: 12px;
@@ -23,7 +23,7 @@ QListWidget::item:selected {
background-color: #EEE;
}
QtListItemWidget #field {
QtListBoxItem #field {
background-color: transparent;
border: none;
color: black;
@@ -31,7 +31,7 @@ QtListItemWidget #field {
margin-left: 5px;
}
QtListItemWidget #field:disabled {
QtListBoxItem #field:disabled {
color: grey;
}