1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Windows,Qt5: Fixed compile issue.

- It fixes: error: C2308: concatenating mismatched strings Concatenating wide
- See: http://blog.qt.digia.com/blog/2014/06/13/qt-weekly-13-qstringliteral/
This commit is contained in:
S. Razi Alavizadeh 2014-12-24 23:38:38 +03:30
parent 0ccc759e1f
commit 94afd29d67
2 changed files with 3 additions and 4 deletions

View File

@ -118,8 +118,7 @@ MainApplication::MainApplication(int &argc, char** argv)
// QSQLITE database plugin is required
if (!QSqlDatabase::isDriverAvailable(QSL("QSQLITE"))) {
QMessageBox::critical(0, QSL("Error"), QSL("Qt SQLite database plugin is not available. "
"Please install it and restart the application."));
QMessageBox::critical(0, QSL("Error"), QSL("Qt SQLite database plugin is not available. Please install it and restart the application."));
m_isClosing = true;
return;
}

View File

@ -226,8 +226,8 @@ void GM_Manager::frameLoadStart()
frame->evaluateJavaScript(m_bootstrap + script->script());
}
else {
const QString jscript = QString(QSL("window.addEventListener(\"DOMContentLoaded\","
"function(e) { \n%1\n }, true);")).arg(m_bootstrap + script->script());
const QString jscript = QString(QSL("window.addEventListener(\"DOMContentLoaded\",function(e) { \n%1\n }, true);"))
.arg(m_bootstrap + script->script());
frame->evaluateJavaScript(jscript);
}
}