set focus when opening a toolbar panel

pull/182/head
Marc Zinnschlag 11 years ago
parent d6c0b8d0ac
commit 57b9b8d884

@ -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)

Loading…
Cancel
Save