2013-09-28 09:06:56 +00:00
|
|
|
|
|
|
|
#include "scenetool.hpp"
|
|
|
|
|
2013-10-07 09:14:11 +00:00
|
|
|
#include "scenetoolbar.hpp"
|
|
|
|
|
2014-07-10 11:04:30 +00:00
|
|
|
CSVWidget::SceneTool::SceneTool (SceneToolbar *parent)
|
|
|
|
: PushButton (PushButton::Type_TopMode, "", 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()));
|
|
|
|
}
|
|
|
|
|
2014-07-08 10:39:12 +00:00
|
|
|
void CSVWidget::SceneTool::openRequest()
|
2013-09-28 11:10:42 +00:00
|
|
|
{
|
|
|
|
showPanel (parentWidget()->mapToGlobal (pos()));
|
|
|
|
}
|