diff options
Diffstat (limited to 'kget/dlgDirectories.cpp')
-rw-r--r-- | kget/dlgDirectories.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kget/dlgDirectories.cpp b/kget/dlgDirectories.cpp index 6c4c42e3..a373cc67 100644 --- a/kget/dlgDirectories.cpp +++ b/kget/dlgDirectories.cpp @@ -25,11 +25,11 @@ ***************************************************************************/ -#include <qpushbutton.h> -#include <qtoolbutton.h> -#include <qlistview.h> +#include <tqpushbutton.h> +#include <tqtoolbutton.h> +#include <tqlistview.h> -#include <qdir.h> +#include <tqdir.h> #include <kfiledialog.h> #include <klineedit.h> @@ -42,11 +42,11 @@ #include "dlgDirectories.h" #include <kapplication.h> -DlgDirectories::DlgDirectories(QWidget * parent) +DlgDirectories::DlgDirectories(TQWidget * parent) : DlgDirectoriesBase(parent) { - connect( le_ext, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotDirectoryChanged( ) ) ); - connect( le_dir, SIGNAL( textChanged ( const QString & ) ), this, SLOT( slotDirectoryChanged( ) ) ); + connect( le_ext, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotDirectoryChanged( ) ) ); + connect( le_dir, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotDirectoryChanged( ) ) ); le_dir->setMode( KFile::Directory ); lv_entries->setSortColumn( -1 ); @@ -59,7 +59,7 @@ void DlgDirectories::slotDirectoryChanged( ) pb_add->setEnabled(!le_ext->text().isEmpty() &&!le_dir->url().isEmpty() ); } -void DlgDirectories::selectEntry(QListViewItem * item) +void DlgDirectories::selectEntry(TQListViewItem * item) { if (item) { le_ext->setText(item->text(0)); @@ -75,7 +75,7 @@ void DlgDirectories::selectEntry(QListViewItem * item) void DlgDirectories::updateUpDown() { - QListViewItem *item = lv_entries->selectedItem(); + TQListViewItem *item = lv_entries->selectedItem(); pb_up->setEnabled( item && item->itemAbove() ); pb_down->setEnabled( item && item->itemBelow() ); @@ -83,22 +83,22 @@ void DlgDirectories::updateUpDown() void DlgDirectories::addEntry() { - QString ext = le_ext->text(); - QString dir = le_dir->url(); + TQString ext = le_ext->text(); + TQString dir = le_dir->url(); if (ext.contains(",") || dir.contains(",") || ext.isEmpty() || dir.isEmpty()) { KMessageBox::error(this, i18n("Each row consists of exactly one\nextension type and one folder."), i18n("Error")); return; } - QDir f(dir); + TQDir f(dir); if (!f.exists()) { KMessageBox::error(this, i18n("Folder does not exist:\n%1").arg(dir), i18n("Error")); return; } - new QListViewItem(lv_entries, ext, dir); + new TQListViewItem(lv_entries, ext, dir); updateUpDown(); emit configChanged(); @@ -107,7 +107,7 @@ void DlgDirectories::addEntry() void DlgDirectories::deleteEntry() { - QListViewItem *item = lv_entries->selectedItem(); + TQListViewItem *item = lv_entries->selectedItem(); delete item; updateUpDown(); emit configChanged(); @@ -116,25 +116,25 @@ void DlgDirectories::deleteEntry() void DlgDirectories::changeEntry() { - QListViewItem *old_item = lv_entries->selectedItem(); + TQListViewItem *old_item = lv_entries->selectedItem(); if (old_item) { - QString ext = le_ext->text(); - QString dir = le_dir->url(); + TQString ext = le_ext->text(); + TQString dir = le_dir->url(); if (ext.contains(",") || dir.contains(",") || ext.isEmpty() || dir.isEmpty()) { KMessageBox::error(this, i18n("Each row consists of exactly one\nextension type and one folder."), i18n("Error")); return; } - QDir f(dir); + TQDir f(dir); if (!f.exists()) { KMessageBox::error(this, i18n("Folder does not exist:\n%1").arg(dir), i18n("Error")); return; } - new QListViewItem(lv_entries, old_item, ext, dir); + new TQListViewItem(lv_entries, old_item, ext, dir); delete old_item; emit configChanged(); } @@ -143,7 +143,7 @@ void DlgDirectories::changeEntry() void DlgDirectories::downEntry() { - QListViewItem *item = lv_entries->selectedItem(); + TQListViewItem *item = lv_entries->selectedItem(); if ( !item ) return; @@ -157,7 +157,7 @@ void DlgDirectories::downEntry() void DlgDirectories::upEntry() { - QListViewItem *item = lv_entries->selectedItem(); + TQListViewItem *item = lv_entries->selectedItem(); if ( !item || !item->itemAbove() ) return; @@ -175,11 +175,11 @@ void DlgDirectories::setData() if (ksettings.defaultDirList.count() > 0) { // we need to insert items in the reverse order - // because "new QListViewItem" puts itself at the beginning + // because "new TQListViewItem" puts itself at the beginning for (it = ksettings.defaultDirList.fromLast(); it != ksettings.defaultDirList.begin(); it--) { - new QListViewItem(lv_entries, (*it).extRegexp, (*it).defaultDir); + new TQListViewItem(lv_entries, (*it).extRegexp, (*it).defaultDir); } - new QListViewItem(lv_entries, (*it).extRegexp, (*it).defaultDir); + new TQListViewItem(lv_entries, (*it).extRegexp, (*it).defaultDir); } } @@ -187,10 +187,10 @@ void DlgDirectories::setData() void DlgDirectories::applyData() { ksettings.defaultDirList.clear(); - QListViewItemIterator it(lv_entries); + TQListViewItemIterator it(lv_entries); for (; it.current(); ++it) { - QListViewItem *item = it.current(); + TQListViewItem *item = it.current(); DirItem ditem; |