diff options
Diffstat (limited to 'kmymoney2/views')
-rw-r--r-- | kmymoney2/views/kmymoneyview.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kmymoney2/views/kmymoneyview.cpp b/kmymoney2/views/kmymoneyview.cpp index daaaaf8..c4aea34 100644 --- a/kmymoney2/views/kmymoneyview.cpp +++ b/kmymoney2/views/kmymoneyview.cpp @@ -632,16 +632,16 @@ bool KMyMoneyView::readFile(const KURL& url) ::timetrace("detected GPG"); if(KGPGFile::GPGAvailable()) { ::timetrace("have GPG"); - qfile = TQT_TQIODEVICE(new KGPGFile(filename)); + qfile = new KGPGFile(filename); haveAt = false; isEncrypted = true; } else { KMessageBox::sorry(this, TQString("<qt>%1</qt>"). arg(i18n("GPG is not available for decryption of file <b>%1</b>").arg(filename))); - qfile = TQT_TQIODEVICE(new TQFile(file.name())); + qfile = new TQFile(file.name()); } } else { // we can't use file directly, as we delete qfile later on - qfile = TQT_TQIODEVICE(new TQFile(file.name())); + qfile = new TQFile(file.name()); } ::timetrace("open file"); @@ -969,7 +969,7 @@ bool KMyMoneyView::initializeStorage() void KMyMoneyView::saveToLocalFile(TQFile* qfile, IMyMoneyStorageFormat* pWriter, bool plaintext, const TQString& keyList) { - TQIODevice *dev = TQT_TQIODEVICE(qfile); + TQIODevice *dev = qfile; KFilterBase *base = 0; TQIODevice *statusDevice = dev; @@ -1027,7 +1027,7 @@ void KMyMoneyView::saveToLocalFile(TQFile* qfile, IMyMoneyStorageFormat* pWriter } MyMoneyFile::instance()->setValue("kmm-encryption-key", keyList); } - statusDevice = dev = TQT_TQIODEVICE(kgpg); + statusDevice = dev = kgpg; if(!dev || !dev->open(IO_WriteOnly)) { MyMoneyFile::instance()->blockSignals(blocked); delete dev; @@ -1039,7 +1039,7 @@ void KMyMoneyView::saveToLocalFile(TQFile* qfile, IMyMoneyStorageFormat* pWriter base = KFilterBase::findFilterByMimeType( COMPRESSION_MIME_TYPE ); if(base) { qfile->close(); - base->setDevice(TQT_TQIODEVICE(qfile), false); + base->setDevice(qfile, false); // we need to reopen the file to set the mode inside the filter stuff dev = new KFilterDev(base, true); if(!dev || !dev->open(IO_WriteOnly)) { |