From 34d85e4afc8ec7ac4e5d50fb481eb923b72f3929 Mon Sep 17 00:00:00 2001 From: Withalion Date: Sat, 1 Mar 2025 15:42:34 +0100 Subject: [PATCH] Add new icons for line tool --- images/images.qrc | 2 + .../themes/default/mActionSelectAboveLine.svg | 59 ++++++++++++++++++ .../themes/default/mActionSelectBelowLine.svg | 60 +++++++++++++++++++ src/app/3d/qgs3dmapcanvaswidget.cpp | 4 +- 4 files changed, 123 insertions(+), 2 deletions(-) create mode 100644 images/themes/default/mActionSelectAboveLine.svg create mode 100644 images/themes/default/mActionSelectBelowLine.svg diff --git a/images/images.qrc b/images/images.qrc index 24bb0f5eb87a..7a3a27776e38 100644 --- a/images/images.qrc +++ b/images/images.qrc @@ -413,6 +413,8 @@ themes/default/mActionScaleFeature.svg themes/default/mActionScriptOpen.svg themes/default/mActionSelect.svg + themes/default/mActionSelectAboveLine.svg + themes/default/mActionSelectBelowLine.svg themes/default/mActionSelectAll.svg themes/default/mActionSelectedToTop.svg themes/default/mActionSelectFreehand.svg diff --git a/images/themes/default/mActionSelectAboveLine.svg b/images/themes/default/mActionSelectAboveLine.svg new file mode 100644 index 000000000000..02dd0591ad6d --- /dev/null +++ b/images/themes/default/mActionSelectAboveLine.svg @@ -0,0 +1,59 @@ + + + + + + + + + + + diff --git a/images/themes/default/mActionSelectBelowLine.svg b/images/themes/default/mActionSelectBelowLine.svg new file mode 100644 index 000000000000..7e0c765e88a8 --- /dev/null +++ b/images/themes/default/mActionSelectBelowLine.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + diff --git a/src/app/3d/qgs3dmapcanvaswidget.cpp b/src/app/3d/qgs3dmapcanvaswidget.cpp index 7f5ebbb4295d..d4a5dbcd8e85 100644 --- a/src/app/3d/qgs3dmapcanvaswidget.cpp +++ b/src/app/3d/qgs3dmapcanvaswidget.cpp @@ -103,8 +103,8 @@ Qgs3DMapCanvasWidget::Qgs3DMapCanvasWidget( const QString &name, bool isDocked ) editingToolsButton->setPopupMode( QToolButton::ToolButtonPopupMode::InstantPopup ); QAction *actionPointCloudChangeAttributeTool = mEditingToolsMenu->addAction( QIcon( QgsApplication::iconPath( QStringLiteral( "mActionSelectPolygon.svg" ) ) ), tr( "Polygon selector" ), this, &Qgs3DMapCanvasWidget::polygonTool ); QAction *actionPaintBrush = mEditingToolsMenu->addAction( QIcon( QgsApplication::iconPath( QStringLiteral( "propertyicons/rendering.svg" ) ) ), tr( "Paint Brush Selector" ), this, &Qgs3DMapCanvasWidget::paintBrush ); - QAction *actionAboveLineTool = mEditingToolsMenu->addAction( QIcon( QgsApplication::iconPath( QStringLiteral( "mActionArrowUp.svg" ) ) ), tr( "Above Line Selector" ), this, &Qgs3DMapCanvasWidget::aboveLineTool ); - QAction *actionBelowLineTool = mEditingToolsMenu->addAction( QIcon( QgsApplication::iconPath( QStringLiteral( "mActionArrowDown.svg" ) ) ), tr( "Below Line Selector" ), this, &Qgs3DMapCanvasWidget::belowLineTool ); + QAction *actionAboveLineTool = mEditingToolsMenu->addAction( QIcon( QgsApplication::iconPath( QStringLiteral( "mActionSelectAboveLine.svg" ) ) ), tr( "Above Line Selector" ), this, &Qgs3DMapCanvasWidget::aboveLineTool ); + QAction *actionBelowLineTool = mEditingToolsMenu->addAction( QIcon( QgsApplication::iconPath( QStringLiteral( "mActionSelectBelowLine.svg" ) ) ), tr( "Below Line Selector" ), this, &Qgs3DMapCanvasWidget::belowLineTool ); mEditingToolBar->addWidget( mPointCloudEditingToolbar ); mPointCloudEditingToolbar->addWidget( new QLabel( tr( "Attribute" ) ) );