]> Creatis software - clitk.git/commitdiff
parameterizing settings path and settings format in constructor
authorMaxime <mpech@russule.clb.loc>
Thu, 12 May 2011 13:23:11 +0000 (15:23 +0200)
committerMaxime <mpech@russule.clb.loc>
Thu, 12 May 2011 13:23:11 +0000 (15:23 +0200)
vv/vvMainWindow.cxx
vv/vvRegisterForm.cxx
vv/vvRegisterForm.h

index 95df533c63e923238f85f943c6fb5857932a858c..5225a036664de71c6f85b9046904aa0a71ac28f1 100644 (file)
@@ -331,7 +331,7 @@ vvMainWindow::vvMainWindow():vvMainWindowBase()
 
 void vvMainWindow::show(){
   vvMainWindowBase::show();
-  vvRegisterForm* registerForm = new vvRegisterForm(QUrl("http://localhost/vvregister/write.php"));
+  vvRegisterForm* registerForm = new vvRegisterForm(QUrl("http://localhost/vvregister/write.php"), getVVSettingsPath(), getSettingsOptionFormat());
   if(registerForm->canPush()){
     registerForm->show();
     registerForm->acquitPushed();//too bad if there is not internet connection anymore.
index d77b8fd1a5bc6018e1c7819e07c0722c7ea8e76b..839887fd0d84b34dc4ddc025e0b14fd03b0c8958 100644 (file)
@@ -24,7 +24,7 @@
 #include "vvCommon.h"
 #include "vvUtils.h"
 
-vvRegisterForm::vvRegisterForm(QUrl url):url(url), settings(getVVSettingsPath(), getSettingsOptionFormat()){ 
+vvRegisterForm::vvRegisterForm(QUrl url, QString path, QSettings::Format format):url(url), settings(path, format){ 
   manager = new QNetworkAccessManager(this);
   setupUi(this);
 }
index e5f1ea682979bf913100499ef8a51efda6c3fc8c..ab41f39018634b5dd7336c7b21606c3374171c48 100644 (file)
@@ -27,7 +27,7 @@ class vvRegisterForm : public QDialog, private Ui::vvRegisterForm
     Q_OBJECT
 
 public:
-    vvRegisterForm(QUrl url);
+    vvRegisterForm(QUrl url, QString path, QSettings::Format format);
     void sendData();
     ~vvRegisterForm() {}
     virtual bool canPush();