summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authordeva <deva>2010-08-17 07:23:59 +0000
committerdeva <deva>2010-08-17 07:23:59 +0000
commit16fa999ed01f3f98e42e2b1248c7021d75b3ef75 (patch)
treed746f4b82cefbc8ddc3561a06d53b73b516c919c /client
parent9fcd6c27c2a61562e19cad2b665d54b5dd94d855 (diff)
Indentations...
Diffstat (limited to 'client')
-rw-r--r--client/mainwindow.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index d88ae5e..f7cb173 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -118,9 +118,9 @@ void MainWindow::closeCommit()
void MainWindow::closeNoCommit()
{
QMessageBox::information(this,
- "Closing without commit",
- "This session will be stored on this computer only."
- " To reopen it at a later time, simply open the same patient again.");
+ "Closing without commit",
+ "This session will be stored on this computer only."
+ " To reopen it at a later time, simply open the same patient again.");
sessions.add(cpr, user, netcom.sessionid);
isStored = true;
close();
@@ -129,10 +129,10 @@ void MainWindow::closeNoCommit()
void MainWindow::closeDiscard()
{
if(QMessageBox::question(this,
- "Discard",
- "This session will <strong>NOT</strong> be stored in the journal.<br/>"
- "Are you sure you want to continue?",
- QMessageBox::Yes | QMessageBox::No)
+ "Discard",
+ "This session will <strong>NOT</strong> be stored in the journal.<br/>"
+ "Are you sure you want to continue?",
+ QMessageBox::Yes | QMessageBox::No)
== QMessageBox::Yes) {
netcom.discard();
sessions.remove(cpr);
@@ -151,10 +151,10 @@ extern QWidget *viewer;
void MainWindow::closeEvent(QCloseEvent *event)
{
if(isStored || QMessageBox::question(this,
- "Discard",
- "This session will <strong>NOT</strong> be stored in the journal.<br/>"
- "Are you sure you want to continue?",
- QMessageBox::Yes | QMessageBox::No)
+ "Discard",
+ "This session will <strong>NOT</strong> be stored in the journal.<br/>"
+ "Are you sure you want to continue?",
+ QMessageBox::Yes | QMessageBox::No)
== QMessageBox::Yes) {
if(!isStored) {
netcom.discard();
@@ -171,7 +171,6 @@ void MainWindow::closeEvent(QCloseEvent *event)
event->accept();
if(viewer) viewer->close();
- // qApp->quit();
} else {
event->ignore();
}
@@ -225,13 +224,13 @@ void MainWindow::updateTemplateHeaders(QDomNode templatenode)
") - SessionID: " + netcom.sessionid);
}
-
void MainWindow::update()
{
QDomDocument xml_doc = netcom.send(templ);
QDomNodeList templates = xml_doc.documentElement().childNodes();
- QDomNode templatenode = templates.at(0); // There can be only one! (Swush, flomp)
+ // There can be only one! (Swush, flomp)
+ QDomNode templatenode = templates.at(0);
if(templatenode.toElement().tagName() == "error") {
QMessageBox::critical(this, "Error",
@@ -287,7 +286,8 @@ void MainWindow::update()
macro.init((QBoxLayout*)w->layout(), macros, initialising, netcom, templ);
if(macro.window != NULL) {
// Remove old connection (if any), to avoid multiple connections.
- disconnect(macro.window, SIGNAL(updateOnCommit()), this, SLOT(update()));
+ disconnect(macro.window, SIGNAL(updateOnCommit()),
+ this, SLOT(update()));
connect(macro.window, SIGNAL(updateOnCommit()), this, SLOT(update()));
}