[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kapman] /: Fix build with Qt 5.5
From: Michael Palimaka <kensington () gentoo ! org>
Date: 2015-07-25 18:21:47
Message-ID: E1ZJ44x-0006sn-Qv () scm ! kde ! org
[Download RAW message or body]
Git commit 6b959c84071c8336f636ad25122871e99b209d2b by Michael Palimaka.
Committed on 25/07/2015 at 18:21.
Pushed by palimaka into branch 'master'.
Fix build with Qt 5.5
REVIEW: 124465
M +1 -1 kapmanmainwindow.cpp
M +1 -1 kapmanparser.cpp
http://commits.kde.org/kapman/6b959c84071c8336f636ad25122871e99b209d2b
diff --git a/kapmanmainwindow.cpp b/kapmanmainwindow.cpp
index 3fbe641..5ddad23 100644
--- a/kapmanmainwindow.cpp
+++ b/kapmanmainwindow.cpp
@@ -154,7 +154,7 @@ void KapmanMainWindow::newGame(const bool gameOver)
void KapmanMainWindow::changeLevel()
{
- const int newLevel = QInputDialog::getInteger(this, i18n("Change level"), \
i18nc("The number of the game level", "Level"), m_game->getLevel(), 1, 1000000, 1); + \
const int newLevel = QInputDialog::getInt(this, i18n("Change level"), i18nc("The \
number of the game level", "Level"), m_game->getLevel(), 1, 1000000, 1); if \
(newLevel > 0) { m_game->setLevel(newLevel);
}
diff --git a/kapmanparser.cpp b/kapmanparser.cpp
index 20825be..b61a977 100644
--- a/kapmanparser.cpp
+++ b/kapmanparser.cpp
@@ -132,7 +132,7 @@ bool KapmanParser::endElement(const QString &, const QString &, \
const QString &p {
if (p_qName == QLatin1String("Row")) {
for (int i = 0; i < m_buffer.length(); ++i) {
- switch (m_buffer.at(i).toAscii()) {
+ switch (m_buffer.at(i).toLatin1()) {
case '|':
case '=': m_game->getMaze()->setCellType(m_counterRows, i, Cell::WALL);
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic