build: Linux Package Reworked
New Linux Package, data folder moved to where the user have the rights to edit.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public:
|
||||
void loadProjectSettings();
|
||||
|
||||
protected:
|
||||
virtual void populateForm(QFormLayout* layout);
|
||||
virtual void populateForm(QFormLayout* layout) override;
|
||||
|
||||
private slots:
|
||||
void handleCancelButtonPress();
|
||||
|
||||
@@ -180,4 +180,4 @@ void QtSettingsWindow::updateDoneButton(QString text)
|
||||
{
|
||||
m_doneButton->setText(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user