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 5ce12710c2)
r14.0.x
gregory guy 4 years ago committed by Slávek Banko
parent 3aa4a20405
commit 57781593ef
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -245,7 +245,7 @@ bool PhraseBook::save (const KURL &url, bool asPhrasebook) {
save (*tempFile.textStream(), asPhrasebook); save (*tempFile.textStream(), asPhrasebook);
tempFile.close(); 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; 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. " 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) { "Do you want to overwrite it?").arg(url.url())),i18n("File Exists"),i18n("&Overwrite"))==KMessageBox::Cancel) {
return 0; return 0;
@ -334,7 +334,7 @@ bool PhraseBook::open (const KURL &url) {
fileUrl.setPath (url.url()); fileUrl.setPath (url.url());
} }
if (TDEIO::NetAccess::download (fileUrl, tempFile)) { if (TDEIO::NetAccess::download(fileUrl, tempFile, 0)) {
TQStringList list = TQStringList(); TQStringList list = TQStringList();
// First: try to load it as a normal phrase book // First: try to load it as a normal phrase book

Loading…
Cancel
Save