Skip to content

Commit

Permalink
Patch for Qt5 change of QKeySequence count type
Browse files Browse the repository at this point in the history
  • Loading branch information
garybuhrmaster committed Sep 10, 2013
1 parent ff2de07 commit dcc1fa9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion mythtv/libs/libmythui/jsmenu.cpp
Expand Up @@ -306,7 +306,12 @@ void JoystickMenuThread::EmitKey(QString code)
QCoreApplication::postEvent(m_mainWindow, new JoystickKeycodeEvent(code,
keycode, true));

for (unsigned int i = 0; i < a.count(); i++)
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
unsigned int i;
#else
int i;
#endif
for (i = 0; i < a.count(); i++)
{
keycode = a[i];

Expand Down
8 changes: 7 additions & 1 deletion mythtv/libs/libmythui/lirc.cpp
Expand Up @@ -375,7 +375,13 @@ void LIRC::Process(const QByteArray &data)
}

vector<LircKeycodeEvent*> keyReleases;
for (unsigned int i = 0; i < a.count(); i++)

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
unsigned int i;
#else
int i;
#endif
for (i = 0; i < a.count(); i++)
{
int keycode = a[i];
Qt::KeyboardModifiers mod = Qt::NoModifier;
Expand Down

0 comments on commit dcc1fa9

Please sign in to comment.