Commit 32647e0b authored by Artyom Kirnev's avatar Artyom Kirnev
Browse files

little fixes

parent 48e43ae5
......@@ -370,14 +370,17 @@ void SchemaWidget::pasteStatementIntoActiveView(const QString &statement)
kv->insertText(statement);
kv->setFocus();
}
void SchemaWidget::executeStatement(const QString &statement)
void SchemaWidget::executeStatement(QSqlDriver::StatementType statementType)
{
const QString statement = generateStatement(statementType);
if (statement.length()) {
executeStatement(statement);
}
m_manager->runQuery(statement, m_connectionName);
}
void SchemaWidget::executeSelect()
{
const QString select = generateStatement(QSqlDriver::SelectStatement);
executeStatement(select);
executeStatement(QSqlDriver::SelectStatement);
}
void SchemaWidget::generateAndPasteStatement(QSqlDriver::StatementType statementType)
......
......@@ -48,7 +48,7 @@ public Q_SLOTS:
QString generateStatement(QSqlDriver::StatementType statementType);
static void pasteStatementIntoActiveView(const QString &statement);
void generateAndPasteStatement(QSqlDriver::StatementType statementType);
void executeStatement(const QString &statement);
void executeStatement(QSqlDriver::StatementType statement);
private Q_SLOTS:
void slotCustomContextMenuRequested(const QPoint &pos);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment