[mythtv-commits] Ticket #5638: MythConfirmationDialog focus problem
MythTV
mythtv at cvs.mythtv.org
Sat Aug 23 11:54:19 UTC 2008
#5638: MythConfirmationDialog focus problem
--------------------+-------------------------------------------------------
Reporter: nigel | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: 0.22
Component: mythtv | Version: unknown
Severity: medium | Mlocked: 0
--------------------+-------------------------------------------------------
If this dialog is created without the Cancel button, it never responds to
keyboard input (because the invisible Cancel button has focus). This works
around that:
{{{
===================================================================
--- libs/libmythui/mythuitype.cpp (revision 18170)
+++ libs/libmythui/mythuitype.cpp (working copy)
@@ -583,7 +583,7 @@
void MythUIType::AddFocusableChildrenToList(QMap<int, MythUIType *>
&focusList)
{
- if (m_CanHaveFocus)
+ if (m_CanHaveFocus && m_Visible)
focusList.insertMulti(m_focusOrder, this);
QList<MythUIType *>::Iterator it;
}}}
but Stuart had a better way to do it (something about making
nextprevwidgetfocus skip invisible widgets?)
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5638>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list