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.
  • Loading branch information...
1 parent 2566efb commit 9861cf29b6fd5ca49ae573dfa7a5ff795f2bfdb5 Paul Harrison committed Jun 22, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/libs/libmyth/mythterminal.cpp
View
5 mythtv/libs/libmyth/mythterminal.cpp
@@ -101,6 +101,7 @@ void MythTerminal::AddText(const QString &_str)
{
lbwidget->setEnabled(true);
lbwidget->setFocus();
+ lbwidget->setCurrentRow(lbwidget->count() - 1);
}
}
@@ -171,7 +172,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 9861cf2

Please sign in to comment.