From f8e858a204bdcfc955ebcec20a78d7a41f6076f5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 3 Nov 2011 11:07:10 +0100 Subject: Show pcpviewer side-by-side with mainwindow and close it upon mainwindow close. --- client/mainwindow.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/mainwindow.cc') diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 1a63434..ece1572 100644 --- a/client/mainwindow.cc +++ b/client/mainwindow.cc @@ -242,6 +242,8 @@ void MainWindow::closeEvent(QCloseEvent *event) } else { event->ignore(); } + + emit isClosing(); } void MainWindow::init() -- cgit v1.2.3 From 140d002d641d22d2dc9e9a1e7c234b747c979a16 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 3 Nov 2011 11:28:29 +0100 Subject: Added -n/--name parameter for displaying patient name in title bar of the mainwindow. --- client/mainwindow.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'client/mainwindow.cc') 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(); -- cgit v1.2.3