Permalink
Browse files

mythtv-setup: Fix scrolling in the xmltv config terminal screen.

This allows you to both scroll up or down in the terminal and to escape out
of it. It also always makes sure the last line of the terminal output is
visible. Fixes #7962.

This is supposed to be fixed in the settings re-write but since it's been
delayed to after 0.25 let's at least make it usable in the mean time.
(cherry picked from commit 9861cf2)
  • Loading branch information...
1 parent 7c2c249 commit 05e7a23e226d51ed4397ba6e8cce54b7c273d4ed Paul Harrison committed Jun 22, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/libs/libmyth/mythterminal.cpp
@@ -99,6 +99,7 @@ void MythTerminal::AddText(const QString &_str)
{
lbwidget->setEnabled(true);
lbwidget->setFocus();
+ lbwidget->setCurrentRow(lbwidget->count() - 1);
}
}
@@ -169,7 +170,9 @@ bool MythTerminalKeyFilter::eventFilter(QObject *obj, QEvent *event)
false);
if (!handled && !actions.isEmpty())
{
- if (actions.contains("LEFT") || actions.contains("RIGHT"))
+ if (actions.contains("LEFT") || actions.contains("RIGHT") ||
+ actions.contains("UP") || actions.contains("DOWN") ||
+ actions.contains("ESCAPE"))
{
return QObject::eventFilter(obj, event);
}

0 comments on commit 05e7a23

Please sign in to comment.