Modified google plugin dialog
[mdictionary] / src / plugins / xdxf / XdxfCachingDialog.cpp
index 8083ae6..3e0a2d6 100644 (file)
@@ -28,9 +28,7 @@
 #include <QDebug>
 
 
-XdxfCachingDialog::XdxfCachingDialog(XdxfPlugin *parent) //:
-//    QDialog((QWidget*)parent)
-{
+XdxfCachingDialog::XdxfCachingDialog(XdxfPlugin *parent) {
     verticalLayout = new QVBoxLayout(this);
     setLayout(verticalLayout);
 
@@ -54,8 +52,8 @@ XdxfCachingDialog::XdxfCachingDialog(XdxfPlugin *parent) //:
     connect(cancelButton, SIGNAL(clicked()),
             this, SIGNAL(cancelCaching()));
 
-   connect(parent, SIGNAL(updateCachingProgress(int, int)),
-           this, SLOT(updateCachingProgress(int, int)));
+    connect(parent, SIGNAL(updateCachingProgress(int, int)),
+       this, SLOT(updateCachingProgress(int, int)));
     time.start();
 }
 
@@ -71,10 +69,4 @@ void XdxfCachingDialog::updateCachingProgress(int progress, int time) {
                           tr("%n second(s)", "", seconds));
     if(progress >= 100)
         this->hide();
-        
-
-}
-
-void XdxfCachingDialog::cancelButtonClicked(){
-    return;
 }