From 7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 27 Jul 2013 16:57:53 +0200 Subject: Initial TQt conversion --- src/maxmin.ui.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/maxmin.ui.h') diff --git a/src/maxmin.ui.h b/src/maxmin.ui.h index 05e0b15..95d8a1e 100644 --- a/src/maxmin.ui.h +++ b/src/maxmin.ui.h @@ -21,19 +21,19 @@ #include "torkconfig.h" #include #include -#include -#include +#include +#include void MaxMin::init() { - QStringList bandwidthSlots = TorkConfig::bandwidthSlots(); - for ( QStringList::Iterator it = bandwidthSlots.begin(); it != bandwidthSlots.end(); ++it ) + TQStringList bandwidthSlots = TorkConfig::bandwidthSlots(); + for ( TQStringList::Iterator it = bandwidthSlots.begin(); it != bandwidthSlots.end(); ++it ) { if ((*it).isEmpty()) continue; - new QListViewItem(timedBandwidthList,(*it).section("\n",-5,-5), + new TQListViewItem(timedBandwidthList,(*it).section("\n",-5,-5), (*it).section("\n",-4,-4),(*it).section("\n",-3,-3),(*it).section("\n",-2,-2),(*it).section("\n",-1)); } @@ -82,19 +82,19 @@ void MaxMin::kcfg_BandwidthBurst_valueChanged( int newValue) void MaxMin::pushButton1_clicked() { - QString bwtime = theTime->time().toString(); - QString max = QString("%1").arg(kcfg_BandwidthRate->value()); - QString burst = QString("%1").arg(kcfg_BandwidthBurst->value()); - QString adv = QString("%1").arg(kcfg_MaxAdvertisedBandwidth->value()); + TQString bwtime = theTime->time().toString(); + TQString max = TQString("%1").arg(kcfg_BandwidthRate->value()); + TQString burst = TQString("%1").arg(kcfg_BandwidthBurst->value()); + TQString adv = TQString("%1").arg(kcfg_MaxAdvertisedBandwidth->value()); - new QListViewItem(timedBandwidthList,bwtime,theDay->currentText(),max,burst,adv); + new TQListViewItem(timedBandwidthList,bwtime,theDay->currentText(),max,burst,adv); } -void MaxMin::timedBandwidthList_contextMenuRequested( QListViewItem *, const QPoint &point, int ) +void MaxMin::timedBandwidthList_contextMenuRequested( TQListViewItem *, const TQPoint &point, int ) { - QPopupMenu *menu = new QPopupMenu( timedBandwidthList ); + TQPopupMenu *menu = new TQPopupMenu( timedBandwidthList ); menu->clear(); menu->insertItem( "Delete Entry", this,SLOT(slotDeleteEntry()) ); @@ -106,7 +106,7 @@ void MaxMin::timedBandwidthList_contextMenuRequested( QListViewItem *, const QPo void MaxMin::slotDeleteEntry( ) { - QListViewItemIterator it(timedBandwidthList, QListViewItemIterator::Selected); + TQListViewItemIterator it(timedBandwidthList, TQListViewItemIterator::Selected); while ( it.current() ) { if (timedBandwidthList->isSelected( it.current())) delete it.current(); -- cgit v1.2.1