Skip to content
Snippets Groups Projects
Commit 719bc998 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Unify style of tool-button with the rest of tool bar.

parent c3a89491
No related branches found
No related tags found
No related merge requests found
......@@ -65,11 +65,12 @@ SampleToolBar::SampleToolBar(SampleViewActions* sampleActions, QWidget* parent)
// Center view
m_centerViewButton = new QToolButton;
m_centerViewButton->setText("Center view");
m_centerViewButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
m_centerViewButton->setIcon(QIcon(":/SampleDesigner/images/camera-metering-center.svg"));
m_centerViewButton->setToolTip("Center view.");
addWidget(m_centerViewButton);
connect(m_centerViewButton, &QToolButton::clicked, this, &SampleToolBar::centerView);
addWidget(new QLabel("Center view "));
addWidget(m_centerViewButton);
// Zoom
addWidget(new QLabel(" "));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment