summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-11-03 11:28:29 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2011-11-03 11:28:29 +0100
commit140d002d641d22d2dc9e9a1e7c234b747c979a16 (patch)
tree12c128340e3aab8d01b3edec67575e82fe971d3c /client/mainwindow.cc
parentf8e858a204bdcfc955ebcec20a78d7a41f6076f5 (diff)
Added -n/--name parameter for displaying patient name in title bar of the mainwindow.
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index ece1572..27d8486 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -53,6 +53,9 @@
#include "debug.h"
+// Declared in pracro.cc
+extern QString patientname;
+
class Dbg : public QLabel {
public:
Dbg() {
@@ -99,7 +102,7 @@ MainWindow::MainWindow(QString patientid, QString course, QString templ,
this->course = course;
this->templ = templ;
- setWindowTitle("Pracro - " + patientid);
+ setWindowTitle("Pracro - " + patientid + ": " + patientname);
setWindowIcon(QIcon(":/icons/icon.png"));
QStatusBar *status = statusBar();