mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 05:19:55 +00:00
19 lines
541 B
C++
19 lines
541 B
C++
|
|
#include "scenetool.hpp"
|
|
|
|
#include "scenetoolbar.hpp"
|
|
|
|
CSVWidget::SceneTool::SceneTool (SceneToolbar *parent, Type type)
|
|
: PushButton (type, "", 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 CSVWidget::SceneTool::openRequest()
|
|
{
|
|
showPanel (parentWidget()->mapToGlobal (pos()));
|
|
}
|