summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorsenator <senator>2010-10-13 12:51:39 +0000
committersenator <senator>2010-10-13 12:51:39 +0000
commit85215970258aa0ad45b287fb0224d61a9bfcada4 (patch)
treeff16a8f74814e3ff04a97fd1444657c5fd9eee29 /client
parent5f5f01c0e3825ff4dd2a5b7b51c08172c93674c3 (diff)
working on template ini file integration. not entirely done but compiles just fine
Diffstat (limited to 'client')
-rw-r--r--client/launcherwindow.cc3
-rw-r--r--client/launcherwindow.h2
-rw-r--r--client/pracro.cc2
3 files changed, 4 insertions, 3 deletions
diff --git a/client/launcherwindow.cc b/client/launcherwindow.cc
index a97a1b7..e1c62eb 100644
--- a/client/launcherwindow.cc
+++ b/client/launcherwindow.cc
@@ -39,7 +39,8 @@ LauncherWindow::LauncherWindow(QString arg, QString cpr, QString templ, QWidget
setWindowTitle(tr("Pracro Launcher"));
resize(250,80);
- QSettings templateConfig(QFileInfo(arg).absolutePath() + "/templates.ini", QSettings::IniFormat);
+ QSettings templateConfig(QFileInfo(arg).
+absolutePath() + "/templates.ini", QSettings::IniFormat);
QLabel *cprLabel = new QLabel(tr("Patient ID:"));
cprLineEdit = new QLineEdit();
diff --git a/client/launcherwindow.h b/client/launcherwindow.h
index 038bb20..fc7670f 100644
--- a/client/launcherwindow.h
+++ b/client/launcherwindow.h
@@ -37,7 +37,7 @@ class LauncherWindow : public QDialog
Q_OBJECT
public:
- LauncherWindow(QString, QString, QWidget *parent = 0);
+ LauncherWindow(QString, QString, QString, QWidget *parent = 0);
~LauncherWindow();
QString getCpr();
QString getTemplate();
diff --git a/client/pracro.cc b/client/pracro.cc
index 337702e..2a6a109 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
fixedfont = &f;
if(cpr == CPR_DEFAULT || templ == TEMPLATE_DEFAULT) {
- LauncherWindow lwnd(cpr, templ);
+ LauncherWindow lwnd(argv[0], cpr, templ);
if(lwnd.exec() == QDialog::Accepted && lwnd.getCpr() != "") {
cpr = lwnd.getCpr();
templ = lwnd.getTemplate();