summaryrefslogtreecommitdiffstats
path: root/src/usability.ui.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-07-27 16:57:53 +0200
committerSlávek Banko <[email protected]>2013-07-27 18:48:46 +0200
commit7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch)
tree4655c7263ca5c64d23d10167cb459dd9cb253815 /src/usability.ui.h
parent88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff)
downloadtork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz
tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip
Initial TQt conversion
Diffstat (limited to 'src/usability.ui.h')
-rw-r--r--src/usability.ui.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/usability.ui.h b/src/usability.ui.h
index 4d0f677..b4866c0 100644
--- a/src/usability.ui.h
+++ b/src/usability.ui.h
@@ -23,17 +23,17 @@
#include "torkconfig.h"
#include "portsandnames.h"
#include <klocale.h>
-#include <qtooltip.h>
-#include <qpopupmenu.h>
+#include <ntqtooltip.h>
+#include <ntqpopupmenu.h>
#include <kdebug.h>
void Usability::init()
{
- QListViewItemIterator it(LongLivedPorts);
+ TQListViewItemIterator it(LongLivedPorts);
while ( it.current() ) {
int i;
- QString port;
+ TQString port;
for (i = 0; _port_name[i].port; ++i) {
portsandnames_t *pics = &_port_name[i];
if (it.current()->text(0) == pics->name){
@@ -47,13 +47,13 @@ void Usability::init()
++it;
}
- QStringList existingTracks = TorkConfig::trackHostExits();
- QListViewItem *tm;
- for ( QStringList::Iterator it = existingTracks.begin(); it != existingTracks.end(); ++it )
+ TQStringList existingTracks = TorkConfig::trackHostExits();
+ TQListViewItem *tm;
+ for ( TQStringList::Iterator it = existingTracks.begin(); it != existingTracks.end(); ++it )
{
if ((*it).isEmpty())
continue;
- tm = new QListViewItem(TrackHostExits,(*it));
+ tm = new TQListViewItem(TrackHostExits,(*it));
}
}
@@ -68,15 +68,15 @@ void Usability::LongLivedPorts_selectionChanged()
void Usability::PushAdd_clicked()
{
- new QListViewItem(TrackHostExits,NewHost->text());
+ new TQListViewItem(TrackHostExits,NewHost->text());
}
-void Usability::TrackHostExits_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void Usability::TrackHostExits_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
- QPopupMenu *menu = new QPopupMenu( TrackHostExits );
+ TQPopupMenu *menu = new TQPopupMenu( TrackHostExits );
menu->clear();
menu->insertItem( "Delete Entry", this,SLOT(slotDeleteEntry()) );
@@ -88,7 +88,7 @@ void Usability::TrackHostExits_contextMenuRequested( QListViewItem *, const QPoi
void Usability::slotDeleteEntry( )
{
- QListViewItemIterator it(TrackHostExits, QListViewItemIterator::Selected);
+ TQListViewItemIterator it(TrackHostExits, TQListViewItemIterator::Selected);
while ( it.current() ) {
if (TrackHostExits->isSelected( it.current()))
delete it.current();
@@ -108,9 +108,9 @@ void Usability::slotDeleteEntry( )
// </connection>
// <connection>
// <sender>TrackHostExits</sender>
-// <signal>contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</signal>
+// <signal>contextMenuRequested(TQListViewItem*,const TQPoint&amp;,int)</signal>
// <receiver>Usability</receiver>
-// <slot>TrackHostExits_contextMenuRequested(QListViewItem*,const QPoint&amp;,int)</slot>
+// <slot>TrackHostExits_contextMenuRequested(TQListViewItem*,const TQPoint&amp;,int)</slot>
// </connection>
// <connection>
// <sender>PushAdd</sender>
@@ -127,7 +127,7 @@ void Usability::slotDeleteEntry( )
// </signals>
// <slots>
// <slot>LongLivedPorts_selectionChanged()</slot>
-// <slot>TrackHostExits_contextMenuRequested( QListViewItem *, const QPoint &amp; point, int )</slot>
+// <slot>TrackHostExits_contextMenuRequested( TQListViewItem *, const TQPoint &amp; point, int )</slot>
// <slot>slotDeleteEntry()</slot>
// <slot>PushAdd_clicked()</slot>
// </slots>
@@ -142,7 +142,7 @@ void Usability::slotDeleteEntry( )
void Usability::clearSelected_clicked()
{
- QListViewItemIterator it(LongLivedPorts, QListViewItemIterator::Selected);
+ TQListViewItemIterator it(LongLivedPorts, TQListViewItemIterator::Selected);
while ( it.current() ) {
it.current()->listView()->setSelected(it.current(),false);
++it;