Added paste lang option for pasting programming code.
Expects you to paste only string literals with possible concatenation operators like . or +
This commit is contained in:
parent
35d1e75d35
commit
fbd630489e
8 changed files with 302 additions and 2 deletions
|
|
@ -559,6 +559,13 @@ void QueryTool::copyQueryAsRawCppString()
|
|||
QApplication::clipboard()->setText(cs);
|
||||
}
|
||||
|
||||
void QueryTool::pasteLangString()
|
||||
{
|
||||
QString s = QApplication::clipboard()->text();
|
||||
s = ConvertLangToSqlString(s);
|
||||
ui->queryEdit->insertPlainText(s);
|
||||
}
|
||||
|
||||
void QueryTool::generateCode()
|
||||
{
|
||||
QString command = getCommand();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue