summaryrefslogtreecommitdiffstats
path: root/kpf/src/ActiveMonitor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kpf/src/ActiveMonitor.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpf/src/ActiveMonitor.cpp')
-rw-r--r--kpf/src/ActiveMonitor.cpp44
1 files changed, 22 insertions, 22 deletions
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 <qlayout.h>
+#include <tqlayout.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -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<ActiveMonitorItem *>(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<ActiveMonitorItem *>(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));
}