summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Harrison <pharrison@mythtv.org>2011-06-22 12:38:19 (GMT)
committer Paul Harrison <pharrison@mythtv.org>2011-06-22 12:38:19 (GMT)
commit9861cf29b6fd5ca49ae573dfa7a5ff795f2bfdb5 (patch)
tree95d768606c99cfd7d38f987e53fed0a61f3fc248
parent2566efb87282e5ee280bbe142c9bbbc50484cacb (diff)
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.
-rw-r--r--mythtv/libs/libmyth/mythterminal.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/mythtv/libs/libmyth/mythterminal.cpp b/mythtv/libs/libmyth/mythterminal.cpp
index 1cf34ac..3a6e329 100644
--- a/mythtv/libs/libmyth/mythterminal.cpp
+++ b/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);
}