build: Linux Package Reworked

New Linux Package, data folder moved to where the user have the rights to edit.
This commit is contained in:
Andreas Stallinger
2015-09-07 10:27:34 +02:00
parent 1ba802dd9b
commit c8679dabbe
29 changed files with 51 additions and 56 deletions
+10 -1
View File
@@ -51,6 +51,16 @@ void QtListItemWidget::setFocus()
void QtListItemWidget::handleButtonPress()
{
QFileDialog dialog(this);
QListView *l = dialog.findChild<QListView*>("listView");
if (l)
{
l->setSelectionMode(QAbstractItemView::SingleSelection);
}
QTreeView *t = dialog.findChild<QTreeView*>();
if (t)
{
t->setSelectionMode(QAbstractItemView::SingleSelection);
}
if (dialog.exec())
{
QStringList list = dialog.selectedFiles();
@@ -59,7 +69,6 @@ void QtListItemWidget::handleButtonPress()
setText(list.at(i));
}
}
handleFocus();
}