diff options
Diffstat (limited to 'src/paranoia.ui.h')
-rw-r--r-- | src/paranoia.ui.h | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/src/paranoia.ui.h b/src/paranoia.ui.h index 4529e49..088b7c0 100644 --- a/src/paranoia.ui.h +++ b/src/paranoia.ui.h @@ -21,56 +21,56 @@ #include "torkconfig.h" #include <klocale.h> -#include <qtooltip.h> -#include <qpopupmenu.h> +#include <ntqtooltip.h> +#include <ntqpopupmenu.h> #include <kdebug.h> #include <kiconloader.h> void FilterTable::init() { - FilterRules->setSelectionMode( QListView::Extended ); - FilterRules->setColumnWidthMode(0, QListView::Manual); + FilterRules->setSelectionMode( TQListView::Extended ); + FilterRules->setColumnWidthMode(0, TQListView::Manual); FilterRules->hideColumn(0); FilterRules->header()->setResizeEnabled(FALSE, 0); - FilterRules->setResizeMode( QListView::NoColumn ); + FilterRules->setResizeMode( TQListView::NoColumn ); - SystemFilterRules->setSelectionMode( QListView::Extended ); - SystemFilterRules->setColumnWidthMode(0, QListView::Manual); + SystemFilterRules->setSelectionMode( TQListView::Extended ); + SystemFilterRules->setColumnWidthMode(0, TQListView::Manual); SystemFilterRules->hideColumn(0); SystemFilterRules->header()->setResizeEnabled(FALSE, 0); - SystemFilterRules->setResizeMode( QListView::NoColumn ); + SystemFilterRules->setResizeMode( TQListView::NoColumn ); - QStringList filterRules = TorkConfig::filterRules(); + TQStringList filterRules = TorkConfig::filterRules(); - QListViewItem *tm; - for ( QStringList::Iterator it = filterRules.begin(); it != filterRules.end(); ++it ) + TQListViewItem *tm; + for ( TQStringList::Iterator it = filterRules.begin(); it != filterRules.end(); ++it ) { if ((*it).isEmpty()) continue; - QString active = (*it).section("%:%",0,0); - QString desc = (*it).section("%:%",1,1); - QString entry = (*it).section("%:%",2,2); + TQString active = (*it).section("%:%",0,0); + TQString desc = (*it).section("%:%",1,1); + TQString entry = (*it).section("%:%",2,2); - tm = new QListViewItem(FilterRules,active,desc,entry); + tm = new TQListViewItem(FilterRules,active,desc,entry); - tm->setPixmap( 1, QPixmap(SmallIcon(active ))); + tm->setPixmap( 1, TQPixmap(SmallIcon(active ))); } - QStringList systemFilterRules = TorkConfig::systemFilterRules(); + TQStringList systemFilterRules = TorkConfig::systemFilterRules(); - for ( QStringList::Iterator it = systemFilterRules.begin(); it != systemFilterRules.end(); ++it ) + for ( TQStringList::Iterator it = systemFilterRules.begin(); it != systemFilterRules.end(); ++it ) { if ((*it).isEmpty()) continue; - QString active = (*it).section("%:%",0,0); - QString desc = (*it).section("%:%",1,1); - QString entry = (*it).section("%:%",2,2); + TQString active = (*it).section("%:%",0,0); + TQString desc = (*it).section("%:%",1,1); + TQString entry = (*it).section("%:%",2,2); - tm = new QListViewItem(SystemFilterRules,active,desc,entry); + tm = new TQListViewItem(SystemFilterRules,active,desc,entry); - tm->setPixmap( 1, QPixmap(SmallIcon(active ))); + tm->setPixmap( 1, TQPixmap(SmallIcon(active ))); } @@ -78,21 +78,21 @@ void FilterTable::init() void FilterTable::pushAdd_clicked() { - new QListViewItem(FilterRules,Description->text().replace("%:%",""),Filter->text().replace("%:%","")); + new TQListViewItem(FilterRules,Description->text().replace("%:%",""),Filter->text().replace("%:%","")); } void FilterTable::pushAdd_Sys_clicked() { - new QListViewItem(SystemFilterRules,SystemDescription->text().replace("%:%",""),SystemFilter->text().replace("%:%","")); + new TQListViewItem(SystemFilterRules,SystemDescription->text().replace("%:%",""),SystemFilter->text().replace("%:%","")); } -void FilterTable::FilterRules_contextMenuRequested( QListViewItem *, const QPoint &point, int ) +void FilterTable::FilterRules_contextMenuRequested( TQListViewItem *, const TQPoint &point, int ) { - QPopupMenu *menu = new QPopupMenu( FilterRules ); + TQPopupMenu *menu = new TQPopupMenu( FilterRules ); menu->clear(); menu->insertItem( "Delete Entry", this,SLOT(slotDeleteEntry()) ); @@ -102,10 +102,10 @@ void FilterTable::FilterRules_contextMenuRequested( QListViewItem *, const QPoin } -void FilterTable::SystemFilterRules_contextMenuRequested( QListViewItem *, const QPoint &point, int ) +void FilterTable::SystemFilterRules_contextMenuRequested( TQListViewItem *, const TQPoint &point, int ) { - QPopupMenu *menu = new QPopupMenu( SystemFilterRules ); + TQPopupMenu *menu = new TQPopupMenu( SystemFilterRules ); menu->clear(); menu->insertItem( "Delete Entry", this,SLOT(slotDeleteSystemEntry()) ); @@ -119,7 +119,7 @@ void FilterTable::SystemFilterRules_contextMenuRequested( QListViewItem *, const void FilterTable::slotDeleteEntry( ) { - QListViewItemIterator it(FilterRules, QListViewItemIterator::Selected); + TQListViewItemIterator it(FilterRules, TQListViewItemIterator::Selected); while ( it.current() ) { if (FilterRules->isSelected( it.current())) delete it.current(); @@ -132,15 +132,15 @@ void FilterTable::slotDeleteEntry( ) void FilterTable::slotToggleEntry( ) { - QListViewItemIterator it(FilterRules, QListViewItemIterator::Selected); + TQListViewItemIterator it(FilterRules, TQListViewItemIterator::Selected); while ( it.current() ) { if (FilterRules->isSelected( it.current())){ - QString active = "button_cancel"; + TQString active = "button_cancel"; if (it.current()->text(0).contains("button_cancel")) active = "button_ok"; it.current()->setText(0,active); - it.current()->setPixmap( 1, QPixmap(SmallIcon(active))); + it.current()->setPixmap( 1, TQPixmap(SmallIcon(active))); } ++it; } @@ -151,7 +151,7 @@ void FilterTable::slotToggleEntry( ) void FilterTable::slotDeleteSystemEntry( ) { - QListViewItemIterator it(SystemFilterRules, QListViewItemIterator::Selected); + TQListViewItemIterator it(SystemFilterRules, TQListViewItemIterator::Selected); while ( it.current() ) { if (SystemFilterRules->isSelected( it.current())) delete it.current(); @@ -164,15 +164,15 @@ void FilterTable::slotDeleteSystemEntry( ) void FilterTable::slotToggleSystemEntry( ) { - QListViewItemIterator it(SystemFilterRules, QListViewItemIterator::Selected); + TQListViewItemIterator it(SystemFilterRules, TQListViewItemIterator::Selected); while ( it.current() ) { if (SystemFilterRules->isSelected( it.current())){ - QString active = "button_cancel"; + TQString active = "button_cancel"; if (it.current()->text(0).contains("button_cancel")) active = "button_ok"; it.current()->setText(0,active); - it.current()->setPixmap( 1, QPixmap(SmallIcon(active))); + it.current()->setPixmap( 1, TQPixmap(SmallIcon(active))); } ++it; } @@ -189,9 +189,9 @@ void FilterTable::slotToggleSystemEntry( ) // </connection> // <connection> // <sender>FilterRules</sender> -// <signal>contextMenuRequested(QListViewItem*,const QPoint&,int)</signal> +// <signal>contextMenuRequested(TQListViewItem*,const TQPoint&,int)</signal> // <receiver>FilterTable</receiver> -// <slot>FilterRules_contextMenuRequested(QListViewItem*,const QPoint&,int)</slot> +// <slot>FilterRules_contextMenuRequested(TQListViewItem*,const TQPoint&,int)</slot> // </connection> // </connections> // <includes> @@ -199,7 +199,7 @@ void FilterTable::slotToggleSystemEntry( ) // </includes> // <slots> // <slot>pushAdd_clicked()</slot> -// <slot>FilterRules_contextMenuRequested( QListViewItem *, const QPoint & point, int )</slot> +// <slot>FilterRules_contextMenuRequested( TQListViewItem *, const TQPoint & point, int )</slot> // <slot>slotDeleteEntry()</slot> // </slots> // <functions> |