#include "TranslationView.h"
#include "TranslationWidget.h"
-TranslationView::TranslationView(QWidget *parent) :
- QWebView(parent)
-{
+
+
+TranslationView::TranslationView(QWidget *parent) : QWebView(parent) {
+
+#ifndef Q_WS_MAEMO_5
+
+ view= new QDeclarativeView();
+ view->setSource(QUrl("src/mdictionary/qml/TranslationView.qml"));
+ view->setResizeMode(QDeclarativeView::SizeRootObjectToView);
+ view->setAlignment(Qt::AlignCenter);
+ view->show();
+
+#else
+
realParent = qobject_cast<TranslationWidget*>(parent);
searchSelectedAction = new QAction(tr("Search"), this);
copySelectedAction = new QAction(tr("Copy"), this);
connect(searchSelectedAction, SIGNAL(triggered()),
this, SIGNAL(search()));
connect(page(), SIGNAL(selectionChanged()), this, SLOT(selection()));
+
+#endif
}
void TranslationView::wheelEvent(QWheelEvent *e) {