diff options
| author | 2023-07-08 01:38:33 +0200 | |
|---|---|---|
| committer | 2023-07-08 01:38:33 +0200 | |
| commit | 28292170d8c02743cabfabba3a1623b8d71b9aa2 (patch) | |
| tree | 03c7269f527a40a5b86863db7c111f2552afe46c /src/modules/url | |
| parent | Merge branch 'bugfix/script-editor-out-of-range-exception' (diff) | |
| download | KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.gz KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.tar.bz2 KVIrc-28292170d8c02743cabfabba3a1623b8d71b9aa2.zip | |
Port to (and require) Qt 5.15. Drop KDE4 support, fix KDE5 (#2541)
* Port to (and require) Qt 5.15. Drop KDE4 support, implement KDE5 support where needed.
---------
Co-authored-by: Fabio Bas <fabio.bas@officineinformatiche.net>
Diffstat (limited to 'src/modules/url')
| -rw-r--r-- | src/modules/url/libkviurl.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/url/libkviurl.cpp b/src/modules/url/libkviurl.cpp index 5674cafc8..53f966126 100644 --- a/src/modules/url/libkviurl.cpp +++ b/src/modules/url/libkviurl.cpp @@ -499,14 +499,14 @@ void saveUrlList() QTextStream stream(&file); - stream << g_List.size() << endl; + stream << g_List.size() << Qt::endl; for(auto tmp : g_List) { - stream << tmp->url << endl; - stream << tmp->window << endl; - stream << tmp->count << endl; - stream << tmp->timestamp << endl; + stream << tmp->url << Qt::endl; + stream << tmp->window << Qt::endl; + stream << tmp->count << Qt::endl; + stream << tmp->timestamp << Qt::endl; } file.flush(); file.close(); @@ -569,10 +569,10 @@ void saveBanList() QTextStream stream(&file); - stream << g_BanList.size() << endl; + stream << g_BanList.size() << Qt::endl; for(auto tmp : g_BanList) { - stream << *tmp << endl; + stream << *tmp << Qt::endl; } file.flush(); file.close(); @@ -749,7 +749,7 @@ bool urllist_module_event_onUrl(KviKvsModuleEventCall * c) QString tmpTimestamp; QDate d = QDate::currentDate(); QString date; - date.sprintf("%d-%d%d-%d%d", d.year(), d.month() / 10, d.month() % 10, d.day() / 10, d.day() % 10); + date = QString::asprintf("%d-%d%d-%d%d", d.year(), d.month() / 10, d.month() % 10, d.day() / 10, d.day() % 10); tmpTimestamp = "[" + date + "]" + " ["; tmpTimestamp += QTime::currentTime().toString() + "]"; tmp->url = szUrl; |
