Skip to content

Commit

Permalink
Add icons for tilt and zoom buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Jun 6, 2019
1 parent 09baadb commit a1ea983
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/3d/qgs3dnavigationwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
#include <QObject>
#include <QDebug>

#include "qgsapplication.h"

#include "qgs3dnavigationwidget.h"
#include "qgscameracontroller.h"

Qgs3DNavigationWidget::Qgs3DNavigationWidget(Qgs3DMapCanvas *parent) : QWidget(parent)
{
// Zoom in button
mZoomInButton = new QPushButton(this);
mZoomInButton->setText(QStringLiteral("+"));
mZoomInButton->setToolTip(QStringLiteral("Zoom In"));
mZoomInButton->setAutoRepeat(true);
mZoomInButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomIn.svg" ) ) );

QObject::connect(
mZoomInButton,
Expand All @@ -26,9 +28,9 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget(Qgs3DMapCanvas *parent) : QWidget(p

// Zoom out button
mZoomOutButton = new QPushButton(this);
mZoomOutButton->setText(QStringLiteral("-"));
mZoomOutButton->setToolTip(QStringLiteral("Zoom Out"));
mZoomOutButton->setAutoRepeat(true);
mZoomOutButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionZoomOut.svg" ) ) );

QObject::connect(
mZoomOutButton,
Expand All @@ -41,9 +43,9 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget(Qgs3DMapCanvas *parent) : QWidget(p

// Tilt up button
mTiltUpButton = new QPushButton(this);
mTiltUpButton->setText(QString::fromUtf8("\u25B3"));
mTiltUpButton->setToolTip(QStringLiteral("Tilt Up"));
mTiltUpButton->setAutoRepeat(true);
mTiltUpButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionArrowUp.svg" ) ) );

QObject::connect(
mTiltUpButton,
Expand All @@ -56,9 +58,9 @@ Qgs3DNavigationWidget::Qgs3DNavigationWidget(Qgs3DMapCanvas *parent) : QWidget(p

// Tilt down button
mTiltDownButton = new QPushButton(this);
mTiltDownButton ->setText(QString::fromUtf8("\u25BD"));
mTiltDownButton->setToolTip(QStringLiteral("Tilt Down"));
mTiltDownButton->setAutoRepeat(true);
mTiltDownButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionArrowDown.svg" ) ) );

QObject::connect(
mTiltDownButton,
Expand Down

0 comments on commit a1ea983

Please sign in to comment.