Fixed xdxf caching dialog to not allow reject only cancel
authorMateusz Półrola <mateusz.polrola@comarch.pl>
Tue, 7 Sep 2010 12:35:34 +0000 (14:35 +0200)
committerMateusz Półrola <mateusz.polrola@comarch.pl>
Tue, 7 Sep 2010 12:35:34 +0000 (14:35 +0200)
data/other/mdictionarywidget.desktop
debian/changelog
debian/control
mdictionary.pri
src/desktopWidget/desktopWidget.pro
src/mdictionary/mdictionary.pro
src/plugins/google/google.pro
src/plugins/xdxf/XdxfCachingDialog.cpp
src/plugins/xdxf/XdxfCachingDialog.h
src/plugins/xdxf/xdxf.pro

index 826b54f..14f34fc 100644 (file)
@@ -1,5 +1,5 @@
 [Desktop Entry]
 Name=mDictionary
 Type=qt
-X-Path=/usr/lib/hildon-desktop/mdictionarywidget
+X-Path=mdictionarywidget
 X-Multiple-Instances=false
index 850c361..6880238 100644 (file)
@@ -1,3 +1,4 @@
-mdictionary (1.0.0-2) unstable; urgency=low
-  * first version of maemo mDictionary
- -- Mateusz Półrola <mateusz.polrola@comarch.pl>  Fri, 06 Aug 2010 08:02:53 +0200
+mdictionary (2.0.0) stable; urgency=low
+  * initial release
+  * mdictionary 2.0.0 is a qt version of mdictionary
+ -- Mateusz Półrola <mateusz.polrola@comarch.pl>  Tue, 07 Sep 2010 12:19:18 +0200
index a8254ed..1a68d86 100644 (file)
@@ -5,6 +5,8 @@ Maintainer: Jakub Jaszczyński <jakub.jaszczynski@comarch.pl>, Piotr Pilarczyk <
 Build-Depends: debhelper (>= 5), libqt4-dev (>= 4.6), doxygen
 Standards-Version: 3.8.0
 
+
+
 Package: mdictionary
 Section: user/education
 Architecture: any
@@ -14,19 +16,19 @@ Description: Multilanguage dictionary
 Package: mdictionary-google-plugin
 Section: user/education
 Architecture: any
-Depends: mdictionary
+Depends: mdictionary, libqt4-network (>= 4.6)
 Description: Google plugin for mDictionary
 
 Package: mdictionary-homescreen-widget
 Section: user/education
 Architecture: any
-Depends: mdictionary
-Description: home sreen widget for mDictionary
+Depends: mdictionary, qt4-homescreen-loader
+Description: home screen widget for mDictionary
 
 Package: mdictionary-dev
 Section: devel
 Architecture: any
-Depends: libqt4-dev (>= 4.6)
+Depends: libqt4-dev (>= 4.6), libqt4-core (>= 4.6), libqt4-gui (>= 4.6), libqt4-xml (>= 4.6), libqt4-xmlpatterns (>= 4.6), libqt4-sql (>= 4.6), libqt4-sql-sqlite (>= 4.6), libqt4-dbus (>= 4.6), libqt4-wegbkit (>= 4.6),
 Description: mDictionary development files
 
 Package: mdictionary-doc
index 7973f09..3a5aeeb 100644 (file)
@@ -1,18 +1,6 @@
 PROJECTNAME = mdictionary
 VERSION = 0.1
 
-QT = \
-       core \
-       gui \
-       sql \
-       xml \
-       xmlpatterns \
-       webkit \
-    dbus \
-    network
-
-maemo5:QT += maemo5
-
 CONFIG += \
        qt \
     release
index 64820d8..1d792b1 100644 (file)
@@ -6,6 +6,10 @@ TEMPLATE = app
 
 include(../../mdictionary.pri)
 
+QT = core \
+    gui \
+    dbus
+
 SOURCES += \
     main.cpp \
     MainWidget.cpp
index afa7f87..b1d7a32 100644 (file)
@@ -3,6 +3,15 @@ TEMPLATE = app
 
 include(../../mdictionary.pri)
 
+QT = core \
+    gui \
+    xml \
+    xmlpatterns \
+    sql \
+    dbus \
+    webkit
+
+maemo5:QT += maemo5
 
 SOURCES += gui/main.cpp \
     backbone/ConfigGenerator.cpp \
index 48633dc..444472c 100644 (file)
@@ -2,6 +2,12 @@ TARGET = google
 
 include(../plugin.pri)
 
+QT = core \
+    gui \
+    network
+
+maemo5:QT += maemo5
+
 SOURCES +=  \
     GooglePlugin.cpp \
     TranslationGoogle.cpp \
index 3e0a2d6..7471f15 100644 (file)
@@ -57,6 +57,11 @@ XdxfCachingDialog::XdxfCachingDialog(XdxfPlugin *parent) {
     time.start();
 }
 
+
+void XdxfCachingDialog::reject() {
+    return;
+}
+
 void XdxfCachingDialog::updateCachingProgress(int progress, int time) {
     cachingProgressBar->setValue(progress);
 
@@ -68,5 +73,5 @@ void XdxfCachingDialog::updateCachingProgress(int progress, int time) {
     cachingLabel->setText(tr("Estimated time left: ") +
                           tr("%n second(s)", "", seconds));
     if(progress >= 100)
-        this->hide();
+        this->accept();
 }
index 3bbb2ee..aacb56d 100644 (file)
@@ -43,6 +43,9 @@ class XdxfCachingDialog : public QDialog
 public:
     explicit XdxfCachingDialog(XdxfPlugin *parent = 0);
 
+public Q_SLOTS:
+    void reject();
+
 Q_SIGNALS:
     //! signal emitted when user cancels caching of a dictionary
     void cancelCaching();
index d609a39..ef29877 100644 (file)
@@ -2,6 +2,13 @@ TARGET = xdxf
 
 include(../plugin.pri)
 
+QT = core \
+    gui \
+    xml \
+    sql
+
+maemo5:QT += maemo5
+
 SOURCES +=  \
     xdxfplugin.cpp \
     TranslationXdxf.cpp \