From aa1193e1190ef8775ce13573f8ff57b8f876bdff Mon Sep 17 00:00:00 2001 From: Dario Freddi Date: Tue, 13 Oct 2009 00:50:53 +0200 Subject: Small fixes (const issue, single char issue, file not ending with a new line), and adding the correct schema to kconfigxt files Signed-off-by: Dario Freddi --- src/homepage.cpp | 2 +- src/mainwindow.cpp | 2 +- src/rekonq.kcfg | 5 ++++- src/webview.cpp | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/homepage.cpp b/src/homepage.cpp index 398308be..e8608241 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -223,7 +223,7 @@ QString HomePage::fillHistory() { QModelIndex son = model->index(j, 0, index ); history += son.data(HistoryModel::DateTimeRole).toDateTime().toString("hh:mm"); - history += " "; + history += ' '; history += QString("") + son.data().toString() + QString(""); history += "
"; diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 7601e80e..1b527d1a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1020,7 +1020,7 @@ void MainWindow::clearPrivateData() kDebug() << path; QDir cacheDir(path); QStringList fileList = cacheDir.entryList(); - foreach(QString str, fileList) + foreach(const QString &str, fileList) { kDebug() << str; QFile file(path + str); diff --git a/src/rekonq.kcfg b/src/rekonq.kcfg index 9e854f76..c55fce9c 100644 --- a/src/rekonq.kcfg +++ b/src/rekonq.kcfg @@ -1,6 +1,9 @@ - + QtWebKit diff --git a/src/webview.cpp b/src/webview.cpp index a2662399..9e06c9da 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -432,4 +432,4 @@ void WebView::keyPressEvent(QKeyEvent *event) return; } QWebView::keyPressEvent(event); -} \ No newline at end of file +} -- cgit v1.2.1