Skip to content

Commit

Permalink
Use icon instead of text
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Apr 17, 2024
1 parent 697194c commit 6d4b8e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rviz/default_plugin/image_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ void ImageDisplay::onInitialize()

// fullscreen button
QToolButton* fullscreen_button = new QToolButton();
fullscreen_button->setText("FullScreen");
fullscreen_button->setIcon(QIcon::fromTheme("view-fullscreen"));
fullscreen_button->setIconSize(QSize(10, 10));
fullscreen_button->setToolTip("Toggle fullscreen");
connect(fullscreen_button, &QToolButton::clicked, this, &ImageDisplay::toggleFullScreen);
dynamic_cast<QHBoxLayout*>(getAssociatedWidgetPanel()->titleBarWidget()->layout())
->insertWidget(2, fullscreen_button);
Expand Down

0 comments on commit 6d4b8e7

Please sign in to comment.