From 59e00220f562b3840295d9f2dc1eb6038a7c09c2 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 4 Nov 2011 09:27:32 +0100 Subject: Replace --name with --title. --- client/mainwindow.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'client/mainwindow.cc') 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(); -- cgit v1.2.3