From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpf/src/ActiveMonitor.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'kpf/src/ActiveMonitor.cpp') diff --git a/kpf/src/ActiveMonitor.cpp b/kpf/src/ActiveMonitor.cpp index 8bd0c34a..5a11848d 100644 --- a/kpf/src/ActiveMonitor.cpp +++ b/kpf/src/ActiveMonitor.cpp @@ -21,7 +21,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include +#include #include #include @@ -38,16 +38,16 @@ namespace KPF ActiveMonitor::ActiveMonitor ( WebServer * server, - QWidget * parent, + TQWidget * parent, const char * name ) - : QWidget (parent, name), + : TQWidget (parent, name), server_ (server) { - view_ = new QListView(this); + view_ = new TQListView(this); view_->setAllColumnsShowFocus(true); - view_->setSelectionMode(QListView::Extended); + view_->setSelectionMode(TQListView::Extended); view_->addColumn(i18n("Status")); view_->addColumn(i18n("Progress")); @@ -57,36 +57,36 @@ namespace KPF view_->addColumn(i18n("Resource")); view_->addColumn(i18n("Host")); - QVBoxLayout * layout = new QVBoxLayout(this); + TQVBoxLayout * layout = new TQVBoxLayout(this); layout->addWidget(view_); connect ( view_, - SIGNAL(selectionChanged()), - SLOT(slotSelectionChanged()) + TQT_SIGNAL(selectionChanged()), + TQT_SLOT(slotSelectionChanged()) ); connect ( server_, - SIGNAL(connection(Server *)), - SLOT(slotConnection(Server *)) + TQT_SIGNAL(connection(Server *)), + TQT_SLOT(slotConnection(Server *)) ); connect ( server_, - SIGNAL(output(Server *, ulong)), - SLOT(slotOutput(Server *, ulong)) + TQT_SIGNAL(output(Server *, ulong)), + TQT_SLOT(slotOutput(Server *, ulong)) ); - connect(server_, SIGNAL(finished(Server *)), SLOT(slotFinished(Server *))); - connect(server_, SIGNAL(request(Server *)), SLOT(slotRequest(Server *))); - connect(server_, SIGNAL(response(Server *)), SLOT(slotResponse(Server *))); + connect(server_, TQT_SIGNAL(finished(Server *)), TQT_SLOT(slotFinished(Server *))); + connect(server_, TQT_SIGNAL(request(Server *)), TQT_SLOT(slotRequest(Server *))); + connect(server_, TQT_SIGNAL(response(Server *)), TQT_SLOT(slotResponse(Server *))); - connect(&cullTimer_, SIGNAL(timeout()), SLOT(slotCull())); + connect(&cullTimer_, TQT_SIGNAL(timeout()), TQT_SLOT(slotCull())); cullTimer_.start(1000); @@ -146,9 +146,9 @@ namespace KPF void ActiveMonitor::slotCull() { - QDateTime dt = QDateTime::currentDateTime(); + TQDateTime dt = TQDateTime::currentDateTime(); - QListViewItemIterator it(view_); + TQListViewItemIterator it(view_); for (; it.current(); ++it) { @@ -165,7 +165,7 @@ namespace KPF void ActiveMonitor::slotSelectionChanged() { - for (QListViewItemIterator it(view_); it.current(); ++it) + for (TQListViewItemIterator it(view_); it.current(); ++it) { ActiveMonitorItem * i = static_cast(it.current()); @@ -189,7 +189,7 @@ namespace KPF void ActiveMonitor::slotKillSelected() { - for (QListViewItemIterator it(view_); it.current(); ++it) + for (TQListViewItemIterator it(view_); it.current(); ++it) { ActiveMonitorItem * i = static_cast(it.current()); @@ -214,9 +214,9 @@ namespace KPF } void - ActiveMonitor::closeEvent(QCloseEvent * e) + ActiveMonitor::closeEvent(TQCloseEvent * e) { - QWidget::closeEvent(e); + TQWidget::closeEvent(e); emit(dying(this)); } -- cgit v1.2.1