diff options
Diffstat (limited to 'src/server.ui.h')
-rw-r--r-- | src/server.ui.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/server.ui.h b/src/server.ui.h index 19b083e..d46af71 100644 --- a/src/server.ui.h +++ b/src/server.ui.h @@ -23,8 +23,8 @@ #include "upnpmanager.h" #include <klocale.h> #include <kdebug.h> -#include <qtooltip.h> -#include <qpopupmenu.h> +#include <ntqtooltip.h> +#include <ntqpopupmenu.h> #include <kiconloader.h> #ifndef EXTERNAL_GEOIP @@ -43,26 +43,26 @@ void MyServer::init() if (UPnPManager::Manager()->routersDiscovered()) kcfg_ForwardPorts->setEnabled(true); - MyFamily->setSelectionMode( QListView::Extended ); - MyFamily->setColumnWidthMode(0, QListView::Manual); + MyFamily->setSelectionMode( TQListView::Extended ); + MyFamily->setColumnWidthMode(0, TQListView::Manual); MyFamily->hideColumn(0); MyFamily->header()->setResizeEnabled(FALSE, 0); - MyFamily->setColumnWidthMode(1, QListView::Manual); + MyFamily->setColumnWidthMode(1, TQListView::Manual); MyFamily->hideColumn(1); MyFamily->header()->setResizeEnabled(FALSE, 1); - MyFamily->setColumnWidthMode(2, QListView::Manual); + MyFamily->setColumnWidthMode(2, TQListView::Manual); MyFamily->hideColumn(2); MyFamily->header()->setResizeEnabled(FALSE, 2); - MyFamily->setResizeMode( QListView::LastColumn ); + MyFamily->setResizeMode( TQListView::LastColumn ); - QStringList existingServers = TorkConfig::myFamily(); - QListViewItem *tm; - QString fp; - QString nick; - QString geoipcc; - QString countryName; + TQStringList existingServers = TorkConfig::myFamily(); + TQListViewItem *tm; + TQString fp; + TQString nick; + TQString geoipcc; + TQString countryName; - for ( QStringList::Iterator it = existingServers.begin(); it != existingServers.end(); ++it ) + for ( TQStringList::Iterator it = existingServers.begin(); it != existingServers.end(); ++it ) { if ((*it).isEmpty()) continue; @@ -74,15 +74,15 @@ void MyServer::init() nick = (*it).section("-",2); countryName = GeoIP_country_name[(geoipcc).toInt()]; - tm = new QListViewItem(MyFamily,countryName,geoipcc,fp,nick); - tm->setPixmap(3,QPixmap(SmallIcon("tork_" + QString(GeoIP_country_code[geoipcc.toInt()]).lower()))); + tm = new TQListViewItem(MyFamily,countryName,geoipcc,fp,nick); + tm->setPixmap(3,TQPixmap(SmallIcon("tork_" + TQString(GeoIP_country_code[geoipcc.toInt()]).lower()))); } ExitPolicy->setSorting(-1,false); - QStringList exitPolicy = TorkConfig::exitPolicy(); - for ( QStringList::Iterator it = exitPolicy.end(); ; --it ) + TQStringList exitPolicy = TorkConfig::exitPolicy(); + for ( TQStringList::Iterator it = exitPolicy.end(); ; --it ) { if ((it == exitPolicy.begin()) && ((*it).isEmpty())) break; @@ -90,11 +90,11 @@ void MyServer::init() if ((*it).isEmpty()) continue; - QString policy = (*it).section(" ",0,0); - QString section2 = (*it).section(" ",1,1); - QString ip = section2.section(":",0,0); - QString port = section2.section(":",1,1); - tm = new QListViewItem(ExitPolicy,policy, ip,port); + TQString policy = (*it).section(" ",0,0); + TQString section2 = (*it).section(" ",1,1); + TQString ip = section2.section(":",0,0); + TQString port = section2.section(":",1,1); + tm = new TQListViewItem(ExitPolicy,policy, ip,port); if (it == exitPolicy.begin()) break; @@ -152,20 +152,20 @@ void MyServer::checkBox6_toggled( bool state) void MyServer::pushAdd2_clicked() { - QString port; + TQString port; if (SocksPort->text() == "0") port = "*"; else port = SocksPort->text(); - new QListViewItem(ExitPolicy,Policy->text(0), SocksAddress->text(), port); + new TQListViewItem(ExitPolicy,Policy->text(0), SocksAddress->text(), port); } -void MyServer::ExitPolicy_contextMenuRequested( QListViewItem *, const QPoint &point, int ) +void MyServer::ExitPolicy_contextMenuRequested( TQListViewItem *, const TQPoint &point, int ) { - QPopupMenu *menu = new QPopupMenu( ExitPolicy ); + TQPopupMenu *menu = new TQPopupMenu( ExitPolicy ); menu->clear(); menu->insertItem( "Delete Entry", this,SLOT(slotDeleteEntry()) ); @@ -177,7 +177,7 @@ void MyServer::ExitPolicy_contextMenuRequested( QListViewItem *, const QPoint &p void MyServer::slotDeleteEntry( ) { - QListViewItemIterator it(ExitPolicy, QListViewItemIterator::Selected); + TQListViewItemIterator it(ExitPolicy, TQListViewItemIterator::Selected); while ( it.current() ) { if (ExitPolicy->isSelected( it.current())) delete it.current(); @@ -191,7 +191,7 @@ void MyServer::slotDeleteEntry( ) void MyServer::pushButton2_clicked() { - QListViewItemIterator it(MyFamily, QListViewItemIterator::Selected); + TQListViewItemIterator it(MyFamily, TQListViewItemIterator::Selected); while ( it.current() ) { delete it.current(); ++it; |