#include <QDateTime>
#include <QFileDialog>
#include <QScrollArea>
-
+#include <QSslConfiguration>
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
qDebug()<<"addDB";
if(deb)QMessageBox::information(this, trUtf8("addDB", "box title to debug addDB"), "type : "+tmp);
bool ok=0;
- QString cur=beforekey;
+ QString cur=label->text();
QString a, b, c=QInputDialog::getText(this, trUtf8("label", "Title of box where ask for new label"), trUtf8("Enter his label", "his/her/?they? I've forget my school lesson"), QLineEdit::Normal, QString(""), &ok);
if ((c=="")||(ok==0))return;
b=QInputDialog::getText(this, trUtf8("keyword", "Title of box where ask for new keyword"), trUtf8("Enter they keyword (no limit !)"), QLineEdit::Normal, cur, &ok);
QString b;
bool ok=1;
if(conf->value("askkeyword").toBool())b=QInputDialog::getText(this, trUtf8("chooseDB"), trUtf8("Enter the keyword : "), QLineEdit::Normal, label->text(), &ok);
- else b=beforekey;
+ else b=label->text();
if(ok)chooseDB(conf->value(QString("currenttype")).toString(), b);
+
}
void MainWindow::chooseDB(const QString & b){
flush();
connect(&m_WebCtrl, SIGNAL(finished(QNetworkReply*)),SLOT(fileDownloaded(QNetworkReply*)));
QNetworkRequest request(url);
+ QSslConfiguration ssl;
+ ssl.setProtocol(QSsl::TlsV1SslV3);
+ request.setSslConfiguration(ssl);
m_WebCtrl.get(request);
}
net=new QNetworkAccessManager(this);
b.open(QIODevice::ReadOnly);
QNetworkRequest * rq= new QNetworkRequest(upload);
+ QSslConfiguration ssl;
+ ssl.setProtocol(QSsl::TlsV1SslV3);
+ rq->setSslConfiguration(ssl);
//rq->setSslConfiguration(QSslConfiguration::defaultConfiguration());
rep=net->put(*rq, b.readAll());
b.close();