Added all previous functionality
[mdictionary] / trunk / src / base / gui / TranslationWidget.cpp
index 161cf0b..3cfc892 100644 (file)
@@ -235,26 +235,26 @@ void TranslationWidget::initializeUI() {
         showButtonsButton->setMinimumSize(searchButton->sizeHint());
 
         connect(zoomInButton, SIGNAL(clicked()),
-                textEdit, SLOT(zoomIn()));
+                webkit, SLOT(zoomIn()));
 
         connect(zoomOutButton, SIGNAL(clicked()),
-                textEdit, SLOT(zoomOut()));
+                webkit, SLOT(zoomOut()));
 
 
         connect(searchButton, SIGNAL(clicked()),
                 this, SLOT(searchSelected()));
 
         connect(copyButton, SIGNAL(clicked()),
-                textEdit, SLOT(copy()));
+                webkit, SLOT(copy()));
 
-        connect(textEdit, SIGNAL(copyAvailable(bool)),
+        connect(webkit, SIGNAL(copyAvailable(bool)),
                 searchButton, SLOT(setEnabled(bool)));
 
-        connect(textEdit, SIGNAL(copyAvailable(bool)),
+        connect(webkit, SIGNAL(copyAvailable(bool)),
                 copyButton, SLOT(setEnabled(bool)));
 
         connect(selectAllButton, SIGNAL(clicked()),
-                textEdit, SLOT(selectAll()));
+                webkit, SLOT(selectAll()));
 
         buttonsInitialized = false;
 
@@ -320,12 +320,12 @@ void TranslationWidget::hideEvent(QHideEvent* e) {
 void TranslationWidget::keyPressEvent(QKeyEvent* event) {
     switch (event->key()) {
         case Qt::Key_F7:
-        textEdit->zoomIn();
+        webkit->zoomIn();
         event->accept();
         break;
 
         case Qt::Key_F8:
-        textEdit->zoomOut();
+        webkit->zoomOut();
         event->accept();
         break;
     }