fix bug
[mdictionary] / src / mdictionary / gui / SearchBarWidget.cpp
index 81795d5..95e2543 100644 (file)
@@ -97,8 +97,8 @@ SearchBarWidget::SearchBarWidget(QWidget *parent) : QWidget(parent) {
     emit setEnableHistoryPrev(false);
 
     completerModel = new QStringListModel(this);
- //   connect(&delayTimer, SIGNAL(timeout()),
- //           this, SLOT(delaySearchTimeout()));
+    connect(&delayTimer, SIGNAL(timeout()),
+            this, SLOT(delaySearchTimeout()));
 
     view->setFocus();
 
@@ -364,6 +364,7 @@ void SearchBarWidget::setEnabled(bool enabled) {
         historyShowToolButton->setEnabled(false);
     }
 #endif
+qDebug()<<"tu2???";
 }
 
 void SearchBarWidget::setBusy() {
@@ -371,7 +372,7 @@ void SearchBarWidget::setBusy() {
     if(busy) return;
 
 #ifndef Q_WS_MAEMO_5
-    busyTimer->start(500);
+    busyTimer->start(50);
     emit setButtonText(tr("Stop"));
     this->setMaximumHeight(88);
     progressBar->show();
@@ -390,7 +391,7 @@ void SearchBarWidget::setBusy() {
 }
 
 void SearchBarWidget::updateBusyTimer(){
-   // qDebug()<<"test12";
+    qDebug()<<"test12";
     if(progressMax==true){
         emit progresSetValue2(0);
         progressMax=false;
@@ -399,7 +400,7 @@ void SearchBarWidget::updateBusyTimer(){
         emit progresSetValue2(100);
         progressMax=true;
     }
-    busyTimer->start(500);
+    busyTimer->start(50);
 }
 
 void SearchBarWidget::setIdle() {