summaryrefslogtreecommitdiffstats
path: root/kdeui/ksyntaxhighlighter.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/ksyntaxhighlighter.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/ksyntaxhighlighter.h')
-rw-r--r--kdeui/ksyntaxhighlighter.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/kdeui/ksyntaxhighlighter.h b/kdeui/ksyntaxhighlighter.h
index ea020afa9..3ed561236 100644
--- a/kdeui/ksyntaxhighlighter.h
+++ b/kdeui/ksyntaxhighlighter.h
@@ -24,10 +24,10 @@
#ifndef KSYNTAXHIGHLIGHTER_H
#define KSYNTAXHIGHLIGHTER_H
-#include <qtextedit.h>
-#include <qsyntaxhighlighter.h>
-#include <qcolor.h>
-#include <qstringlist.h>
+#include <tqtextedit.h>
+#include <tqsyntaxhighlighter.h>
+#include <tqcolor.h>
+#include <tqstringlist.h>
#include <kdelibs_export.h>
@@ -46,16 +46,16 @@ public:
PlainTextMode,
RichTextMode
};
- KSyntaxHighlighter( QTextEdit *textEdit,
+ KSyntaxHighlighter( TQTextEdit *textEdit,
bool colorQuoting = false,
- const QColor& QuoteColor0 = black,
- const QColor& QuoteColor1 = QColor( 0x00, 0x80, 0x00 ),
- const QColor& QuoteColor2 = QColor( 0x00, 0x80, 0x00 ),
- const QColor& QuoteColor3 = QColor( 0x00, 0x80, 0x00 ),
+ const TQColor& QuoteColor0 = black,
+ const TQColor& QuoteColor1 = TQColor( 0x00, 0x80, 0x00 ),
+ const TQColor& QuoteColor2 = TQColor( 0x00, 0x80, 0x00 ),
+ const TQColor& QuoteColor3 = TQColor( 0x00, 0x80, 0x00 ),
SyntaxMode mode = PlainTextMode );
~KSyntaxHighlighter();
- int highlightParagraph( const QString& text, int endStateOfLastPara );
+ int highlightParagraph( const TQString& text, int endStateOfLastPara );
private:
class KSyntaxHighlighterPrivate;
@@ -65,21 +65,21 @@ private:
class KDEUI_EXPORT KSpellingHighlighter : public KSyntaxHighlighter
{
public:
- KSpellingHighlighter( QTextEdit *textEdit,
- const QColor& spellColor = red,
+ KSpellingHighlighter( TQTextEdit *textEdit,
+ const TQColor& spellColor = red,
bool colorQuoting = false,
- const QColor& QuoteColor0 = black,
- const QColor& QuoteColor1 = QColor( 0x00, 0x80, 0x00 ),
- const QColor& QuoteColor2 = QColor( 0x00, 0x80, 0x00 ),
- const QColor& QuoteColor3 = QColor( 0x00, 0x80, 0x00 ) );
+ const TQColor& QuoteColor0 = black,
+ const TQColor& QuoteColor1 = TQColor( 0x00, 0x80, 0x00 ),
+ const TQColor& QuoteColor2 = TQColor( 0x00, 0x80, 0x00 ),
+ const TQColor& QuoteColor3 = TQColor( 0x00, 0x80, 0x00 ) );
~KSpellingHighlighter();
- virtual int highlightParagraph( const QString &text,
+ virtual int highlightParagraph( const TQString &text,
int endStateOfLastPara );
- virtual bool isMisspelled( const QString& word ) = 0;
+ virtual bool isMisspelled( const TQString& word ) = 0;
bool intraWordEditing() const;
void setIntraWordEditing( bool editing );
- static QStringList personalWords();
+ static TQStringList personalWords();
private:
void flushCurrentWord();
@@ -91,24 +91,24 @@ private:
/**
* \brief Dictionary sensitive text highlighter
*/
-class KDEUI_EXPORT KDictSpellingHighlighter : public QObject, public KSpellingHighlighter
+class KDEUI_EXPORT KDictSpellingHighlighter : public TQObject, public KSpellingHighlighter
{
Q_OBJECT
public:
- KDictSpellingHighlighter( QTextEdit *textEdit,
+ KDictSpellingHighlighter( TQTextEdit *textEdit,
bool spellCheckingActive = true,
bool autoEnable = true,
- const QColor& spellColor = red,
+ const TQColor& spellColor = red,
bool colorQuoting = false,
- const QColor& QuoteColor0 = black,
- const QColor& QuoteColor1 = QColor( 0x00, 0x80, 0x00 ),
- const QColor& QuoteColor2 = QColor( 0x00, 0x70, 0x00 ),
- const QColor& QuoteColor3 = QColor( 0x00, 0x60, 0x00 ),
+ const TQColor& QuoteColor0 = black,
+ const TQColor& QuoteColor1 = TQColor( 0x00, 0x80, 0x00 ),
+ const TQColor& QuoteColor2 = TQColor( 0x00, 0x70, 0x00 ),
+ const TQColor& QuoteColor3 = TQColor( 0x00, 0x60, 0x00 ),
KSpellConfig *spellConfig = 0 );
~KDictSpellingHighlighter();
- virtual bool isMisspelled( const QString &word );
+ virtual bool isMisspelled( const TQString &word );
static void dictionaryChanged();
void restartBackgroundSpellCheck();
@@ -158,17 +158,17 @@ public:
bool automatic() const;
signals:
- void activeChanged(const QString &);
- void newSuggestions(const QString& originalword, const QStringList& suggestions,
+ void activeChanged(const TQString &);
+ void newSuggestions(const TQString& originalword, const TQStringList& suggestions,
unsigned int pos);
protected:
- QString spellKey();
- bool eventFilter(QObject *o, QEvent *e);
+ TQString spellKey();
+ bool eventFilter(TQObject *o, TQEvent *e);
protected slots:
- void slotMisspelling( const QString &originalWord, const QStringList &suggestions, unsigned int pos );
- void slotCorrected( const QString &originalWord, const QString &, unsigned int );
+ void slotMisspelling( const TQString &originalWord, const TQStringList &suggestions, unsigned int pos );
+ void slotCorrected( const TQString &originalWord, const TQString &, unsigned int );
void slotRehighlight();
void slotDictionaryChanged();
void slotSpellReady( KSpell *spell );