ui: project settings fix

* fixed open folder dialog in project settings.
* changed foreign key relation of component_access from the element to the edge table.
This commit is contained in:
malte_langkabel
2015-09-17 16:48:05 +02:00
parent 0c7624a5ef
commit e9d45a507a
3 changed files with 4 additions and 3 deletions
@@ -52,6 +52,9 @@ void QtListItemWidget::handleButtonPress()
{
QFileDialog dialog(this);
QListView *l = dialog.findChild<QListView*>("listView");
dialog.setFileMode(QFileDialog::Directory);
if (l)
{
l->setSelectionMode(QAbstractItemView::SingleSelection);
@@ -24,7 +24,6 @@ QtTextLine::QtTextLine(QWidget *parent)
m_data = new QtLineEdit(this);
m_data->setAttribute(Qt::WA_MacShowFocusRect, 0);
m_data->setObjectName("locationField");
m_data->setReadOnly(true);
m_button = new QPushButton("...");
m_button->setObjectName("moreButton");
@@ -33,7 +32,6 @@ QtTextLine::QtTextLine(QWidget *parent)
layout->addWidget(m_button);
connect(m_button, SIGNAL(clicked()), this, SLOT(handleButtonPress()));
connect(m_data, SIGNAL(focus()), this, SLOT(handleButtonPress()));
}
QString QtTextLine::getText()
+1 -1
View File
@@ -707,7 +707,7 @@ void SqliteStorage::setupTables()
"edge_id INTEGER, "
"type INTEGER NOT NULL, "
"PRIMARY KEY(id), "
"FOREIGN KEY(edge_id) REFERENCES element(id) ON DELETE CASCADE);"
"FOREIGN KEY(edge_id) REFERENCES edge(id) ON DELETE CASCADE);"
);
}