summaryrefslogtreecommitdiffstats
path: root/src/gui/processesDialog.cpp
diff options
context:
space:
mode:
authorFabian Schillinger2010-11-05 11:14:22 +0100
committerFabian Schillinger2010-11-05 11:14:22 +0100
commitded15ea687403e165914b746e948bce2cc78bc57 (patch)
tree351c2d2afddcfc47ae442b14e75ae98fc523db61 /src/gui/processesDialog.cpp
parentMerge branch 'master' of openslx.org:pvs (diff)
downloadpvs-ded15ea687403e165914b746e948bce2cc78bc57.tar.gz
pvs-ded15ea687403e165914b746e948bce2cc78bc57.tar.xz
pvs-ded15ea687403e165914b746e948bce2cc78bc57.zip
Process start/stop/view functionality
Cleanup
Diffstat (limited to 'src/gui/processesDialog.cpp')
-rw-r--r--src/gui/processesDialog.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/processesDialog.cpp b/src/gui/processesDialog.cpp
index 49535d5..7c0405c 100644
--- a/src/gui/processesDialog.cpp
+++ b/src/gui/processesDialog.cpp
@@ -49,13 +49,24 @@ ProcessDialog::ProcessDialog(QDialog *parent, int displayedClientNameEnum) :
break;
}
}
+
+ QTimer *refreshTimer = new QTimer(this);
+ connect(refreshTimer, SIGNAL(timeout()), this, SLOT(currRefr()));
+ refreshTimer->start(5000);
+
}
// if other Tab is activated we say our tab to refresh the processList
void ProcessDialog::currChanged()
{
ProcessWidget *temp = static_cast<ProcessWidget*>(tWidget->currentWidget());
- temp->refrProcessList();
+ temp->refrProcessList(false);
+}
+
+void ProcessDialog::currRefr()
+{
+ ProcessWidget *temp = static_cast<ProcessWidget*>(tWidget->currentWidget());
+ temp->refrProcessList(true);
}
ProcessDialog::~ProcessDialog()