|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
#include "scenetoolbar.hpp"
|
|
|
|
|
|
|
|
|
|
CSVWorld::SceneToolMode::SceneToolMode (SceneToolbar *parent)
|
|
|
|
|
: SceneTool (parent), mButtonSize (parent->getButtonSize())
|
|
|
|
|
: SceneTool (parent), mButtonSize (parent->getButtonSize()), mIconSize (parent->getIconSize())
|
|
|
|
|
{
|
|
|
|
|
mPanel = new QFrame (this, Qt::Popup);
|
|
|
|
|
|
|
|
|
@ -29,6 +29,7 @@ void CSVWorld::SceneToolMode::addButton (const std::string& icon, const std::str
|
|
|
|
|
{
|
|
|
|
|
QPushButton *button = new QPushButton (QIcon (QPixmap (icon.c_str())), "", mPanel);
|
|
|
|
|
button->setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
|
|
|
|
button->setIconSize (QSize (mIconSize, mIconSize));
|
|
|
|
|
button->setFixedSize (mButtonSize, mButtonSize);
|
|
|
|
|
|
|
|
|
|
mLayout->addWidget (button);
|
|
|
|
|