Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
32647e0b
Commit
32647e0b
authored
Nov 28, 2021
by
Artyom Kirnev
Browse files
little fixes
parent
48e43ae5
Changes
2
Hide whitespace changes
Inline
Side-by-side
addons/katesql/schemawidget.cpp
View file @
32647e0b
...
...
@@ -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
statement
Type
)
{
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
)
...
...
addons/katesql/schemawidget.h
View file @
32647e0b
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment