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
@@ -0,0 +1,14 @@
#include "qt/element/QtStringListBoxItem.h"
#include "qt/element/QtStringListBox.h"
QtStringListBoxItem::QtStringListBoxItem(QtStringListBox* listBox, QListWidgetItem* item, QWidget *parent)
: QtListBoxItem(item, parent)
, m_listBox(listBox)
{
}
QtListBox* QtStringListBoxItem::getListBox()
{
return m_listBox;
}