[mythtv] CVS Compile Error (jsmenu.cpp with QT3.1)
Christian Hack
christianh at edmi.com.au
Sat Oct 16 10:11:13 UTC 2004
I have a Redhat 8 machine with QT3.1.2 installed. According to the docs RH8
doesn't have QT3.1 but mine seems to. Perhaps I upgraded it (I don't
remember).
Anyway, the very recently added libs/libmyth/jsmenu.cpp contains QT3.2
calls. At lines 173,175,177,179
if (tokens[0].startsWith("devicename", FALSE) && tokens.count() ==
2)
devicename = tokens[1];
else if (tokens[0].startsWith("button", FALSE) && tokens.count() ==
3)
map.AddButton(tokens[1].toInt(), tokens[2]);
else if (tokens[0].startsWith("axis", FALSE) && tokens.count() == 5)
map.AddAxis(tokens[1].toInt(), tokens[2].toInt(),
tokens[3].toInt(), tokens[4]);
else if (tokens[0].startsWith("chord", FALSE) && tokens.count() ==
4)
map.AddButton(tokens[2].toInt(), tokens[3], tokens[1].toInt());
startsWith is case sensitive only in QT3.1. In 3.2 there is an extra bool
parameter to select case sensitivity.
Is QT3.1 no longer supported? This appears to be the only QT3.2 dependency
otherwise.
CH
More information about the mythtv-dev
mailing list