mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 13:49:55 +00:00
17 lines
447 B
C++
17 lines
447 B
C++
|
|
#include "scenetool.hpp"
|
|
|
|
#include "scenetoolbar.hpp"
|
|
|
|
CSVWorld::SceneTool::SceneTool (SceneToolbar *parent) : QPushButton (parent)
|
|
{
|
|
setSizePolicy (QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed));
|
|
setFixedSize (parent->getButtonSize(), parent->getButtonSize());
|
|
|
|
connect (this, SIGNAL (clicked()), this, SLOT (openRequest()));
|
|
}
|
|
|
|
void CSVWorld::SceneTool::openRequest()
|
|
{
|
|
showPanel (parentWidget()->mapToGlobal (pos()));
|
|
}
|