summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-11-04 09:27:32 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2011-11-04 09:27:32 +0100
commit59e00220f562b3840295d9f2dc1eb6038a7c09c2 (patch)
treeb15eaaefd5e1874811000c261058e0a0a4cdb474 /client/mainwindow.cc
parent140d002d641d22d2dc9e9a1e7c234b747c979a16 (diff)
Replace --name with --title.
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 27d8486..9aa6241 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -53,9 +53,6 @@
#include "debug.h"
-// Declared in pracro.cc
-extern QString patientname;
-
class Dbg : public QLabel {
public:
Dbg() {
@@ -70,8 +67,8 @@ public:
MainWindow *gmainwindow = NULL;
-MainWindow::MainWindow(QString patientid, QString course, QString templ,
- QString host, quint16 port, QString user)
+MainWindow::MainWindow(QString patientid, QString title, QString course,
+ QString templ, QString host, quint16 port, QString user)
: QMainWindow(0), // Qt::WindowContextHelpButtonHint
netcom(host, port)
{
@@ -102,7 +99,7 @@ MainWindow::MainWindow(QString patientid, QString course, QString templ,
this->course = course;
this->templ = templ;
- setWindowTitle("Pracro - " + patientid + ": " + patientname);
+ setWindowTitle("Pracro - " + title);
setWindowIcon(QIcon(":/icons/icon.png"));
QStatusBar *status = statusBar();