From: tbaudier Date: Fri, 22 Jul 2016 13:29:53 +0000 (+0200) Subject: Add exit button for the PACS Connection GUI X-Git-Tag: v1.4.0~2^2~3 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a911ff2da59b5299c87ee7a2239f79a8695ff526;p=clitk.git Add exit button for the PACS Connection GUI --- diff --git a/vv/qt_ui/vvPacsConnection.ui b/vv/qt_ui/vvPacsConnection.ui index 3347fec..659eca3 100644 --- a/vv/qt_ui/vvPacsConnection.ui +++ b/vv/qt_ui/vvPacsConnection.ui @@ -790,6 +790,48 @@ Options + + + + 10 + 580 + 51 + 51 + + + + ... + + + + :/common/icons/standardbutton-cancel-16.png:/common/icons/standardbutton-cancel-16.png + + + + 32 + 32 + + + + + + true + + + + 10 + 630 + 51 + 20 + + + + Exit + + + Qt::AlignCenter + + groupBox_4 groupBox_3 label_ID @@ -814,6 +856,8 @@ helpButton optionsButton label_email_2 + exitButton + label_exit scanButton diff --git a/vv/vvQPacsConnection.cxx b/vv/vvQPacsConnection.cxx index 89ac841..ce38110 100644 --- a/vv/vvQPacsConnection.cxx +++ b/vv/vvQPacsConnection.cxx @@ -16,7 +16,7 @@ vvQPacsConnection::vvQPacsConnection(QWidget *i_parent) :QDialog(i_parent) { ui.setupUi(this); - setWindowTitle(QString::fromUtf8("PACS CONNECTIONHHHH")); + setWindowTitle(QString::fromUtf8("PACS CONNECTION")); createTreeView(); ui.tabFilter->setTabText(0,QString(tr("Modality"))); ui.tabFilter->setTabText(1,QString(tr("Date"))); @@ -31,10 +31,18 @@ vvQPacsConnection::vvQPacsConnection(QWidget *i_parent) connect(ui.networkCombo,SIGNAL(currentIndexChanged(int)),this,SLOT(chooseServer(int))); connect(ui.removeNetworkButton,SIGNAL(clicked()),this,SLOT(removeServer())); connect(ui.NetworkButton,SIGNAL(clicked()),this,SLOT(modifyServer())); + connect(ui.exitButton,SIGNAL(clicked()),this,SLOT(close())); update(); } +// Exit window +bool vvQPacsConnection::close() +{ + QApplication::restoreOverrideCursor(); + return QWidget::close(); +} + // remote a Dicom Server in VV settings void vvQPacsConnection::removeServer() { diff --git a/vv/vvQPacsConnection.h b/vv/vvQPacsConnection.h index 13ec9f9..4c98458 100644 --- a/vv/vvQPacsConnection.h +++ b/vv/vvQPacsConnection.h @@ -43,6 +43,7 @@ public slots: void on_importButton_clicked(); void chooseServer(int index); void removeServer(); + bool close(); void modifyServer(); private :