starDict dialog in qml
[mdictionary] / src / plugins / stardict / stardict.pro
index 8ae6fe1..47a8f38 100644 (file)
@@ -5,7 +5,8 @@ include(../plugin.pri)
 QT = core \
     gui \
     xml \
-    sql
+    sql \
+    declarative
 
 maemo5:QT += maemo5
 
@@ -20,7 +21,6 @@ SOURCES +=  \
     UncompressedReader.cpp \
     StarDictReaderFactory.cpp
 
-
 HEADERS += \
     StarDictPlugin.h \
     TranslationStarDict.h \
@@ -35,20 +35,35 @@ HEADERS += \
     StarDictReaderFactory.h \
     StarDictReader.h
 
-RESOURCES += \
-    StarDict.qrc
+RESOURCES += StarDict.qrc
 
 TRANSLATIONS += pl_PL.ts \
                 en_US.ts
     
 unix {
-  INSTALLS += plugin-icon
-
+    meego {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/StarDictDialog.qml
+    }
+    else:maemo5 {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/StarDictDialog.qml
+    }
+    else {
+        qmls.path = $$DATA_DIR/qml
+        qmls.files += ../../mdictionary/qml/StarDictDialog.qml
+    }
 
+    plugin-icon.path = $$DATA_DIR
+    plugin-icon.files += stardict.png
 
-  plugin-icon.path = $$DATA_DIR
-  plugin-icon.files += stardict.png
+    INSTALLS += plugin-icon \
+                qmls
 }
 
-check.commands = echo 'No check here'
+check.commands = echo \
+                'No check here'
 QMAKE_EXTRA_TARGETS += check
+
+OTHER_FILES += \
+    ../../mdictionary/qml/StarDictDialog.qml \