Skip to content

Commit

Permalink
scide: fix focussing of post docklet
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information
timblechmann committed Nov 14, 2012
1 parent db531e7 commit d3a9698
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion editors/sc-ide/widgets/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void MainWindow::createActions()
mActions[FocusPostWindow] = action = new QAction( tr("Focus Post Window"), this);
action->setStatusTip(tr("Focus post window"));
action->setShortcut(tr("Ctrl+L", "Focus post window"));
connect(action, SIGNAL(triggered()), mPostDocklet->mPostWindow, SLOT(setFocus()));
connect(action, SIGNAL(triggered()), mPostDocklet, SLOT(raiseAndFocus()));
settings->addAction( action, "post-focus", ideCategory);

// Language
Expand Down
6 changes: 6 additions & 0 deletions editors/sc-ide/widgets/post_window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ class PostDocklet:
public:
PostDocklet(QWidget* parent = 0);

public slots:
void raiseAndFocus()
{
show();
raise();
}

private slots:
void onFloatingChanged(bool floating);
Expand Down

0 comments on commit d3a9698

Please sign in to comment.