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:
@@ -52,6 +52,9 @@ void QtListItemWidget::handleButtonPress()
|
|||||||
{
|
{
|
||||||
QFileDialog dialog(this);
|
QFileDialog dialog(this);
|
||||||
QListView *l = dialog.findChild<QListView*>("listView");
|
QListView *l = dialog.findChild<QListView*>("listView");
|
||||||
|
|
||||||
|
dialog.setFileMode(QFileDialog::Directory);
|
||||||
|
|
||||||
if (l)
|
if (l)
|
||||||
{
|
{
|
||||||
l->setSelectionMode(QAbstractItemView::SingleSelection);
|
l->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ QtTextLine::QtTextLine(QWidget *parent)
|
|||||||
m_data = new QtLineEdit(this);
|
m_data = new QtLineEdit(this);
|
||||||
m_data->setAttribute(Qt::WA_MacShowFocusRect, 0);
|
m_data->setAttribute(Qt::WA_MacShowFocusRect, 0);
|
||||||
m_data->setObjectName("locationField");
|
m_data->setObjectName("locationField");
|
||||||
m_data->setReadOnly(true);
|
|
||||||
|
|
||||||
m_button = new QPushButton("...");
|
m_button = new QPushButton("...");
|
||||||
m_button->setObjectName("moreButton");
|
m_button->setObjectName("moreButton");
|
||||||
@@ -33,7 +32,6 @@ QtTextLine::QtTextLine(QWidget *parent)
|
|||||||
layout->addWidget(m_button);
|
layout->addWidget(m_button);
|
||||||
|
|
||||||
connect(m_button, SIGNAL(clicked()), this, SLOT(handleButtonPress()));
|
connect(m_button, SIGNAL(clicked()), this, SLOT(handleButtonPress()));
|
||||||
connect(m_data, SIGNAL(focus()), this, SLOT(handleButtonPress()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString QtTextLine::getText()
|
QString QtTextLine::getText()
|
||||||
|
|||||||
@@ -707,7 +707,7 @@ void SqliteStorage::setupTables()
|
|||||||
"edge_id INTEGER, "
|
"edge_id INTEGER, "
|
||||||
"type INTEGER NOT NULL, "
|
"type INTEGER NOT NULL, "
|
||||||
"PRIMARY KEY(id), "
|
"PRIMARY KEY(id), "
|
||||||
"FOREIGN KEY(edge_id) REFERENCES element(id) ON DELETE CASCADE);"
|
"FOREIGN KEY(edge_id) REFERENCES edge(id) ON DELETE CASCADE);"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user