mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
20 lines
550 B
C++
20 lines
550 B
C++
|
|
#include "scenetool.hpp"
|
|
|
|
#include "scenetoolbar.hpp"
|
|
|
|
CSVWidget::SceneTool::SceneTool (SceneToolbar *parent)
|
|
: PushButton (PushButton::Type_TopMode, "", 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()));
|
|
}
|