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