Merge branch 'master' into cache
authorJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Thu, 19 Aug 2010 07:06:10 +0000 (09:06 +0200)
committerJakub Jaszczynski <j.j.jaszczynski@gmail.com>
Thu, 19 Aug 2010 07:06:10 +0000 (09:06 +0200)
Conflicts:
trunk/src/base/base.pro
trunk/src/plugins/xdxf/src/xdxfplugin.cpp

1  2 
trunk/src/base/base.pro
trunk/src/base/gui/TranslationWidget.cpp
trunk/src/base/gui/TranslationWidget.h
trunk/src/plugins/xdxf/src/xdxfplugin.cpp

@@@ -1,28 -1,17 +1,23 @@@
- #-------------------------------------------------
- #
+ # -------------------------------------------------
  # Project created by QtCreator 2010-08-03T08:54:27
- #
 -# -------------------------------------------------
 +#-------------------------------------------------
 +
- QT       += core gui xmlpatterns xml
+ QT += core \
+     gui \
 -    sql
++    sql \
++    xml \
++    xmlpatterns
++
+ maemo5:QT += maemo5
 +
- maemo5 {
-     QT += maemo5
- }
 +
  TARGET = mdictionary
  TEMPLATE = app
  MDICT_BINDIR = $$[MDICT_BINDIR]
- isEmpty(MDICT_BINDIR) {
-   MDICT_BINDIR = .
- }
+ isEmpty(MDICT_BINDIR):MDICT_BINDIR = .
  DESTDIR = $${MDICT_BINDIR}
- SOURCES += gui/main.cpp\
-         gui/MainWindow.cpp \
+ SOURCES += gui/main.cpp \
+     gui/MainWindow.cpp \
      gui/SearchBarWidget.cpp \
      gui/WordListWidget.cpp \
      gui/TranslationWidget.cpp \
@@@ -49,40 -45,41 +51,43 @@@ HEADERS  += gui/MainWindow.h 
      gui/TranslationWidgetAutoResizer.h \
      ../includes/History.h \
      gui/HistoryListDialog.h \
-     ../includes/GUIInterface.h
+     ../includes/GUIInterface.h \
+     gui/WordListProxyStyle.h \
+     backbone/Bookmarks.h \
+     backbone/BookmarkTranslations.h \
+     gui/SettingsWidget.h \
+     gui/BookmarksWidget.h \
+     gui/WelcomeScreenWidget.h
  
  FORMS    += gui/MainWindow.ui
- unix {
-   #VARIABLES
-   isEmpty(PREFIX) {
-     PREFIX = /usr
-   }
-   BINDIR = $$PREFIX/bin
-   DATADIR =$$PREFIX/share
-   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
-   #MAKE INSTALL
-   INSTALLS += target desktop icon64 configs
-   configs.path = ~/.mdictionary
-   configs.files += ../../../data/mdictionary.defaults
-   target.path =$$BINDIR
- maemo5 {
-   desktop.path = $$DATADIR/applications/hildon
-   icon64.path = $$DATADIR/icons/hicolor/64x64/hildon
- }
- unix {
-   desktop.path = $$DATADIR/applications
-   icon64.path = $$DATADIR/icons
- }
-   desktop.files += ../../../data/other/$${TARGET}.desktop
-   icon64.files += ../../../data/icons/64x64/$${TARGET}.png
+ RESOURCES += gui/gui.qrc
+ unix { 
+     # VARIABLES
+     isEmpty(PREFIX):PREFIX = /usr
+     BINDIR = $$PREFIX/bin
+     DATADIR = $$PREFIX/share
+     DEFINES += DATADIR=\\\"$$DATADIR\\\" \
+         PKGDATADIR=\\\"$$PKGDATADIR\\\"
+     
+     # MAKE INSTALL
+     INSTALLS += target \
+         desktop \
+         icon64 \
+         configs
+     configs.path = ~/.mdictionary
+     configs.files += ../../../data/mdictionary.defaults
+     target.path = $$BINDIR
+     maemo5 { 
+         desktop.path = $$DATADIR/applications/hildon
+         icon64.path = $$DATADIR/icons/hicolor/64x64/hildon
+     }
+     !maemo5 { 
+         desktop.path = $$DATADIR/applications
+         icon64.path = $$DATADIR/icons
+     }
+     desktop.files += ../../../data/other/$${TARGET}.desktop
+     icon64.files += ../../../data/icons/64x64/$${TARGET}.png
  }
 +
 +RESOURCES += xslt2.qrc
@@@ -100,10 -101,10 +101,11 @@@ QList<Translation*> XdxfPlugin::searchW
          cur.addBindValue(limit);
          cur.exec();
          while(cur.next())
-             translations.insert(new TranslationXdxf(cur.value(0).toString(),
-                                                     _infoNote, this));
+             translations.insert(new TranslationXdxf(
+                         cur.value(0).toString().toLower(),
+                         _infoNote, this));
 -        return translations.toList();
 +        db.close();
-         return translations.toList();
++      return translations.toList();
  }