diff options
author | Lars Bisballe Jensen <larsbisballe@gmail.com> | 2011-11-03 11:34:04 +0100 |
---|---|---|
committer | Lars Bisballe Jensen <larsbisballe@gmail.com> | 2011-11-03 11:34:04 +0100 |
commit | fa13e95b495e49316524c27f6045c1c3cd2547ca (patch) | |
tree | 60c35916947217ff43049e5a6efed8a2c033bf66 /client/mainwindow.cc | |
parent | 592211cbd4b710caf8934e2806e259415087f69d (diff) | |
parent | 140d002d641d22d2dc9e9a1e7c234b747c979a16 (diff) |
Merge branch 'master' of http://git.aasimon.org/public/pracro
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r-- | client/mainwindow.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc index 700501f..680c235 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(); @@ -241,6 +244,8 @@ void MainWindow::closeEvent(QCloseEvent *event) } else { event->ignore(); } + + emit isClosing(); } void MainWindow::init() |