2013-09-28 09:06:56 +00:00
|
|
|
|
|
|
|
#include "scenetool.hpp"
|
|
|
|
|
2013-10-07 09:14:11 +00:00
|
|
|
#include "scenetoolbar.hpp"
|
|
|
|
|
|
|
|
CSVWorld::SceneTool::SceneTool (SceneToolbar *parent) : QPushButton (parent)
|
2013-09-28 09:06:56 +00:00
|
|
|
{
|
|
|
|
setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
2014-04-03 11:00:19 +00:00
|
|
|
setIconSize (QSize (parent->getIconSize(), parent->getIconSize()));
|
2013-10-07 09:14:11 +00:00
|
|
|
setFixedSize (parent->getButtonSize(), parent->getButtonSize());
|
2013-09-28 11:10:42 +00:00
|
|
|
|
|
|
|
connect (this, SIGNAL (clicked()), this, SLOT (openRequest()));
|
|
|
|
}
|
|
|
|
|
|
|
|
void CSVWorld::SceneTool::openRequest()
|
|
|
|
{
|
|
|
|
showPanel (parentWidget()->mapToGlobal (pos()));
|
|
|
|
}
|