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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user