Skip to content

Commit

Permalink
Fixed|libcommon: Qt 4 compatibility
Browse files Browse the repository at this point in the history
QMap::first() was added in Qt 5.2.
  • Loading branch information
skyjake committed Nov 19, 2014
1 parent 223510f commit 6924a80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/gamesession.cpp
Expand Up @@ -979,7 +979,7 @@ de::Uri GameSession::mapUriForNamedExit(String name)
}
else if(exits.count() == 1)
{
chosenExit = exits.first();
chosenExit = exits.values().first();
String chosenExitId = chosenExit->gets("id");
if(chosenExitId != name.toLower())
{
Expand Down
Expand Up @@ -241,7 +241,7 @@ int LineEditWidget::handleEvent(event_t const &ev)
char ch = char(ev.data1);
if(shiftdown)
{
ch = shiftXForm[ch];
ch = shiftXForm[int(ch)];
}

// Filter out nasty charactemnRendState->
Expand Down

0 comments on commit 6924a80

Please sign in to comment.