Slightly improve behavior on resize
[quassel.git] / src / uisupport / multilineedit.h
index 4a578fa..0a527b9 100644 (file)
@@ -67,7 +67,11 @@ public slots:
   void setMode(Mode mode);
   void setMinHeight(int numLines);
   void setMaxHeight(int numLines);
-  void enableScrollBars(bool enable = true);
+  void setScrollBarsEnabled(bool enable = true);
+  void setSpellCheckEnabled(bool enable = true);
+
+  // Note: Enabling wrap will make isSingleLine() not work correctly, so only use this if minHeight() > 1!
+  void setWordWrapEnabled(bool enable = true);
 
 signals:
   void textEntered(const QString &text);
@@ -101,7 +105,7 @@ private:
   void reset();
   void showHistoryEntry();
   void updateScrollBars();
-  void computeSizeHint();
+  void updateSizeHint();
 };
 
 #endif