Added direct search of translation, changed searching for translation of words list...
[mdictionary] / trunk / src / base / gui / TranslationWidgetAutoResizer.h
index c8768d2..2f5d5c0 100644 (file)
@@ -40,7 +40,7 @@ public:
              this, SLOT(textEditChanged()));
      }
 
-private Q_SLOTS:
+public Q_SLOTS:
     inline void textEditChanged();
 
 private:
@@ -58,6 +58,9 @@ void TranslationWidgetAutoResizer::textEditChanged() {
 
     edit->setMinimumHeight(qMax(70, s.height() + (fr.height() - cr.height()) -
                                 1));
+
+    edit->setMinimumHeight(qMax(70, s.height() + (fr.height() - cr.height()) -
+                                1));
 }
 
 #endif // TRANSLATIONWIDGETAUTORESIZER_H