diff options
Diffstat (limited to 'kivio/kiviopart/kiviostencilsetinstaller.cpp')
-rw-r--r-- | kivio/kiviopart/kiviostencilsetinstaller.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kivio/kiviopart/kiviostencilsetinstaller.cpp b/kivio/kiviopart/kiviostencilsetinstaller.cpp index ba4c836a..3983644c 100644 --- a/kivio/kiviopart/kiviostencilsetinstaller.cpp +++ b/kivio/kiviopart/kiviostencilsetinstaller.cpp @@ -23,10 +23,10 @@ #include "kiviostencilsetinstaller.h" -#include <qframe.h> -#include <qlayout.h> -#include <qcheckbox.h> -#include <qstringlist.h> +#include <tqframe.h> +#include <tqlayout.h> +#include <tqcheckbox.h> +#include <tqstringlist.h> #include <klocale.h> #include <kurlrequester.h> @@ -40,18 +40,18 @@ #include <klineedit.h> namespace Kivio { - StencilSetInstaller::StencilSetInstaller(QWidget *parent, const char *name) - : KDialogBase(KDialogBase::Plain, i18n("Install Stencil Set"), Ok|Cancel, Ok, parent, name) + StencilSetInstaller::StencilSetInstaller(TQWidget *tqparent, const char *name) + : KDialogBase(KDialogBase::Plain, i18n("Install Stencil Set"), Ok|Cancel, Ok, tqparent, name) { - QFrame* page = plainPage(); - QVBoxLayout* l = new QVBoxLayout(page); + TQFrame* page = plainPage(); + TQVBoxLayout* l = new TQVBoxLayout(page); l->setAutoAdd(true); m_url = new KURLRequester(page); setButtonOK(KGuiItem(i18n("&Install"), "button_ok")); resize(400, 10); - connect( m_url->lineEdit(), SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotUrlChanged( const QString & ) ) ); + connect( m_url->lineEdit(), TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotUrlChanged( const TQString & ) ) ); slotUrlChanged( m_url->lineEdit()->text() ); m_url->setFocus(); } @@ -60,21 +60,21 @@ namespace Kivio { { } - void StencilSetInstaller::slotUrlChanged( const QString &text ) + void StencilSetInstaller::slotUrlChanged( const TQString &text ) { enableButtonOK( !text.isEmpty() ); } - void StencilSetInstaller::install(const QString& urlString) + void StencilSetInstaller::install(const TQString& urlString) { KURL url(urlString); if(url.isEmpty()) return; - QString tmpFile; + TQString tmpFile; if(!KIO::NetAccess::download(url, tmpFile, this)) { - KMessageBox::error(this, i18n("Could not find the stencil set archive %1.").arg(url.prettyURL())); + KMessageBox::error(this, i18n("Could not find the stencil set archive %1.").tqarg(url.prettyURL())); return; } @@ -82,7 +82,7 @@ namespace Kivio { archive.open(IO_ReadOnly); const KArchiveDirectory* rootDir = archive.directory(); - QStringList dirs = checkDirs(rootDir); + TQStringList dirs = checkDirs(rootDir); if(dirs.isEmpty()) { KMessageBox::error(this, i18n("The file is not a valid stencil set archive.")); @@ -101,16 +101,16 @@ namespace Kivio { KIO::NetAccess::removeTempFile(tmpFile); } - QStringList StencilSetInstaller::checkDirs(const KArchiveDirectory* rootDir) + TQStringList StencilSetInstaller::checkDirs(const KArchiveDirectory* rootDir) { - QStringList dirs; + TQStringList dirs; const KArchiveEntry* possibleDir = 0; const KArchiveDirectory* subDir = 0; - QStringList entries = rootDir->entries(); + TQStringList entries = rootDir->entries(); - for (QStringList::Iterator it = entries.begin(); it != entries.end(); ++it) { + for (TQStringList::Iterator it = entries.begin(); it != entries.end(); ++it) { possibleDir = rootDir->entry(*it); if (possibleDir->isDirectory()) { @@ -125,14 +125,14 @@ namespace Kivio { return dirs; } - bool StencilSetInstaller::installStencilSets(const KArchiveDirectory* rootDir, const QStringList& dirs) + bool StencilSetInstaller::installStencilSets(const KArchiveDirectory* rootDir, const TQStringList& dirs) { - QString installDir = locateLocal("data", "kivio/stencils"); + TQString installDir = locateLocal("data", "kivio/stencils"); KStandardDirs::makeDir(installDir); const KArchiveDirectory* currentDir = 0; bool ok = true; - for (QStringList::ConstIterator it = dirs.begin(); it != dirs.end(); ++it) { + for (TQStringList::ConstIterator it = dirs.begin(); it != dirs.end(); ++it) { currentDir = dynamic_cast<const KArchiveDirectory*>(rootDir->entry(*it)); if(!currentDir) { |