signal valueSelected(string selected);
+ /* Keys.onPressed: {
+ console.log("tu ----");
+ if (event.key == Qt.Key_Escape)
+ rectangle1.expanded=false;
+ else if (event.key == Qt.Key_Space)
+ rectangle1.expanded=true;
+ else if (event.key == Qt.Key_Return){
+ rectangle1.expanded=false;
+ console.log("tu enter "+list1.content);
+ }
+ }
+ */
+
Text {
id: text1
width: rectangle1.width-15
anchors.centerIn: parent
font.pixelSize: rectangle1.height * .5;
onTextChanged: { rectangle1.valueSelected(text) }
+ z: expanded?0:1;
}
Rectangle {
rootObject, SLOT(setMaximumValue(QVariant)));
connect(rootObject, SIGNAL(cancelDownloading()),
- this, SIGNAL(cancelDownloading()));
+ this, SLOT(reject()));
#else
verticalLayout = new QVBoxLayout(this);
void XdxfDictDownloadProgressDialog::reject() {
+ qDebug("tu");
#ifndef Q_WS_MAEMO_5
- Q_EMIT cancelDownloading();
+ emit cancelDownloading();
+ emit setValue(-1);
#else
return;
#endif
this, SLOT(breakDownloading()));
connect(this, SIGNAL(downloadProgress(float)),
progressDialog, SLOT(updateProgress(float)));
-
- qDebug()<<"etam 3.1";
progressDialog->setText(tr("Downloading dictionaries list"));
progressDialog->show();
}
//if user cancel downloading we kill all running processes, hide progress dialog and set flag that user cancel downloading.
aborted = true;
http.kill();
- qDebug()<<"end download";
if(progressDialog && progressDialog->isVisible()) {
progressDialog->accept();
}