summaryrefslogtreecommitdiff
path: root/client/pracro.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/pracro.cc
parent140d002d641d22d2dc9e9a1e7c234b747c979a16 (diff)
Replace --name with --title.
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/pracro.cc b/client/pracro.cc
index abc2374..1e11e95 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -46,7 +46,6 @@
#define CONFIG_DEFAULT "pracro.ini"
QString cpr;
-QString patientname;
QString user = USER_DEFAULT;
QString config = CONFIG_DEFAULT;
QString host;
@@ -66,7 +65,7 @@ static void print_usage()
" Server.\n");
printf(" -C --course COURSE Lists templates in COURSE.\n");
printf(" -P, --patient PATIENTID Defines the patientid for use with the macro.\n");
- printf(" -n, --name PATIENTNAME Defines the patient name for display in the window header.\n");
+ printf(" -T, --title TITLE Sets the string used in the mainwindow title.\n");
printf(" -c, --config FILE The configfile to use. Default is \""CONFIG_DEFAULT"\"\n");
printf(" -u, -U, --user USER Defines the requesting user(not the patient),\n"
" defaults to \""USER_DEFAULT"\"\n");
@@ -100,6 +99,7 @@ int main(int argc, char *argv[])
QString course;
QString templs;
bool show_viewer = false;
+ QString title;
QStringList args = app.arguments();
QStringList::iterator arg = args.begin();
@@ -120,9 +120,9 @@ int main(int argc, char *argv[])
*arg == "-V") {
show_viewer = true;
}
- else if(*arg == "--name" ||
- *arg == "-n") {
- patientname = getParam(args, arg);
+ else if(*arg == "--title" ||
+ *arg == "-T") {
+ title = getParam(args, arg);
}
else if(*arg == "--user" ||
*arg == "-U" ||
@@ -188,7 +188,7 @@ int main(int argc, char *argv[])
}
*/
- MainWindow mainwindow(cpr, course, templ, host, port, user);
+ MainWindow mainwindow(cpr, title, course, templ, host, port, user);
mainwindow.show();
PCPViewer *pcpviewer = NULL;