mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 06:39:49 +00:00
19 lines
519 B
C++
19 lines
519 B
C++
|
|
#include "scenetool.hpp"
|
|
|
|
#include "scenetoolbar.hpp"
|
|
|
|
CSVWorld::SceneTool::SceneTool (SceneToolbar *parent) : QPushButton (parent)
|
|
{
|
|
setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
|
setIconSize (QSize (parent->getIconSize(), parent->getIconSize()));
|
|
setFixedSize (parent->getButtonSize(), parent->getButtonSize());
|
|
|
|
connect (this, SIGNAL (clicked()), this, SLOT (openRequest()));
|
|
}
|
|
|
|
void CSVWorld::SceneTool::openRequest()
|
|
{
|
|
showPanel (parentWidget()->mapToGlobal (pos()));
|
|
}
|