mirror of
https://github.com/qgis/QGIS.git
synced 2025-07-04 00:02:42 -04:00
Compare commits
4 Commits
f9b8f1526e
...
092583ed3d
Author | SHA1 | Date | |
---|---|---|---|
|
092583ed3d | ||
|
b927df884f | ||
|
6fd32d92fd | ||
|
34ca57f391 |
@ -658,6 +658,9 @@ class Repositories(QObject):
|
|||||||
.text()
|
.text()
|
||||||
.strip()
|
.strip()
|
||||||
)
|
)
|
||||||
|
supports_qt6 = pluginNodes.item(i).firstChildElement(
|
||||||
|
"supports_qt6"
|
||||||
|
).text().strip().upper() in ["TRUE", "YES"]
|
||||||
if not qgisMaximumVersion:
|
if not qgisMaximumVersion:
|
||||||
if qgisMinimumVersion[0] == "3" and supports_qt6:
|
if qgisMinimumVersion[0] == "3" and supports_qt6:
|
||||||
qgisMaximumVersion = "4.99"
|
qgisMaximumVersion = "4.99"
|
||||||
|
@ -164,13 +164,13 @@ class DatabaseQueryRootNode : public DatabaseQueryHistoryNode
|
|||||||
{
|
{
|
||||||
if ( QgsDatabaseQueryHistoryWidget *queryHistoryWidget = qobject_cast< QgsDatabaseQueryHistoryWidget * >( context.historyWidget() ) )
|
if ( QgsDatabaseQueryHistoryWidget *queryHistoryWidget = qobject_cast< QgsDatabaseQueryHistoryWidget * >( context.historyWidget() ) )
|
||||||
{
|
{
|
||||||
QAction *executeAction = new QAction(
|
QAction *loadAction = new QAction(
|
||||||
QObject::tr( "Execute SQL Command…" ), menu
|
QObject::tr( "Load SQL Command…" ), menu
|
||||||
);
|
);
|
||||||
QObject::connect( executeAction, &QAction::triggered, menu, [this, queryHistoryWidget] {
|
QObject::connect( loadAction, &QAction::triggered, menu, [this, queryHistoryWidget] {
|
||||||
queryHistoryWidget->emitSqlTriggered( mEntry.entry.value( QStringLiteral( "connection" ) ).toString(), mEntry.entry.value( QStringLiteral( "provider" ) ).toString(), mEntry.entry.value( QStringLiteral( "query" ) ).toString() );
|
queryHistoryWidget->emitSqlTriggered( mEntry.entry.value( QStringLiteral( "connection" ) ).toString(), mEntry.entry.value( QStringLiteral( "provider" ) ).toString(), mEntry.entry.value( QStringLiteral( "query" ) ).toString() );
|
||||||
} );
|
} );
|
||||||
menu->addAction( executeAction );
|
menu->addAction( loadAction );
|
||||||
}
|
}
|
||||||
|
|
||||||
QAction *copyAction = new QAction(
|
QAction *copyAction = new QAction(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user