1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00

set focus when opening a toolbar panel

This commit is contained in:
Marc Zinnschlag 2014-07-10 12:13:27 +02:00
parent d6c0b8d0ac
commit 57b9b8d884

View File

@ -24,6 +24,9 @@ void CSVWidget::SceneToolMode::showPanel (const QPoint& position)
{
mPanel->move (position);
mPanel->show();
if (!mButtons.empty())
mButtons.begin()->first->setFocus (Qt::OtherFocusReason);
}
void CSVWidget::SceneToolMode::addButton (const std::string& icon, const std::string& id)