summaryrefslogtreecommitdiffstats
path: root/src/maxmin.ui.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-27 16:57:53 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-27 18:48:46 +0200
commit7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch)
tree4655c7263ca5c64d23d10167cb459dd9cb253815 /src/maxmin.ui.h
parent88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff)
downloadtork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz
tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip
Initial TQt conversion
Diffstat (limited to 'src/maxmin.ui.h')
-rw-r--r--src/maxmin.ui.h26
1 files changed, 13 insertions, 13 deletions
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 <klocale.h>
#include <kmessagebox.h>
-#include <qtooltip.h>
-#include <qpopupmenu.h>
+#include <ntqtooltip.h>
+#include <ntqpopupmenu.h>
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();