mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
use name as a tooltip if no tooltip is given for scene tool bar toggle buttons
This commit is contained in:
parent
92d322cbd1
commit
b0a9d17dc3
@ -143,7 +143,8 @@ void CSVWidget::SceneToolToggle::addButton (const std::string& icon, unsigned in
|
||||
throw std::runtime_error ("Exceeded number of buttons in toggle type tool");
|
||||
|
||||
PushButton *button = new PushButton (QIcon (QPixmap (icon.c_str())),
|
||||
PushButton::Type_Toggle, tooltip, mPanel);
|
||||
PushButton::Type_Toggle, tooltip.isEmpty() ? name: tooltip, mPanel);
|
||||
|
||||
button->setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
||||
button->setIconSize (QSize (mIconSize, mIconSize));
|
||||
button->setFixedSize (mButtonSize, mButtonSize);
|
||||
|
Loading…
Reference in New Issue
Block a user