4
4
#include < QObject>
5
5
#include < QDebug>
6
6
7
+ #include " qgsapplication.h"
8
+
7
9
#include " qgs3dnavigationwidget.h"
8
10
#include " qgscameracontroller.h"
9
11
10
12
Qgs3DNavigationWidget::Qgs3DNavigationWidget (Qgs3DMapCanvas *parent) : QWidget(parent)
11
13
{
12
14
// Zoom in button
13
15
mZoomInButton = new QPushButton (this );
14
- mZoomInButton ->setText (QStringLiteral (" +" ));
15
16
mZoomInButton ->setToolTip (QStringLiteral (" Zoom In" ));
16
17
mZoomInButton ->setAutoRepeat (true );
18
+ mZoomInButton ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionZoomIn.svg" ) ) );
17
19
18
20
QObject::connect (
19
21
mZoomInButton ,
@@ -26,9 +28,9 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget(Qgs3DMapCanvas *parent) : QWidget(p
26
28
27
29
// Zoom out button
28
30
mZoomOutButton = new QPushButton (this );
29
- mZoomOutButton ->setText (QStringLiteral (" -" ));
30
31
mZoomOutButton ->setToolTip (QStringLiteral (" Zoom Out" ));
31
32
mZoomOutButton ->setAutoRepeat (true );
33
+ mZoomOutButton ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionZoomOut.svg" ) ) );
32
34
33
35
QObject::connect (
34
36
mZoomOutButton ,
@@ -41,9 +43,9 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget(Qgs3DMapCanvas *parent) : QWidget(p
41
43
42
44
// Tilt up button
43
45
mTiltUpButton = new QPushButton (this );
44
- mTiltUpButton ->setText (QString::fromUtf8 (" \u25B3 " ));
45
46
mTiltUpButton ->setToolTip (QStringLiteral (" Tilt Up" ));
46
47
mTiltUpButton ->setAutoRepeat (true );
48
+ mTiltUpButton ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionArrowUp.svg" ) ) );
47
49
48
50
QObject::connect (
49
51
mTiltUpButton ,
@@ -56,9 +58,9 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget(Qgs3DMapCanvas *parent) : QWidget(p
56
58
57
59
// Tilt down button
58
60
mTiltDownButton = new QPushButton (this );
59
- mTiltDownButton ->setText (QString::fromUtf8 (" \u25BD " ));
60
61
mTiltDownButton ->setToolTip (QStringLiteral (" Tilt Down" ));
61
62
mTiltDownButton ->setAutoRepeat (true );
63
+ mTiltDownButton ->setIcon ( QgsApplication::getThemeIcon ( QStringLiteral ( " /mActionArrowDown.svg" ) ) );
62
64
63
65
QObject::connect (
64
66
mTiltDownButton ,
0 commit comments