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();
}
@@ -23,7 +23,7 @@ public:
void load();
protected:
virtual void populateForm(QFormLayout* layout);
virtual void populateForm(QFormLayout* layout) override;
private slots:
void handleCancelButtonPress();
@@ -58,6 +58,7 @@ void QtTextLine::handleButtonPress()
QtProjectSetupScreen::QtProjectSetupScreen(QWidget *parent)
: QtSettingsWindow(parent)
, m_frameworkPaths(nullptr)
{
raise();
}
+1 -1
View File
@@ -44,7 +44,7 @@ public:
void loadProjectSettings();
protected:
virtual void populateForm(QFormLayout* layout);
virtual void populateForm(QFormLayout* layout) override;
private slots:
void handleCancelButtonPress();
+1 -1
View File
@@ -180,4 +180,4 @@ void QtSettingsWindow::updateDoneButton(QString text)
{
m_doneButton->setText(text);
}
}
}