From 85215970258aa0ad45b287fb0224d61a9bfcada4 Mon Sep 17 00:00:00 2001 From: senator Date: Wed, 13 Oct 2010 12:51:39 +0000 Subject: working on template ini file integration. not entirely done but compiles just fine --- client/launcherwindow.cc | 3 ++- client/launcherwindow.h | 2 +- client/pracro.cc | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'client') 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(); -- cgit v1.2.3