summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-01-26 12:01:42 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-02-02 16:29:14 +0100
commit57781593efb1599293922ca42e94234b4963206e (patch)
treedd5dbafb1df35227c34c2fbf2f26b1cf21c7520c
parent3aa4a20405bb8506c0d218f3f56173b483c8a4a0 (diff)
downloadtdeaccessibility-57781593efb1599293922ca42e94234b4963206e.tar.gz
tdeaccessibility-57781593efb1599293922ca42e94234b4963206e.zip
Silence few warnings due to some deprecated.
Signed-off-by: gregory guy <gregory-tde@laposte.net> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 5ce12710c2e6c2d896eebb228fc81658d63e3b6e)
-rw-r--r--kmouth/phrasebook/phrasebook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmouth/phrasebook/phrasebook.cpp b/kmouth/phrasebook/phrasebook.cpp
index 94eb42f..c095e6d 100644
--- a/kmouth/phrasebook/phrasebook.cpp
+++ b/kmouth/phrasebook/phrasebook.cpp
@@ -245,7 +245,7 @@ bool PhraseBook::save (const KURL &url, bool asPhrasebook) {
save (*tempFile.textStream(), asPhrasebook);
tempFile.close();
- return TDEIO::NetAccess::upload(tempFile.name(), url);
+ return TDEIO::NetAccess::upload( tempFile.name(), url, 0 );
}
}
@@ -273,7 +273,7 @@ int PhraseBook::save (TQWidget *parent, const TQString &title, KURL &url, bool p
return -1;
}
- if (TDEIO::NetAccess::exists(url)) {
+ if (TDEIO::NetAccess::exists(url, false, 0)) {
if (KMessageBox::warningContinueCancel(0,TQString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
"Do you want to overwrite it?").arg(url.url())),i18n("File Exists"),i18n("&Overwrite"))==KMessageBox::Cancel) {
return 0;
@@ -334,7 +334,7 @@ bool PhraseBook::open (const KURL &url) {
fileUrl.setPath (url.url());
}
- if (TDEIO::NetAccess::download (fileUrl, tempFile)) {
+ if (TDEIO::NetAccess::download(fileUrl, tempFile, 0)) {
TQStringList list = TQStringList();
// First: try to load it as a normal phrase book