- QStringList _history;
- QHash<int, QString> _tempHistory;
- qint32 _idx;
- Mode _mode;
- bool _singleLine;
- int _minHeight;
- int _maxHeight;
- bool _scrollBarsEnabled;
- bool _pasteProtectionEnabled;
- bool _emacsMode;
-
- QSize _sizeHint;
- qreal _lastDocumentHeight;
-
- QMap<QString, QString> _mircColorMap;
-
- void reset();
- void showHistoryEntry();
- void updateScrollBars();
- void updateSizeHint();
+ void reset();
+ void showHistoryEntry();
+ void updateScrollBars();
+ void updateSizeHint();
+
+private:
+ QStringList _history;
+ QHash<int, QString> _tempHistory;
+ qint32 _idx;
+ Mode _mode;
+ bool _singleLine;
+ int _minHeight;
+ int _maxHeight;
+ bool _scrollBarsEnabled;
+ bool _pasteProtectionEnabled;
+ bool _emacsMode;
+ int _completionSpace;
+
+ QSize _sizeHint;
+ qreal _lastDocumentHeight;
+
+ QMap<QString, QString> _mircColorMap;
+
+#if defined HAVE_SONNET && !defined HAVE_KDE
+ // This member function is provided by KTextEdit
+ Sonnet::Highlighter *highlighter() const;
+
+private slots:
+ void setSpellCheckEnabled(bool enabled);
+
+private:
+ Sonnet::SpellCheckDecorator *_spellCheckDecorator{nullptr};
+#endif