diff options
Diffstat (limited to 'src/arkollon/uninstallwizard.cpp')
-rw-r--r-- | src/arkollon/uninstallwizard.cpp | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/arkollon/uninstallwizard.cpp b/src/arkollon/uninstallwizard.cpp index ac8f2f8..58bd6b4 100644 --- a/src/arkollon/uninstallwizard.cpp +++ b/src/arkollon/uninstallwizard.cpp @@ -23,20 +23,20 @@ #include "headerlistitem.h" #include "data.h" -#include <qregexp.h> -#include <qwidgetstack.h> -#include <qfile.h> -#include <qtextstream.h> -#include <qheader.h> -#include <qlistbox.h> -#include <qmessagebox.h> -#include <qpushbutton.h> -#include <qlineedit.h> -#include <qtextedit.h> -#include <qlabel.h> +#include <ntqregexp.h> +#include <ntqwidgetstack.h> +#include <ntqfile.h> +#include <ntqtextstream.h> +#include <ntqheader.h> +#include <ntqlistbox.h> +#include <ntqmessagebox.h> +#include <ntqpushbutton.h> +#include <ntqlineedit.h> +#include <ntqtextedit.h> +#include <ntqlabel.h> -AppListItem::AppListItem(QString nN, QString n, QListView* parent) - : QCheckListItem(parent, "", QCheckListItem::CheckBox) +AppListItem::AppListItem(TQString nN, TQString n, TQListView* parent) + : TQCheckListItem(parent, "", TQCheckListItem::CheckBox) { niceName = nN; name = n; @@ -45,7 +45,7 @@ AppListItem::AppListItem(QString nN, QString n, QListView* parent) setText(0, niceName); } -int AppListItem::compare(QListViewItem* i, int col, bool ascending) const +int AppListItem::compare(TQListViewItem* i, int col, bool ascending) const { switch (i->rtti()) { @@ -56,7 +56,7 @@ int AppListItem::compare(QListViewItem* i, int col, bool ascending) const return -1; if (section > item->section) return 1; - return QListViewItem::compare(i, col, ascending); + return TQListViewItem::compare(i, col, ascending); } break; @@ -73,7 +73,7 @@ int AppListItem::compare(QListViewItem* i, int col, bool ascending) const } -UninstallWizard::UninstallWizard(QWidget* parent, const char* name, bool modal, WFlags fl) +UninstallWizard::UninstallWizard(TQWidget* parent, const char* name, bool modal, WFlags fl) : WizardBase(parent,name, modal,fl) { mainStack->raiseWidget(1); @@ -89,16 +89,16 @@ UninstallWizard::UninstallWizard(QWidget* parent, const char* name, bool modal, icon.convertFromImage(qembed_findImage("misc")); - externalProcess = new QProcess(this); + externalProcess = new TQProcess(this); connect(externalProcess, SIGNAL(processExited()), SLOT(processExited())); connect(externalProcess, SIGNAL(readyReadStdout()), SLOT(readyReadStdout())); connect(externalProcess, SIGNAL(readyReadStderr()), SLOT(readyReadStderr())); - QFile uninstallScript("/tmp/arkollon-uninstall.sh"); + TQFile uninstallScript("/tmp/arkollon-uninstall.sh"); if (uninstallScript.exists()) uninstallScript.remove(); uninstallScript.open(IO_WriteOnly); - QDataStream stream(&uninstallScript); + TQDataStream stream(&uninstallScript); stream.writeRawBytes((const char*)uninstaller_sh_data, uninstaller_sh_len); uninstallScript.close(); @@ -111,7 +111,7 @@ UninstallWizard::UninstallWizard(QWidget* parent, const char* name, bool modal, UninstallWizard::~UninstallWizard() { - QFile uninstallScript("/tmp/arkollon-uninstall.sh"); + TQFile uninstallScript("/tmp/arkollon-uninstall.sh"); if (uninstallScript.exists()) uninstallScript.remove(); } @@ -151,10 +151,10 @@ void UninstallWizard::nextPressed() if (currentId == 0) { bool checked = false; - QStringList argList; + TQStringList argList; argList.append("/bin/sh"); argList.append("/tmp/arkollon-uninstall.sh"); - for ( QListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling()) + for ( TQListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling()) { if (myChild->rtti() != 1003) continue; @@ -167,7 +167,7 @@ void UninstallWizard::nextPressed() } if (!checked) { - QMessageBox::warning(this, "Error", "You need to select at least one package to remove", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton); + TQMessageBox::warning(this, "Error", "You need to select at least one package to remove", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton); return; } fileList->clear(); @@ -192,7 +192,7 @@ void UninstallWizard::processExited() case ListingPackages: if (appList->childCount() <= 0) { - QMessageBox::warning(NULL, "Warning", "There are no packages installed", QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton); + TQMessageBox::warning(NULL, "Warning", "There are no packages installed", TQMessageBox::Ok, TQMessageBox::NoButton, TQMessageBox::NoButton); reject(); return; } @@ -216,14 +216,14 @@ void UninstallWizard::readyReadStdout() { while (externalProcess->canReadLineStdout()) { - QString line = externalProcess->readLineStdout(); + TQString line = externalProcess->readLineStdout(); if (line.isEmpty()) continue; // See if it already exists bool exists = false; - for ( QListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling()) + for ( TQListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling()) { if (myChild->rtti() != 1003) continue; @@ -237,7 +237,7 @@ void UninstallWizard::readyReadStdout() if (exists) continue; - QString niceName = line.left(line.findRev(':')); + TQString niceName = line.left(line.findRev(':')); niceName = niceName.left(1).upper() + niceName.right(niceName.length()-1); new AppListItem(niceName, line, appList); @@ -254,7 +254,7 @@ void UninstallWizard::readyReadStdout() { while (externalProcess->canReadLineStdout()) { - QString line = externalProcess->readLineStdout(); + TQString line = externalProcess->readLineStdout(); if (line.isEmpty()) continue; fileList->insertItem(icon, line.left(line.find(" "))); @@ -264,10 +264,10 @@ void UninstallWizard::readyReadStdout() case RemovingGlobal: while (externalProcess->canReadLineStdout()) { - QString line = externalProcess->readLineStdout(); + TQString line = externalProcess->readLineStdout(); if (line.isEmpty()) continue; - line.replace(QRegExp("\\033[^m]*m"), ""); + line.replace(TQRegExp("\\033[^m]*m"), ""); logDialog->logBox->append(line); } break; @@ -278,10 +278,10 @@ void UninstallWizard::readyReadStderr() { while (externalProcess->canReadLineStdout()) { - QString line = externalProcess->readLineStdout(); + TQString line = externalProcess->readLineStdout(); if (line.isEmpty()) continue; - line.replace(QRegExp("\\033[^m]*m"), ""); + line.replace(TQRegExp("\\033[^m]*m"), ""); logDialog->logBox->append(line); } } @@ -292,10 +292,10 @@ void UninstallWizard::removeUserPackages() previousButton->setEnabled(false); // Find out which packages belong to the user, and uninstall them - QStringList argList; + TQStringList argList; argList.append("/bin/sh"); argList.append("/tmp/arkollon-uninstall.sh"); - for ( QListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling()) + for ( TQListViewItem * myChild = appList->firstChild() ; myChild != NULL ; myChild = myChild->nextSibling()) { if (myChild->rtti() != 1003) continue; |