summaryrefslogtreecommitdiffstats
path: root/kate
diff options
context:
space:
mode:
Diffstat (limited to 'kate')
-rw-r--r--kate/data/c.xml2
-rw-r--r--kate/data/diff.xml6
-rw-r--r--kate/data/fgl-4gl.xml2
-rw-r--r--kate/data/fgl-per.xml2
-rw-r--r--kate/data/idl.xml2
-rw-r--r--kate/data/isocpp.xml9
-rw-r--r--kate/data/javascript.xml6
-rw-r--r--kate/data/markdown.xml130
-rw-r--r--kate/data/nesc.xml2
-rw-r--r--kate/data/objectivec.xml11
-rw-r--r--kate/data/objectivecpp.xml9
-rw-r--r--kate/data/opencl.xml2
-rw-r--r--kate/data/qt4.xml4
-rw-r--r--kate/data/update-files.xml4
-rw-r--r--kate/interfaces/document.h6
-rw-r--r--kate/interfaces/interfaces.cpp4
-rw-r--r--kate/interfaces/view.h2
-rw-r--r--kate/part/katearbitraryhighlight.cpp10
-rw-r--r--kate/part/katearbitraryhighlight.h4
-rw-r--r--kate/part/kateautoindent.cpp16
-rw-r--r--kate/part/kateautoindent.h22
-rw-r--r--kate/part/katebookmarks.cpp20
-rw-r--r--kate/part/katebookmarks.h2
-rw-r--r--kate/part/katebuffer.h2
-rw-r--r--kate/part/katecmds.cpp2
-rw-r--r--kate/part/katecodecompletion.cpp26
-rw-r--r--kate/part/katecodecompletion.h6
-rw-r--r--kate/part/katecodefoldinghelpers.h2
-rw-r--r--kate/part/kateconfig.cpp14
-rw-r--r--kate/part/katecursor.h2
-rw-r--r--kate/part/katedialogs.cpp160
-rw-r--r--kate/part/katedialogs.h26
-rw-r--r--kate/part/katedocument.cpp42
-rw-r--r--kate/part/katedocument.h2
-rw-r--r--kate/part/katedocumenthelpers.cpp4
-rw-r--r--kate/part/katedocumenthelpers.h2
-rw-r--r--kate/part/katefactory.cpp6
-rw-r--r--kate/part/katefiletype.cpp32
-rw-r--r--kate/part/katefiletype.h4
-rw-r--r--kate/part/katehighlight.cpp66
-rw-r--r--kate/part/katehighlight.h6
-rw-r--r--kate/part/kateprinter.cpp60
-rw-r--r--kate/part/kateprinter.h10
-rw-r--r--kate/part/katerenderer.cpp2
-rw-r--r--kate/part/kateschema.cpp120
-rw-r--r--kate/part/kateschema.h18
-rw-r--r--kate/part/katesearch.cpp16
-rw-r--r--kate/part/katesearch.h4
-rw-r--r--kate/part/katespell.cpp24
-rw-r--r--kate/part/katespell.h2
-rw-r--r--kate/part/katesupercursor.cpp32
-rw-r--r--kate/part/katesupercursor.h6
-rw-r--r--kate/part/katetemplatehandler.cpp26
-rw-r--r--kate/part/katetemplatehandler.h2
-rw-r--r--kate/part/katetextline.h2
-rw-r--r--kate/part/kateview.cpp250
-rw-r--r--kate/part/kateview.h2
-rw-r--r--kate/part/kateviewhelpers.cpp32
-rw-r--r--kate/part/kateviewhelpers.h8
-rw-r--r--kate/part/kateviewinternal.cpp163
-rw-r--r--kate/part/kateviewinternal.h2
-rw-r--r--kate/part/test_regression.cpp18
-rw-r--r--kate/part/test_regression.h2
-rw-r--r--kate/plugins/autobookmarker/autobookmarker.cpp16
-rw-r--r--kate/plugins/autobookmarker/autobookmarker.h6
-rw-r--r--kate/plugins/insertfile/insertfileplugin.cpp4
-rw-r--r--kate/plugins/insertfile/insertfileplugin.h4
-rw-r--r--kate/plugins/isearch/ISearchPlugin.cpp44
-rw-r--r--kate/plugins/isearch/ISearchPlugin.h4
-rw-r--r--kate/plugins/kdatatool/kate_kdatatool.cpp14
-rw-r--r--kate/plugins/kdatatool/kate_kdatatool.h4
-rw-r--r--kate/plugins/wordcompletion/docwordcompletion.cpp26
-rw-r--r--kate/plugins/wordcompletion/docwordcompletion.h6
73 files changed, 831 insertions, 779 deletions
diff --git a/kate/data/c.xml b/kate/data/c.xml
index 501e865e3..aa250ec9c 100644
--- a/kate/data/c.xml
+++ b/kate/data/c.xml
@@ -197,7 +197,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
- <itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ <itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
diff --git a/kate/data/diff.xml b/kate/data/diff.xml
index b681b4270..62fdceb1e 100644
--- a/kate/data/diff.xml
+++ b/kate/data/diff.xml
@@ -15,7 +15,7 @@
2008-02-13: 1.11 Eduardo Robles Elvira <edulix AT gmail DOT com>
Fixed folding.
-->
-<language name="Diff" version="1.12" kateversion="2.4" section="Other" extensions="*.diff;*patch" mimetype="text/x-patch">
+<language name="Diff" version="1.13" kateversion="2.4" section="Other" extensions="*.diff;*patch" mimetype="text/x-patch">
<highlighting>
@@ -108,8 +108,8 @@
<itemData name="Normal Text" defStyleNum="dsNormal"/>
<itemData name="File" defStyleNum="dsKeyword"/>
<itemData name="Header" defStyleNum="dsDataType"/>
- <itemData name="Removed line" defStyleNum="dsString" color="#FF0000"/>
- <itemData name="Added line" defStyleNum="dsOthers" color="#0000FF"/>
+ <itemData name="Removed line" defStyleNum="dsString" backgroundColor="#ffeef0"/>
+ <itemData name="Added line" defStyleNum="dsOthers" backgroundColor="#e6ffed"/>
<itemData name="Changed line (old)" defStyleNum="dsString" color="#FF0000"/>
<itemData name="Changed line (new)" defStyleNum="dsOthers" color="#0000FF"/>
</itemDatas>
diff --git a/kate/data/fgl-4gl.xml b/kate/data/fgl-4gl.xml
index 7b2084dbd..b92523641 100644
--- a/kate/data/fgl-4gl.xml
+++ b/kate/data/fgl-4gl.xml
@@ -347,7 +347,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
- <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" />
</itemDatas>
</highlighting>
diff --git a/kate/data/fgl-per.xml b/kate/data/fgl-per.xml
index 44bc53151..21d09df57 100644
--- a/kate/data/fgl-per.xml
+++ b/kate/data/fgl-per.xml
@@ -159,7 +159,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
- <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" />
</itemDatas>
</highlighting>
diff --git a/kate/data/idl.xml b/kate/data/idl.xml
index a8a2787dd..06b37118b 100644
--- a/kate/data/idl.xml
+++ b/kate/data/idl.xml
@@ -100,7 +100,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
- <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" />
</itemDatas>
</highlighting>
diff --git a/kate/data/isocpp.xml b/kate/data/isocpp.xml
index 0637867fc..3bbeb9f01 100644
--- a/kate/data/isocpp.xml
+++ b/kate/data/isocpp.xml
@@ -156,8 +156,8 @@
<item> Q_SIGNALS </item>
<item> Q_SLOTS </item>
<item> Q_UNUSED </item>
- <item> SIGNAL </item>
- <item> SLOT </item>
+ <item> Q_SIGNAL </item>
+ <item> Q_SLOT </item>
<item> TRUE </item>
<item> FALSE </item>
<item> TQ_ARG </item>
@@ -198,13 +198,8 @@
<item> TQ_SCRIPTABLE </item>
<item> TQ_SETS </item>
<item> TQ_SIGNAL </item>
- <item> TQ_SIGNALS </item>
<item> TQ_SLOT </item>
- <item> TQ_SLOTS </item>
<item> TQ_UNUSED </item>
- <item> TQT_SIGNAL </item>
- <item> TQT_SLOT </item>
- <item> TQT_TQOBJECT </item>
<item> connect </item>
<item> disconnect </item>
<item> emit </item>
diff --git a/kate/data/javascript.xml b/kate/data/javascript.xml
index e90f0b051..916d213c1 100644
--- a/kate/data/javascript.xml
+++ b/kate/data/javascript.xml
@@ -101,6 +101,7 @@
<DetectChar attribute="String" context="String" char="&quot;" />
<DetectChar attribute="String" context="String SQ" char="'" />
+ <DetectChar attribute="String" context="Template String" char="`" />
<IncludeRules context="##Doxygen" />
<Detect2Chars attribute="Comment" context="Comment" char="/" char1="/" />
@@ -154,6 +155,11 @@
<LineContinue/>
<DetectChar attribute="String" context="#pop" char="'" />
</context>
+ <context attribute="String" lineEndContext="#pop" name="Template String">
+ <HlCStringChar attribute="Char" />
+ <LineContinue/>
+ <DetectChar attribute="String" context="#pop" char="`" />
+ </context>
<context attribute="Comment" lineEndContext="#pop" name="Comment">
<IncludeRules context="##Alerts" />
diff --git a/kate/data/markdown.xml b/kate/data/markdown.xml
index 7d99d02ed..177b904da 100644
--- a/kate/data/markdown.xml
+++ b/kate/data/markdown.xml
@@ -4,7 +4,7 @@
Copyright 2008 Darrin Yeager. http://www.dyeager.org/
Dual-Licensed under both GPL and BSD licenses.
-
+
Extended 2009 Claes Holmerson. http://github.com/claes/kate-markdown/
-->
@@ -25,19 +25,31 @@
<!ENTITY reflinkregex '\[[^\]\^]+\]\s*\[[^\]]*\]\s*(\s+\"[^\"]*\"){0,1}'>
<!ENTITY reflinktargetregex '\[[^\]\^]+\]\:\s+[^\s]+(\s+\"[^\"]*\"){0,1}'>
<!ENTITY footnoteregex "\[\^[^\]]+\]">
+ <!ENTITY preregex "^\s*```\s*">
+ <!ENTITY pretilderegex "^\s*~~~\s*">
+ <!ENTITY preendregex "^\s*```\s*$">
+ <!ENTITY pretildeendregex "^\s*~~~\s*$">
+ <!ENTITY presingleline '```[^`]+```'>
+ <!ENTITY idlinkregex '\[[^\]\^]+\]\s*\(#[^\(]*\)'>
<!ENTITY inlinelinkregex '\[[^\]\^]+\]\s*\([^\(]*\)'>
<!ENTITY inlineimageregex '\!\[[^\]\^]+\]\([^\(]*\)'>
<!ENTITY refimageregex '\!\[[^\]\^]+\]\[[^\[]*\]'>
<!ENTITY autolinkregex '&lt;(https?|ftp):[^\"&gt;\s]+&gt;'>
<!ENTITY mailtolinkregex '&lt;(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)&gt;'>
- <!ENTITY rulerregex '^\s*([\*\-_]){3,}\s*$'>
+ <!ENTITY rulerregex '^ {,3}([\*\-_]\s*){3,}\s*$'>
<!-- two spaces at end of line generates linebreak -->
- <!ENTITY linebreakregex " $">
- <!ENTITY strikeoutregex "[~]{2}[^~].*[^~][~]{2}"> <!-- pandoc style -->
+ <!ENTITY linebreakregex "( |\\)$">
+ <!ENTITY strikeoutregex "~~[^~\s].*[^~\s]~~">
+ <!ENTITY prediffregex "^(```|~~~)\s{0,}diff">
+ <!ENTITY difflineremoveregex "^-[^-].*$">
+ <!ENTITY difflineaddregex "^\+[^\+].*$">
+ <!ENTITY diffheader1regex "^-{3} .*$">
+ <!ENTITY diffheader2regex "^(\+{3} .*|^@@.*)$">
+ <!ENTITY diffheaderdiffregex "^diff .*$">
]>
-
-<language name="Markdown" version="1.3" section="Markup"
- extensions="*.text;*.md;*.mmd;*.mdwn" priority="15"
+
+<language name="Markdown" version="1.4" section="Markup"
+ extensions="*.md;*.mmd;*.mdwn"
author="Darrin Yeager, Claes Holmerson"
license="GPL,BSD" >
<highlighting>
@@ -50,13 +62,14 @@
<RegExpr attribute="h3" String="^###\s.*[#]?$" />
<RegExpr attribute="h4" String="^####\s.*[#]?$" />
<RegExpr attribute="h5" String="^#####\s.*[#]?$" />
+ <RegExpr attribute="h6" String="^######\s.*[#]?$" />
<RegExpr attribute="strongemphasis" String="&strongemphasisregex;" />
<RegExpr attribute="strong" String="&strongregex;" />
<RegExpr attribute="emphasis" String="&emphasisregex;" />
<RegExpr attribute="ruler" String="&rulerregex;" />
+ <RegExpr context="bullet" String="^ {,3}[\*\+\-]\s" />
+ <RegExpr context="numlist" String="^ {,3}[\d]+\.\s" />
<RegExpr attribute="code" String="^([\s]{4,}|\t+).*$" />
- <RegExpr context="bullet" String="^[\*\+\-]\s" />
- <RegExpr context="numlist" String="^[\d]+\.\s" />
<RegExpr attribute="meta" String="^(Title|Author|Date|Copyright|Revision|CSS|LaTeX\ XSLT|Categories|Tags|BaseName|Excerpt):(.*)+$" />
<IncludeRules context="inc" />
</context>
@@ -64,30 +77,56 @@
<context attribute="blockquote" lineEndContext="#pop" name="blockquote">
<RegExpr attribute="bq-strong" String="&strongregex;" />
<RegExpr attribute="bq-emphasis" String="&emphasisregex;" />
+ <RegExpr attribute="bq-strongemphasis" String="&strongemphasisregex;" />
<IncludeRules context="inc" />
</context>
<context attribute="bullet" lineEndContext="#pop" name="bullet" >
<RegExpr attribute="bl-strong" String="&strongregex;" />
<RegExpr attribute="bl-emphasis" String="&emphasisregex;" />
+ <RegExpr attribute="bl-strongemphasis" String="&strongemphasisregex;" />
<IncludeRules context="inc" />
</context>
-
+
<context attribute="numlist" lineEndContext="#pop" name="numlist" >
<RegExpr attribute="nl-strong" String="&strongregex;" />
<RegExpr attribute="nl-emphasis" String="&emphasisregex;" />
+ <RegExpr attribute="nl-strongemphasis" String="&strongemphasisregex;" />
<IncludeRules context="inc" />
</context>
-
+
<context attribute="comment" lineEndContext="#stay" name="comment" >
<RegExpr String="--&gt;" attribute="comment" context="#pop" endRegion="comment"/>
</context>
+ <context attribute="prediff" lineEndContext="#stay" name="prediff" >
+ <RegExpr String="&preendregex;" attribute="prediff" context="#pop" endRegion="prediff"/>
+ <RegExpr attribute="difflineremove" String="&difflineremoveregex;" />
+ <RegExpr attribute="difflineadd" String="&difflineaddregex;" />
+ <RegExpr attribute="diffheader1" String="&diffheader1regex;" />
+ <RegExpr attribute="diffheader2" String="&diffheader2regex;" />
+ <RegExpr attribute="diffheaderdiff" String="&diffheaderdiffregex;" />
+ </context>
+
+ <context attribute="code" lineEndContext="#stay" name="pre" >
+ <RegExpr String="&preendregex;" attribute="code" context="#pop" endRegion="pre"/>
+ </context>
+
+ <context attribute="code" lineEndContext="#stay" name="pretilde" >
+ <RegExpr String="&pretildeendregex;" attribute="code" context="#pop" endRegion="pretilde"/>
+ </context>
+
<context attribute="common" name="inc" lineEndContext="#stay" >
- <RegExpr attribute="code" String="`[^`]+`" />
<RegExpr context="comment" String="&lt;!--" beginRegion="comment" />
+ <RegExpr context="prediff" String="&prediffregex;" beginRegion="prediff" />
+ <RegExpr attribute="code" minimal="true" String="&presingleline;"/>
+ <RegExpr attribute="code" context="pre" String="&preregex;" beginRegion="pre" />
+ <RegExpr attribute="code" context="pretilde" String="&pretilderegex;" beginRegion="pretilde" />
+ <RegExpr attribute="code" String="``.*``" />
+ <RegExpr attribute="code" String="`[^`]*`" />
<RegExpr attribute="reflink" String="&reflinkregex;" />
<RegExpr attribute="footnote" String="&footnoteregex;" />
+ <RegExpr attribute="idlink" String="&idlinkregex;"/>
<RegExpr attribute="inlinelink" String="&inlinelinkregex;"/>
<RegExpr attribute="reflinktarget" String="&reflinktargetregex;"/>
<RegExpr attribute="inlineimage" String="&inlineimageregex;"/>
@@ -104,43 +143,54 @@
<itemData name="common" defStyleNum="dsNormal" />
<itemData name="emphasis" defStyleNum="dsNormal" italic="true" />
<itemData name="strong" defStyleNum="dsNormal" bold="true" />
+ <itemData name="diffheader1" defStyleNum="dsNormal" backgroundColor="#eeeeee" color="#800000" bold="true" />
+ <itemData name="diffheader2" defStyleNum="dsNormal" backgroundColor="#eeeeee" color="#800000" />
+ <itemData name="diffheaderdiff" defStyleNum="dsNormal" backgroundColor="#eeeeee" color="#000000" bold="true" />
+ <itemData name="difflineremove" defStyleNum="dsString" backgroundColor="#ffeef0" />
+ <itemData name="difflineadd" defStyleNum="dsOthers" backgroundColor="#e6ffed" />
<itemData name="strongemphasis" defStyleNum="dsNormal" italic="true" bold="true"/>
- <itemData name="ruler" defStyleNum="dsNormal" bold="true" />
- <itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true" />
- <itemData name="linebreak" defStyleNum="dsNormal" underline="true" color="#999999"/>
+ <itemData name="ruler" defStyleNum="dsNormal" color="#e200e2" bold="true" />
+ <itemData name="strikeout" defStyleNum="dsNormal" strikeOut="true" backgroundColor="#fafaaf" />
+ <itemData name="linebreak" defStyleNum="dsNormal" backgroundColor="#F8E0FF" />
<itemData name="h1" defStyleNum="dsFunction" bold="true" />
<itemData name="h2" defStyleNum="dsFunction" bold="true" />
<itemData name="h3" defStyleNum="dsFunction" bold="true" />
<itemData name="h4" defStyleNum="dsFunction" bold="true" />
<itemData name="h5" defStyleNum="dsFunction" bold="true" />
- <itemData name="blockquote" defStyleNum="dsDataType" />
- <itemData name="bq-emphasis" defStyleNum="dsDataType" italic="true" />
- <itemData name="bq-strong" defStyleNum="dsDataType" bold="true" />
- <itemData name="bullet" defStyleNum="dsFloat" />
- <itemData name="bl-emphasis" defStyleNum="dsFloat" italic="true" />
- <itemData name="bl-strong" defStyleNum="dsFloat" bold="true" />
- <itemData name="numlist" defStyleNum="dsFloat" />
- <itemData name="nl-emphasis" defStyleNum="dsFloat" italic="true" />
- <itemData name="nl-strong" defStyleNum="dsFloat" bold="true" />
- <itemData name="comment" defStyleNum="dsComment" />
- <itemData name="code" defStyleNum="dsBaseN" />
- <itemData name="reflink" defStyleNum="dsOthers" underline="true" />
- <itemData name="inlinelink" defStyleNum="dsOthers" underline="true" />
+ <itemData name="h6" defStyleNum="dsFunction" bold="true" />
+ <itemData name="blockquote" defStyleNum="dsNormal" color="black" />
+ <itemData name="bq-emphasis" defStyleNum="dsNormal" color="black" italic="true" />
+ <itemData name="bq-strong" defStyleNum="dsNormal" color="black" bold="true" />
+ <itemData name="bq-strongemphasis" defStyleNum="dsNormal" color="black" italic="true" bold="true" />
+ <itemData name="bullet" defStyleNum="dsNormal" color="#b700b7" />
+ <itemData name="bl-emphasis" defStyleNum="dsNormal" color="#b700b7" italic="true" />
+ <itemData name="bl-strong" defStyleNum="dsNormal" color="#b700b7" bold="true" />
+ <itemData name="bl-strongemphasis" defStyleNum="dsNormal" color="#b700b7" bold="true" italic="true" />
+ <itemData name="numlist" defStyleNum="dsNormal" color="#b700b7" />
+ <itemData name="nl-emphasis" defStyleNum="dsNormal" color="#b700b7" italic="true" />
+ <itemData name="nl-strong" defStyleNum="dsNormal" color="#b700b7" bold="true" />
+ <itemData name="nl-strongemphasis" defStyleNum="dsNormal" color="#b700b7" bold="true" italic="true" />
+ <itemData name="comment" defStyleNum="dsComment" />
+ <itemData name="pre" defStyleNum="dsNormal" backgroundColor="#eeeeee" />
+ <itemData name="prediff" defStyleNum="dsNormal" backgroundColor="#eeeeee" />
+ <itemData name="code" defStyleNum="dsNormal" color="darkcyan" backgroundColor="#eeeeee" />
+ <itemData name="reflink" defStyleNum="dsOthers" color="blue" />
+ <itemData name="idlink" defStyleNum="dsOthers" color="blue" italic="true" />
+ <itemData name="inlinelink" defStyleNum="dsOthers" color="blue" />
<itemData name="autolink" defStyleNum="dsOthers" underline="true" />
<itemData name="mailtolink" defStyleNum="dsOthers" underline="true" />
<itemData name="footnote" defStyleNum="dsOthers" italic="true" />
- <itemData name="meta" defStyleNum="dsComment" />
- <itemData name="reflinktarget" defStyleNum="dsOthers" italic="false" bold="false" />
- <itemData name="inlineimage" defStyleNum="dsAlert" italic="false" bold="false" />
- <itemData name="refimage" defStyleNum="dsAlert" italic="false" bold="false" />
+ <itemData name="meta" defStyleNum="dsComment" />
+ <itemData name="reflinktarget" defStyleNum="dsOthers" />
+ <itemData name="inlineimage" defStyleNum="dsNormal" backgroundColor="#fff8f8" color="blue" />
+ <itemData name="refimage" defStyleNum="dsNormal" backgroundColor="#fff8f8" color="blue" />
</itemDatas>
+ </highlighting>
- </highlighting>
-
- <general>
- <comments>
- <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
- </comments>
- </general>
+ <general>
+ <comments>
+ <comment name="multiLine" start="&lt;!--" end="--&gt;" region="comment" />
+ </comments>
+ </general>
- </language>
+</language>
diff --git a/kate/data/nesc.xml b/kate/data/nesc.xml
index 5a5d0db54..688281bde 100644
--- a/kate/data/nesc.xml
+++ b/kate/data/nesc.xml
@@ -172,7 +172,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
- <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
</itemDatas>
</highlighting>
<general>
diff --git a/kate/data/objectivec.xml b/kate/data/objectivec.xml
index a49ed574f..a07940916 100644
--- a/kate/data/objectivec.xml
+++ b/kate/data/objectivec.xml
@@ -79,8 +79,8 @@
<item> Q_SIGNALS </item>
<item> Q_SLOTS </item>
<item> Q_UNUSED </item>
- <item> SIGNAL </item>
- <item> SLOT </item>
+ <item> Q_SIGNAL </item>
+ <item> Q_SLOT </item>
<item> TRUE </item>
<item> FALSE </item>
<item> TQ_ARG </item>
@@ -121,13 +121,8 @@
<item> TQ_SCRIPTABLE </item>
<item> TQ_SETS </item>
<item> TQ_SIGNAL </item>
- <item> TQ_SIGNALS </item>
<item> TQ_SLOT </item>
- <item> TQ_SLOTS </item>
<item> TQ_UNUSED </item>
- <item> TQT_SIGNAL </item>
- <item> TQT_SLOT </item>
- <item> TQT_TQOBJECT </item>
<item> connect </item>
<item> disconnect </item>
<item> emit </item>
@@ -230,7 +225,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
- <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ <itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
</itemDatas>
</highlighting>
<general>
diff --git a/kate/data/objectivecpp.xml b/kate/data/objectivecpp.xml
index 8be78b2d4..bfe4298d4 100644
--- a/kate/data/objectivecpp.xml
+++ b/kate/data/objectivecpp.xml
@@ -124,8 +124,8 @@
<item> Q_SIGNALS </item>
<item> Q_SLOTS </item>
<item> Q_UNUSED </item>
- <item> SIGNAL </item>
- <item> SLOT </item>
+ <item> Q_SIGNAL </item>
+ <item> Q_SLOT </item>
<item> TRUE </item>
<item> FALSE </item>
<item> TQ_ARG </item>
@@ -166,13 +166,8 @@
<item> TQ_SCRIPTABLE </item>
<item> TQ_SETS </item>
<item> TQ_SIGNAL </item>
- <item> TQ_SIGNALS </item>
<item> TQ_SLOT </item>
- <item> TQ_SLOTS </item>
<item> TQ_UNUSED </item>
- <item> TQT_SIGNAL </item>
- <item> TQT_SLOT </item>
- <item> TQT_TQOBJECT </item>
<item> connect </item>
<item> disconnect </item>
<item> emit </item>
diff --git a/kate/data/opencl.xml b/kate/data/opencl.xml
index 5c5cc7c5c..c4e2b3d39 100644
--- a/kate/data/opencl.xml
+++ b/kate/data/opencl.xml
@@ -241,7 +241,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
- <itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
+ <itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>
diff --git a/kate/data/qt4.xml b/kate/data/qt4.xml
index 7942a6afa..d1e4ed488 100644
--- a/kate/data/qt4.xml
+++ b/kate/data/qt4.xml
@@ -34,8 +34,8 @@
<item> slots </item>
<item> foreach </item>
<item> forever </item>
- <item> SIGNAL </item>
- <item> SLOT </item>
+ <item> Q_SIGNAL </item>
+ <item> Q_SLOT </item>
<!-- http://qt-project.org/doc/qt-4.8/QApplication.html#macros -->
<item> qApp </item>
<!-- http://qt-project.org/doc/qt-4.8/qcoreapplication.html#macros -->
diff --git a/kate/data/update-files.xml b/kate/data/update-files.xml
index 004f7dab2..12924302b 100644
--- a/kate/data/update-files.xml
+++ b/kate/data/update-files.xml
@@ -52,7 +52,7 @@
<Definition name="Debian Changelog" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/debianchangelog.xml" version="6"/>
<Definition name="Debian Control" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/debiancontrol.xml" version="0.84"/>
<Definition name=".desktop" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/desktop.xml" version="2-1"/>
-<Definition name="Diff" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/diff.xml" version="1.12"/>
+<Definition name="Diff" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/diff.xml" version="1.13"/>
<Definition name="Django HTML Template" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/djangotemplate.xml" version="3"/>
<Definition name="Dockerfile" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/dockerfile.xml" version="1.1"/>
<Definition name="MS-DOS Batch" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/dosbat.xml" version="0.30"/>
@@ -136,7 +136,7 @@
<Definition name="Makefile" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/makefile.xml" version="2.1"/>
<Definition name="Mako" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mako.xml" version="1.0"/>
<Definition name="Troff Mandoc" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mandoc.xml" version="2"/>
-<Definition name="Markdown" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/markdown.xml" version="1.3"/>
+<Definition name="Markdown" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/markdown.xml" version="1.4"/>
<Definition name="Mason" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mason.xml" version="4"/>
<Definition name="Mathematica" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/mathematica.xml" version="8.1"/>
<Definition name="Matlab" url="http://git.trinitydesktop.org/cgit/tdelibs/plain/kate/data/matlab.xml" version="2-2"/>
diff --git a/kate/interfaces/document.h b/kate/interfaces/document.h
index 381e32fa2..c30a6d320 100644
--- a/kate/interfaces/document.h
+++ b/kate/interfaces/document.h
@@ -61,7 +61,7 @@ class KATEPARTINTERFACES_EXPORT Cursor : public KTextEditor::Cursor
class KATEPARTINTERFACES_EXPORT ConfigPage : public KTextEditor::ConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
ConfigPage ( TQWidget *parent=0, const char *name=0 ) : KTextEditor::ConfigPage (parent, name) { ; };
@@ -79,7 +79,7 @@ class KATEPARTINTERFACES_EXPORT ConfigPage : public KTextEditor::ConfigPage
class KATEPARTINTERFACES_EXPORT ActionMenu : public TDEActionMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
ActionMenu ( const TQString& text, TQObject* parent = 0, const char* name = 0 )
@@ -188,7 +188,7 @@ class KATEPARTINTERFACES_EXPORT Document : public KTextEditor::Document, public
public KTextEditor::MarkInterfaceExtension,
public KTextEditor::SelectionInterfaceExt
{
- Q_OBJECT
+ TQ_OBJECT
public:
Document ();
diff --git a/kate/interfaces/interfaces.cpp b/kate/interfaces/interfaces.cpp
index 9cbb58977..902459c24 100644
--- a/kate/interfaces/interfaces.cpp
+++ b/kate/interfaces/interfaces.cpp
@@ -100,7 +100,7 @@ Document *document (KTextEditor::Document *doc)
if (!doc)
return 0;
- return ::tqqt_cast<Kate::Document*>(doc);
+ return ::tqt_cast<Kate::Document*>(doc);
}
DocumentExt *documentExt (KTextEditor::Document *doc)
@@ -121,7 +121,7 @@ View *view (KTextEditor::View *view)
if (!view)
return 0;
- return ::tqqt_cast<Kate::View*>(view);
+ return ::tqt_cast<Kate::View*>(view);
}
}
diff --git a/kate/interfaces/view.h b/kate/interfaces/view.h
index 3b2b8a4e1..fcaf43110 100644
--- a/kate/interfaces/view.h
+++ b/kate/interfaces/view.h
@@ -43,7 +43,7 @@ class KATEPARTINTERFACES_EXPORT View : public KTextEditor::View, public KTextEdi
public KTextEditor::PopupMenuInterface, public KTextEditor::ViewCursorInterface,
public KTextEditor::CodeCompletionInterface, public KTextEditor::DynWordWrapInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/kate/part/katearbitraryhighlight.cpp b/kate/part/katearbitraryhighlight.cpp
index 927380979..1f526b7af 100644
--- a/kate/part/katearbitraryhighlight.cpp
+++ b/kate/part/katearbitraryhighlight.cpp
@@ -73,8 +73,8 @@ KateAttribute KateArbitraryHighlightRange::merge(TQPtrList<KateSuperRange> range
void KateArbitraryHighlight::addHighlightToDocument(KateSuperRangeList* list)
{
m_docHLs.append(list);
- connect(list, TQT_SIGNAL(rangeEliminated(KateSuperRange*)), TQT_SLOT(slotRangeEliminated(KateSuperRange*)));
- connect(list, TQT_SIGNAL(destroyed(TQObject*)),TQT_SLOT(slotRangeListDeleted(TQObject*)));
+ connect(list, TQ_SIGNAL(rangeEliminated(KateSuperRange*)), TQ_SLOT(slotRangeEliminated(KateSuperRange*)));
+ connect(list, TQ_SIGNAL(destroyed(TQObject*)),TQ_SLOT(slotRangeListDeleted(TQObject*)));
}
void KateArbitraryHighlight::addHighlightToView(KateSuperRangeList* list, KateView* view)
@@ -84,9 +84,9 @@ void KateArbitraryHighlight::addHighlightToView(KateSuperRangeList* list, KateVi
m_viewHLs[view]->append(list);
- connect(list, TQT_SIGNAL(rangeEliminated(KateSuperRange*)), TQT_SLOT(slotTagRange(KateSuperRange*)));
- connect(list, TQT_SIGNAL(tagRange(KateSuperRange*)), TQT_SLOT(slotTagRange(KateSuperRange*)));
- connect(list, TQT_SIGNAL(destroyed(TQObject*)),TQT_SLOT(slotRangeListDeleted(TQObject*)));
+ connect(list, TQ_SIGNAL(rangeEliminated(KateSuperRange*)), TQ_SLOT(slotTagRange(KateSuperRange*)));
+ connect(list, TQ_SIGNAL(tagRange(KateSuperRange*)), TQ_SLOT(slotTagRange(KateSuperRange*)));
+ connect(list, TQ_SIGNAL(destroyed(TQObject*)),TQ_SLOT(slotRangeListDeleted(TQObject*)));
}
void KateArbitraryHighlight::slotRangeListDeleted(TQObject* obj) {
diff --git a/kate/part/katearbitraryhighlight.h b/kate/part/katearbitraryhighlight.h
index 1bea4891f..222c82c2e 100644
--- a/kate/part/katearbitraryhighlight.h
+++ b/kate/part/katearbitraryhighlight.h
@@ -31,7 +31,7 @@ class KateView;
class KateArbitraryHighlightRange : public KateSuperRange, public KateAttribute
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateArbitraryHighlightRange(KateSuperCursor* start, KateSuperCursor* end, TQObject* parent = 0L, const char* name = 0L);
@@ -59,7 +59,7 @@ public:
*/
class KateArbitraryHighlight : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateArbitraryHighlight(KateDocument* parent = 0L, const char* name = 0L);
diff --git a/kate/part/kateautoindent.cpp b/kate/part/kateautoindent.cpp
index e39aba16c..f4a9df273 100644
--- a/kate/part/kateautoindent.cpp
+++ b/kate/part/kateautoindent.cpp
@@ -161,7 +161,7 @@ KateAutoIndent::~KateAutoIndent ()
KateViewIndentationAction::KateViewIndentationAction(KateDocument *_doc, const TQString& text, TQObject* parent, const char* name)
: TDEActionMenu (text, parent, name), doc(_doc)
{
- connect(popupMenu(),TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(slotAboutToShow()));
+ connect(popupMenu(),TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(slotAboutToShow()));
}
void KateViewIndentationAction::slotAboutToShow()
@@ -170,7 +170,7 @@ void KateViewIndentationAction::slotAboutToShow()
popupMenu()->clear ();
for (uint z=0; z<modes.size(); ++z)
- popupMenu()->insertItem ( '&' + KateAutoIndent::modeDescription(z).replace('&', "&&"), this, TQT_SLOT(setMode(int)), 0, z);
+ popupMenu()->insertItem ( '&' + KateAutoIndent::modeDescription(z).replace('&', "&&"), this, TQ_SLOT(setMode(int)), 0, z);
popupMenu()->setItemChecked (doc->config()->indentationMode(), true);
}
@@ -187,7 +187,7 @@ KateNormalIndent::KateNormalIndent (KateDocument *_doc)
: KateAutoIndent (_doc)
{
// if highlighting changes, update attributes
- connect(_doc, TQT_SIGNAL(hlChanged()), this, TQT_SLOT(updateConfig()));
+ connect(_doc, TQ_SIGNAL(hlChanged()), this, TQ_SLOT(updateConfig()));
}
KateNormalIndent::~KateNormalIndent ()
@@ -479,8 +479,6 @@ void KateCSmartIndent::processLine (KateDocCursor &line)
textLine->stringAtPos (firstChar, "private") ||
textLine->stringAtPos (firstChar, "protected") ||
textLine->stringAtPos (firstChar, "signals") ||
- textLine->stringAtPos (firstChar, "Q_SIGNALS") ||
- textLine->stringAtPos (firstChar, "Q_SLOTS") ||
textLine->stringAtPos (firstChar, "slots"))
{
indent = findOpeningBrace(line) + indentWidth;
@@ -859,12 +857,8 @@ uint KateCSmartIndent::calcIndent(KateDocCursor &begin, bool needContinue)
ch = textLine->getChar(specialIndent + 9);
else if (textLine->stringAtPos(specialIndent, "signals"))
ch = textLine->getChar(specialIndent + 7);
- else if (textLine->stringAtPos(specialIndent, "Q_SIGNALS"))
- ch = textLine->getChar(specialIndent + 9);
else if (textLine->stringAtPos(specialIndent, "slots"))
ch = textLine->getChar(specialIndent + 5);
- else if (textLine->stringAtPos(specialIndent, "Q_SLOTS"))
- ch = textLine->getChar(specialIndent + 7);
if (ch.isNull() || (!ch.isSpace() && ch != '(' && ch != ':'))
continue;
@@ -2174,8 +2168,8 @@ KateVarIndent::KateVarIndent( KateDocument *doc )
slotVariableChanged( "var-indent-handle-couples", doc->variable( "var-indent-handle-couples" ) );
// update if a setting is changed
- connect( doc, TQT_SIGNAL(variableChanged( const TQString&, const TQString&) ),
- this, TQT_SLOT(slotVariableChanged( const TQString&, const TQString& )) );
+ connect( doc, TQ_SIGNAL(variableChanged( const TQString&, const TQString&) ),
+ this, TQ_SLOT(slotVariableChanged( const TQString&, const TQString& )) );
}
KateVarIndent::~KateVarIndent()
diff --git a/kate/part/kateautoindent.h b/kate/part/kateautoindent.h
index fe8980d15..6a499df8e 100644
--- a/kate/part/kateautoindent.h
+++ b/kate/part/kateautoindent.h
@@ -43,7 +43,7 @@ class KateDocument;
*/
class IndenterConfigPage : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -69,7 +69,7 @@ class IndenterConfigPage : public TQWidget
*/
class KateAutoIndent : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
/**
* Static methods to create and list indention modes
@@ -194,7 +194,7 @@ class KateAutoIndent : public TQObject
*/
class KateViewIndentationAction : public TDEActionMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateViewIndentationAction(KateDocument *_doc, const TQString& text, TQObject* parent = 0, const char* name = 0);
@@ -216,7 +216,7 @@ class KateViewIndentationAction : public TDEActionMenu
*/
class KateNormalIndent : public KateAutoIndent
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -347,7 +347,7 @@ protected:
class KateCSmartIndent : public KateNormalIndent
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateCSmartIndent (KateDocument *doc);
@@ -378,7 +378,7 @@ class KateCSmartIndent : public KateNormalIndent
class KatePythonIndent : public KateNormalIndent
{
- Q_OBJECT
+ TQ_OBJECT
public:
KatePythonIndent (KateDocument *doc);
@@ -399,7 +399,7 @@ class KatePythonIndent : public KateNormalIndent
class KateXmlIndent : public KateNormalIndent
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateXmlIndent (KateDocument *doc);
@@ -428,7 +428,7 @@ class KateXmlIndent : public KateNormalIndent
class KateCSAndSIndent : public KateNormalIndent
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateCSAndSIndent (KateDocument *doc);
@@ -491,7 +491,7 @@ class KateCSAndSIndent : public KateNormalIndent
*/
class KateVarIndent : public KateNormalIndent
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -542,7 +542,7 @@ class KateVarIndent : public KateNormalIndent
class KateScriptIndent : public KateNormalIndent
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateScriptIndent( KateDocument *doc );
@@ -563,7 +563,7 @@ class KateScriptIndent : public KateNormalIndent
class ScriptIndentConfigPage : public IndenterConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
ScriptIndentConfigPage ( TQWidget *parent=0, const char *name=0 );
diff --git a/kate/part/katebookmarks.cpp b/kate/part/katebookmarks.cpp
index cc1dcf4c5..25f00d71b 100644
--- a/kate/part/katebookmarks.cpp
+++ b/kate/part/katebookmarks.cpp
@@ -62,7 +62,7 @@ KateBookmarks::KateBookmarks( KateView* view, Sorting sort )
, m_view( view )
, m_sorting( sort )
{
- connect (view->getDoc(), TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()));
+ connect (view->getDoc(), TQ_SIGNAL(marksChanged()), this, TQ_SLOT(marksChanged()));
_tries=0;
m_bookmarksMenu = 0L;
}
@@ -75,26 +75,26 @@ void KateBookmarks::createActions( TDEActionCollection* ac )
{
m_bookmarkToggle = new TDEToggleAction(
i18n("Set &Bookmark"), "bookmark", CTRL+Key_B,
- this, TQT_SLOT(toggleBookmark()),
+ this, TQ_SLOT(toggleBookmark()),
ac, "bookmarks_toggle" );
m_bookmarkToggle->setWhatsThis(i18n("If a line has no bookmark then add one, otherwise remove it."));
m_bookmarkToggle->setCheckedState( i18n("Clear &Bookmark") );
m_bookmarkClear = new TDEAction(
i18n("Clear &All Bookmarks"), 0,
- this, TQT_SLOT(clearBookmarks()),
+ this, TQ_SLOT(clearBookmarks()),
ac, "bookmarks_clear");
m_bookmarkClear->setWhatsThis(i18n("Remove all bookmarks of the current document."));
m_goNext = new TDEAction(
i18n("Next Bookmark"), "go-next", ALT + Key_PageDown,
- this, TQT_SLOT(goNext()),
+ this, TQ_SLOT(goNext()),
ac, "bookmarks_next");
m_goNext->setWhatsThis(i18n("Go to the next bookmark."));
m_goPrevious = new TDEAction(
i18n("Previous Bookmark"), "go-previous", ALT + Key_PageUp,
- this, TQT_SLOT(goPrevious()),
+ this, TQ_SLOT(goPrevious()),
ac, "bookmarks_previous");
m_goPrevious->setWhatsThis(i18n("Go to the previous bookmark."));
@@ -102,14 +102,14 @@ void KateBookmarks::createActions( TDEActionCollection* ac )
//connect the aboutToShow() and aboutToHide() signals with
//the bookmarkMenuAboutToShow() and bookmarkMenuAboutToHide() slots
- connect( m_bookmarksMenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(bookmarkMenuAboutToShow()));
- connect( m_bookmarksMenu, TQT_SIGNAL(aboutToHide()), this, TQT_SLOT(bookmarkMenuAboutToHide()) );
+ connect( m_bookmarksMenu, TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(bookmarkMenuAboutToShow()));
+ connect( m_bookmarksMenu, TQ_SIGNAL(aboutToHide()), this, TQ_SLOT(bookmarkMenuAboutToHide()) );
marksChanged ();
bookmarkMenuAboutToHide();
- connect( m_view, TQT_SIGNAL( gotFocus( Kate::View * ) ), this, TQT_SLOT( slotViewGotFocus( Kate::View * ) ) );
- connect( m_view, TQT_SIGNAL( lostFocus( Kate::View * ) ), this, TQT_SLOT( slotViewLostFocus( Kate::View * ) ) );
+ connect( m_view, TQ_SIGNAL( gotFocus( Kate::View * ) ), this, TQ_SLOT( slotViewGotFocus( Kate::View * ) ) );
+ connect( m_view, TQ_SIGNAL( lostFocus( Kate::View * ) ), this, TQ_SLOT( slotViewLostFocus( Kate::View * ) ) );
}
void KateBookmarks::toggleBookmark ()
@@ -181,7 +181,7 @@ void KateBookmarks::insertBookmarks( TQPopupMenu& menu )
menu.insertItem(
TQString("%1 - \"%2\"").arg( (*it)->line+1 ).arg( bText ),
- m_view, TQT_SLOT(gotoLineNumber(int)), 0, (*it)->line, idx );
+ m_view, TQ_SLOT(gotoLineNumber(int)), 0, (*it)->line, idx );
if ( (*it)->line < line )
{
diff --git a/kate/part/katebookmarks.h b/kate/part/katebookmarks.h
index 3295141f7..05215b66a 100644
--- a/kate/part/katebookmarks.h
+++ b/kate/part/katebookmarks.h
@@ -37,7 +37,7 @@ class TQMenuData;
class KateBookmarks : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
enum Sorting { Position, Creation };
diff --git a/kate/part/katebuffer.h b/kate/part/katebuffer.h
index 2be23cbdb..96765ceba 100644
--- a/kate/part/katebuffer.h
+++ b/kate/part/katebuffer.h
@@ -340,7 +340,7 @@ class KateBufBlockList
*/
class KateBuffer : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
friend class KateBufBlock;
diff --git a/kate/part/katecmds.cpp b/kate/part/katecmds.cpp
index f00825eb5..0f6cd4e53 100644
--- a/kate/part/katecmds.cpp
+++ b/kate/part/katecmds.cpp
@@ -110,7 +110,7 @@ bool KateCommands::CoreCommands::exec(Kate::View *view,
}
else if ( cmd == "run-myself" )
{
-#ifndef Q_WS_WIN //todo
+#ifndef TQ_WS_WIN //todo
return KateFactory::self()->jscript()->execute(v, v->doc()->text(), errorMsg);
#else
return 0;
diff --git a/kate/part/katecodecompletion.cpp b/kate/part/katecodecompletion.cpp
index 275894483..0a3dfe771 100644
--- a/kate/part/katecodecompletion.cpp
+++ b/kate/part/katecodecompletion.cpp
@@ -129,11 +129,11 @@ KateCodeCompletion::KateCodeCompletion( KateView* view )
m_completionPopup->setFocusProxy( m_view->m_viewInternal );
m_pArgHint = new KateArgHint( m_view );
- connect( m_pArgHint, TQT_SIGNAL(argHintHidden()),
- this, TQT_SIGNAL(argHintHidden()) );
+ connect( m_pArgHint, TQ_SIGNAL(argHintHidden()),
+ this, TQ_SIGNAL(argHintHidden()) );
- connect( m_view, TQT_SIGNAL(cursorPositionChanged()),
- this, TQT_SLOT(slotCursorPosChanged()) );
+ connect( m_view, TQ_SIGNAL(cursorPositionChanged()),
+ this, TQ_SLOT(slotCursorPosChanged()) );
}
KateCodeCompletion::~KateCodeCompletion()
@@ -163,9 +163,9 @@ void KateCodeCompletion::showCompletionBox(
bool KateCodeCompletion::eventFilter( TQObject *o, TQEvent *e )
{
- if ( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionPopup) &&
- TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionListBox) &&
- TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_completionListBox->viewport()) )
+ if ( o != m_completionPopup &&
+ o != m_completionListBox &&
+ o != m_completionListBox->viewport() )
return false;
if( e->type() == TQEvent::Hide )
@@ -185,7 +185,7 @@ bool KateCodeCompletion::eventFilter( TQObject *o, TQEvent *e )
}
if ( e->type() == TQEvent::MouseButtonPress ) {
- TQTimer::singleShot(0, this, TQT_SLOT(showComment()));
+ TQTimer::singleShot(0, this, TQ_SLOT(showComment()));
return false;
}
@@ -207,7 +207,7 @@ void KateCodeCompletion::handleKey (TQKeyEvent *e)
(e->key() == Key_Home ) || (e->key() == Key_End) ||
(e->key() == Key_Prior) || (e->key() == Key_Next ))
{
- TQTimer::singleShot(0,this,TQT_SLOT(showComment()));
+ TQTimer::singleShot(0,this,TQ_SLOT(showComment()));
TQApplication::sendEvent( m_completionListBox, (TQEvent*)e );
return;
}
@@ -324,7 +324,7 @@ void KateCodeCompletion::updateBox( bool )
m_completionListBox->setFocus();
m_completionPopup->show();
- TQTimer::singleShot(0,this,TQT_SLOT(showComment()));
+ TQTimer::singleShot(0,this,TQ_SLOT(showComment()));
}
void KateCodeCompletion::showArgHint ( TQStringList functionList, const TQString& strWrapping, const TQString& strDelimiter )
@@ -395,7 +395,7 @@ KateArgHint::KateArgHint( KateView* parent, const char* name )
: TQFrame( parent, name, (WFlags)WType_Popup )
{
setBackgroundColor( black );
- setPaletteForegroundColor( Qt::black );
+ setPaletteForegroundColor( TQt::black );
labelDict.setAutoDelete( true );
layout = new TQVBoxLayout( this, 1, 2 );
@@ -404,7 +404,7 @@ KateArgHint::KateArgHint( KateView* parent, const char* name )
m_markCurrentFunction = true;
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setFocusProxy( parent );
reset( -1, -1 );
@@ -533,7 +533,7 @@ void KateArgHint::show()
bool KateArgHint::eventFilter( TQObject*, TQEvent* e )
{
if( isVisible() && e->type() == TQEvent::KeyPress ){
- TQKeyEvent* ke = TQT_TQKEYEVENT( e );
+ TQKeyEvent* ke = static_cast<TQKeyEvent*>( e );
if( (ke->state() & ControlButton) && ke->key() == Key_Left ){
setCurrentFunction( currentFunction() - 1 );
ke->accept();
diff --git a/kate/part/katecodecompletion.h b/kate/part/katecodecompletion.h
index d2c9ca636..78c68a759 100644
--- a/kate/part/katecodecompletion.h
+++ b/kate/part/katecodecompletion.h
@@ -46,7 +46,7 @@ class TQVBox;
class KateCodeCompletionCommentLabel : public TQLabel
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateCodeCompletionCommentLabel( TQWidget* parent, const TQString& text) : TQLabel( parent, "toolTipTip",
@@ -66,7 +66,7 @@ class KateCodeCompletionCommentLabel : public TQLabel
class KateCodeCompletion : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
friend class KateViewInternal;
@@ -116,7 +116,7 @@ class KateCodeCompletion : public TQObject
class KateArgHint: public TQFrame
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateArgHint( KateView* =0, const char* =0 );
diff --git a/kate/part/katecodefoldinghelpers.h b/kate/part/katecodefoldinghelpers.h
index 3f6d18b27..21faeeb0d 100644
--- a/kate/part/katecodefoldinghelpers.h
+++ b/kate/part/katecodefoldinghelpers.h
@@ -117,7 +117,7 @@ class KateCodeFoldingTree : public TQObject
{
friend class KateCodeFoldingNode;
- Q_OBJECT
+ TQ_OBJECT
public:
KateCodeFoldingTree (KateBuffer *buffer);
diff --git a/kate/part/kateconfig.cpp b/kate/part/kateconfig.cpp
index c9feae9da..7625af0eb 100644
--- a/kate/part/kateconfig.cpp
+++ b/kate/part/kateconfig.cpp
@@ -1155,13 +1155,13 @@ void KateRendererConfig::setSchemaInternal( int schema )
// same std colors like in KateDocument::markColor
TQColor mark[7];
- mark[0] = Qt::blue;
- mark[1] = Qt::red;
- mark[2] = Qt::yellow;
- mark[3] = Qt::magenta;
- mark[4] = Qt::gray;
- mark[5] = Qt::green;
- mark[6] = Qt::red;
+ mark[0] = TQt::blue;
+ mark[1] = TQt::red;
+ mark[2] = TQt::yellow;
+ mark[3] = TQt::magenta;
+ mark[4] = TQt::gray;
+ mark[5] = TQt::green;
+ mark[6] = TQt::red;
for (int i = 1; i <= KTextEditor::MarkInterface::reservedMarkersCount(); i++) {
TQColor col = config->readColorEntry(TQString("Color MarkType%1").arg(i), &mark[i - 1]);
diff --git a/kate/part/katecursor.h b/kate/part/katecursor.h
index 85cd5828d..5ab41e13f 100644
--- a/kate/part/katecursor.h
+++ b/kate/part/katecursor.h
@@ -60,7 +60,7 @@ class KateTextCursor
return stream;
}
-#ifndef Q_WS_WIN //not needed
+#ifndef TQ_WS_WIN //not needed
friend void tqSwap(KateTextCursor & c1, KateTextCursor & c2) {
KateTextCursor tmp = c1;
c1 = c2;
diff --git a/kate/part/katedialogs.cpp b/kate/part/katedialogs.cpp
index 08b63eae3..a77ecf8d7 100644
--- a/kate/part/katedialogs.cpp
+++ b/kate/part/katedialogs.cpp
@@ -117,7 +117,7 @@ KateConfigPage::KateConfigPage ( TQWidget *parent, const char *name )
: Kate::ConfigPage (parent, name)
, m_changed (false)
{
- connect (this, TQT_SIGNAL(changed()), this, TQT_SLOT(somethingHasChanged ()));
+ connect (this, TQ_SIGNAL(changed()), this, TQ_SLOT(somethingHasChanged ()));
}
KateConfigPage::~KateConfigPage ()
@@ -179,7 +179,7 @@ KateIndentConfigTab::KateIndentConfigTab(TQWidget *parent)
opt[4] = new TQCheckBox(i18n("&Backspace key indents"), keys);
TQRadioButton *rb1, *rb2, *rb3;
- m_tabs = new TQButtonGroup( 1, Qt::Horizontal, i18n("Tab Key Mode if Nothing Selected"), this );
+ m_tabs = new TQButtonGroup( 1, TQt::Horizontal, i18n("Tab Key Mode if Nothing Selected"), this );
m_tabs->setRadioButtonExclusive( true );
m_tabs->insert( rb1=new TQRadioButton( i18n("Insert indent &characters"), m_tabs ), 0 );
m_tabs->insert( rb2=new TQRadioButton( i18n("I&nsert tab character"), m_tabs ), 1 );
@@ -235,27 +235,27 @@ KateIndentConfigTab::KateIndentConfigTab(TQWidget *parent)
// after initial reload, connect the stuff for the changed () signal
//
- connect(m_indentMode, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged()));
- connect(m_indentMode, TQT_SIGNAL(activated(int)), this, TQT_SLOT(indenterSelected(int)));
+ connect(m_indentMode, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotChanged()));
+ connect(m_indentMode, TQ_SIGNAL(activated(int)), this, TQ_SLOT(indenterSelected(int)));
- connect( opt[0], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(somethingToggled()));
+ connect( opt[0], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(somethingToggled()));
- connect( opt[0], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( opt[1], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( opt[2], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( opt[3], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( opt[4], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( opt[5], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( opt[6], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( opt[7], TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
+ connect( opt[0], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( opt[1], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( opt[2], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( opt[3], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( opt[4], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( opt[5], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( opt[6], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( opt[7], TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
- connect(indentationWidth, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
+ connect(indentationWidth, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
- connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(rb3, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(rb1, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(rb2, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(rb3, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
- connect(m_configPage, TQT_SIGNAL(clicked()), this, TQT_SLOT(configPage()));
+ connect(m_configPage, TQ_SIGNAL(clicked()), this, TQ_SLOT(configPage()));
}
void KateIndentConfigTab::somethingToggled() {
@@ -292,7 +292,7 @@ void KateIndentConfigTab::configPage()
if (!page) return;
box->setStretchFactor(page, 1);
- connect( &dlg, TQT_SIGNAL(okClicked()), page, TQT_SLOT(apply()) );
+ connect( &dlg, TQ_SIGNAL(okClicked()), page, TQ_SLOT(apply()) );
dlg.resize(400, 300);
dlg.exec();
@@ -357,26 +357,26 @@ KateSelectConfigTab::KateSelectConfigTab(TQWidget *parent)
opt[0] = new TQCheckBox(i18n("Smart ho&me and smart end"), gbCursor);
opt[0]->setChecked(configFlags & KateDocumentConfig::cfSmartHome);
- connect(opt[0], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(opt[0], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
opt[1] = new TQCheckBox(i18n("Wrap c&ursor"), gbCursor);
opt[1]->setChecked(configFlags & KateDocumentConfig::cfWrapCursor);
- connect(opt[1], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(opt[1], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
e6 = new TQCheckBox(i18n("&PageUp/PageDown moves cursor"), gbCursor);
e6->setChecked(KateDocumentConfig::global()->pageUpDownMovesCursor());
- connect(e6, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(e6, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
e4 = new KIntNumInput(KateViewConfig::global()->autoCenterLines(), gbCursor);
e4->setRange(0, 1000000, 1, false);
e4->setLabel(i18n("Autocenter cursor (lines):"), AlignVCenter);
- connect(e4, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
+ connect(e4, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
layout->addWidget(gbCursor);
TQRadioButton *rb1, *rb2;
- m_tabs = new TQButtonGroup( 1, Qt::Horizontal, i18n("Selection Mode"), this );
+ m_tabs = new TQButtonGroup( 1, TQt::Horizontal, i18n("Selection Mode"), this );
layout->add (m_tabs);
m_tabs->setRadioButtonExclusive( true );
@@ -416,8 +416,8 @@ KateSelectConfigTab::KateSelectConfigTab(TQWidget *parent)
// after initial reload, connect the stuff for the changed () signal
//
- connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(rb1, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(rb2, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
}
void KateSelectConfigTab::apply ()
@@ -473,16 +473,16 @@ KateEditConfigTab::KateEditConfigTab(TQWidget *parent)
opt[3] = new TQCheckBox( i18n("&Insert spaces instead of tabulators"), gbWhiteSpace );
opt[3]->setChecked( configFlags & KateDocumentConfig::cfReplaceTabsDyn );
- connect( opt[3], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()) );
+ connect( opt[3], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()) );
opt[2] = new TQCheckBox(i18n("&Show tabulators"), gbWhiteSpace);
opt[2]->setChecked(configFlags & flags[2]);
- connect(opt[2], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(opt[2], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
e2 = new KIntNumInput(KateDocumentConfig::global()->tabWidth(), gbWhiteSpace);
e2->setRange(1, 16, 1, false);
e2->setLabel(i18n("Tab width:"), AlignVCenter);
- connect(e2, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
+ connect(e2, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
mainLayout->addWidget(gbWhiteSpace);
@@ -490,35 +490,35 @@ KateEditConfigTab::KateEditConfigTab(TQWidget *parent)
opt[0] = new TQCheckBox(i18n("Enable static &word wrap"), gbWordWrap);
opt[0]->setChecked(KateDocumentConfig::global()->wordWrap());
- connect(opt[0], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(opt[0], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
m_wwmarker = new TQCheckBox( i18n("&Show static word wrap marker (if applicable)"), gbWordWrap );
m_wwmarker->setChecked( KateRendererConfig::global()->wordWrapMarker() );
- connect(m_wwmarker, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(m_wwmarker, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
e1 = new KIntNumInput(KateDocumentConfig::global()->wordWrapAt(), gbWordWrap);
e1->setRange(20, 200, 1, false);
e1->setLabel(i18n("Wrap words at:"), AlignVCenter);
- connect(e1, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
+ connect(e1, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
mainLayout->addWidget(gbWordWrap);
opt[4] = new TQCheckBox( i18n("Remove &trailing spaces"), this );
mainLayout->addWidget( opt[4] );
opt[4]->setChecked( configFlags & KateDocumentConfig::cfRemoveTrailingDyn );
- connect( opt[4], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()) );
+ connect( opt[4], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()) );
opt[1] = new TQCheckBox(i18n("Auto &brackets"), this);
mainLayout->addWidget(opt[1]);
opt[1]->setChecked(configFlags & flags[1]);
- connect(opt[1], TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(opt[1], TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
e3 = new KIntNumInput(e2, KateDocumentConfig::global()->undoSteps(), this);
e3->setRange(0, 1000000, 1, false);
e3->setSpecialValueText( i18n("Unlimited") );
e3->setLabel(i18n("Maximum undo steps:"), AlignVCenter);
mainLayout->addWidget(e3);
- connect(e3, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
+ connect(e3, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
TQHBoxLayout *e5Layout = new TQHBoxLayout(mainLayout);
TQLabel *e5Label = new TQLabel(i18n("Smart search t&ext from:"), this);
@@ -532,7 +532,7 @@ KateEditConfigTab::KateEditConfigTab(TQWidget *parent)
e5->setCurrentItem(KateViewConfig::global()->textToSearchMode());
e5Layout->addWidget(e5);
e5Label->setBuddy(e5);
- connect(e5, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged()));
+ connect(e5, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotChanged()));
mainLayout->addStretch();
@@ -684,7 +684,7 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(TQWidget *parent)
blay->addWidget(gbBar);
- m_bmSort = new TQButtonGroup( 1, Qt::Horizontal, i18n("Sort Bookmarks Menu"), this );
+ m_bmSort = new TQButtonGroup( 1, TQt::Horizontal, i18n("Sort Bookmarks Menu"), this );
m_bmSort->setRadioButtonExclusive( true );
m_bmSort->insert( rb1=new TQRadioButton( i18n("By &position"), m_bmSort ), 0 );
m_bmSort->insert( rb2=new TQRadioButton( i18n("By c&reation"), m_bmSort ), 1 );
@@ -744,17 +744,17 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(TQWidget *parent)
// after initial reload, connect the stuff for the changed () signal
//
- connect(m_dynwrap, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(m_dynwrapIndicatorsCombo, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged()));
- connect(m_dynwrapAlignLevel, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
- connect(m_icons, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(m_scrollBarMarks, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(m_line, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(m_folding, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(m_collapseTopLevel, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()) );
- connect(rb1, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(rb2, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect(m_showIndentLines, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
+ connect(m_dynwrap, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(m_dynwrapIndicatorsCombo, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotChanged()));
+ connect(m_dynwrapAlignLevel, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
+ connect(m_icons, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(m_scrollBarMarks, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(m_line, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(m_folding, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(m_collapseTopLevel, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()) );
+ connect(rb1, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(rb2, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect(m_showIndentLines, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
}
KateViewDefaultsConfig::~KateViewDefaultsConfig()
@@ -821,7 +821,7 @@ void KateEditKeyConfiguration::showEvent ( TQShowEvent * )
KateView* view = (KateView*)m_doc->views().at(0);
m_ac = view->editActionCollection();
m_keyChooser = new KKeyChooser( m_ac, this, false );
- connect( m_keyChooser, TQT_SIGNAL( keyChange() ), this, TQT_SLOT( slotChanged() ) );
+ connect( m_keyChooser, TQ_SIGNAL( keyChange() ), this, TQ_SLOT( slotChanged() ) );
m_keyChooser->show ();
m_ready = true;
@@ -895,7 +895,7 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent )
dirSearchDepth->setSpecialValueText( i18n("Do not use config file") );
dirSearchDepth->setLabel(i18n("Se&arch depth for config file:"), AlignVCenter);
- TQGroupBox *gb = new TQGroupBox( 1, Qt::Horizontal, i18n("Backup on Save"), this );
+ TQGroupBox *gb = new TQGroupBox( 1, TQt::Horizontal, i18n("Backup on Save"), this );
layout->addWidget( gb );
cbLocalFiles = new TQCheckBox( i18n("&Local files"), gb );
cbRemoteFiles = new TQCheckBox( i18n("&Remote files"), gb );
@@ -947,16 +947,16 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent )
// after initial reload, connect the stuff for the changed () signal
//
- connect(m_encoding, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged()));
- connect(m_eol, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotChanged()));
- connect( allowEolDetection, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect(blockCount, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
- connect(removeSpaces, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotChanged()));
- connect( cbLocalFiles, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect( cbRemoteFiles, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotChanged() ) );
- connect(dirSearchDepth, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slotChanged()));
- connect( leBuPrefix, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( leBuSuffix, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
+ connect(m_encoding, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotChanged()));
+ connect(m_eol, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotChanged()));
+ connect( allowEolDetection, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect(blockCount, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
+ connect(removeSpaces, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotChanged()));
+ connect( cbLocalFiles, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect( cbRemoteFiles, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
+ connect(dirSearchDepth, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slotChanged()));
+ connect( leBuPrefix, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( leBuSuffix, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
}
void KateSaveConfigTab::apply()
@@ -1130,13 +1130,13 @@ KatePartPluginConfigPage::KatePartPluginConfigPage (TQWidget *parent) : KateConf
btnConfigure = new TQPushButton( i18n("Configure..."), this );
btnConfigure->setEnabled( false );
- grid->addWidget( btnConfigure, 1, 0, Qt::AlignRight );
- connect( btnConfigure, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConfigure()) );
+ grid->addWidget( btnConfigure, 1, 0, TQt::AlignRight );
+ connect( btnConfigure, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotConfigure()) );
- connect( listView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotCurrentChanged(TQListViewItem*)) );
- connect( listView, TQT_SIGNAL(stateChange(KatePartPluginListItem *, bool)),
- this, TQT_SLOT(slotStateChanged(KatePartPluginListItem *, bool)));
- connect(listView, TQT_SIGNAL(stateChange(KatePartPluginListItem *, bool)), this, TQT_SLOT(slotChanged()));
+ connect( listView, TQ_SIGNAL(selectionChanged(TQListViewItem*)), this, TQ_SLOT(slotCurrentChanged(TQListViewItem*)) );
+ connect( listView, TQ_SIGNAL(stateChange(KatePartPluginListItem *, bool)),
+ this, TQ_SLOT(slotStateChanged(KatePartPluginListItem *, bool)));
+ connect(listView, TQ_SIGNAL(stateChange(KatePartPluginListItem *, bool)), this, TQ_SLOT(slotChanged()));
}
KatePartPluginConfigPage::~KatePartPluginConfigPage ()
@@ -1266,8 +1266,8 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
TQLabel *lHl = new TQLabel( i18n("H&ighlight:"), hbHl );
hlCombo = new TQComboBox( false, hbHl );
lHl->setBuddy( hlCombo );
- connect( hlCombo, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(hlChanged(int)) );
+ connect( hlCombo, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(hlChanged(int)) );
for( int i = 0; i < KateHlManager::self()->highlights(); i++) {
if (KateHlManager::self()->hlSection(i).length() > 0)
@@ -1276,7 +1276,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
hlCombo->insertItem(KateHlManager::self()->hlNameTranslated(i));
}
- TQGroupBox *gbInfo = new TQGroupBox( 1, Qt::Horizontal, i18n("Information"), this );
+ TQGroupBox *gbInfo = new TQGroupBox( 1, TQt::Horizontal, i18n("Information"), this );
layout->add (gbInfo);
// author
@@ -1290,7 +1290,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
new TQLabel( i18n("License:"), hb2 );
license = new TQLabel (hb2);
- TQGroupBox *gbProps = new TQGroupBox( 1, Qt::Horizontal, i18n("Properties"), this );
+ TQGroupBox *gbProps = new TQGroupBox( 1, TQt::Horizontal, i18n("Properties"), this );
layout->add (gbProps);
// file & mime types
@@ -1312,7 +1312,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
TQToolButton *btnMTW = new TQToolButton(hbMT);
btnMTW->setIconSet(TQIconSet(SmallIcon("wizard")));
- connect(btnMTW, TQT_SIGNAL(clicked()), this, TQT_SLOT(showMTDlg()));
+ connect(btnMTW, TQ_SIGNAL(clicked()), this, TQ_SLOT(showMTDlg()));
// download/new buttons
TQHBox *hbBtns = new TQHBox( this );
@@ -1321,7 +1321,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
((TQBoxLayout*)hbBtns->layout())->addStretch(1); // hmm.
hbBtns->setSpacing( KDialog::spacingHint() );
TQPushButton *btnDl = new TQPushButton(i18n("Do&wnload..."), hbBtns);
- connect( btnDl, TQT_SIGNAL(clicked()), this, TQT_SLOT(hlDownload()) );
+ connect( btnDl, TQ_SIGNAL(clicked()), this, TQ_SLOT(hlDownload()) );
int currentHl = m_doc ? m_doc->hlMode() : 0;
hlCombo->setCurrentItem( currentHl );
@@ -1347,9 +1347,9 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
layout->addStretch ();
- connect( wildcards, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( mimetypes, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( priority, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
+ connect( wildcards, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( mimetypes, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( priority, TQ_SIGNAL( valueChanged ( int ) ), this, TQ_SLOT( slotChanged() ) );
}
KateHlConfigPage::~KateHlConfigPage ()
@@ -1453,8 +1453,8 @@ KateHlDownloadDialog::KateHlDownloadDialog(TQWidget *parent, const char *name, b
actionButton (User1)->setIconSet(SmallIconSet("ok"));
transferJob = TDEIO::get(KURL(TQString(HLDOWNLOADPATH)), true, true);
- connect(transferJob, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
- this, TQT_SLOT(listDataReceived(TDEIO::Job *, const TQByteArray &)));
+ connect(transferJob, TQ_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
+ this, TQ_SLOT(listDataReceived(TDEIO::Job *, const TQByteArray &)));
// void data( TDEIO::Job *, const TQByteArray &data);
resize(450, 400);
}
@@ -1616,7 +1616,7 @@ KateModOnHdPrompt::KateModOnHdPrompt( KateDocument *doc,
TQPushButton *btnDiff = new TQPushButton( i18n("&View Difference"), w );
lo2->addStretch( 1 );
lo2->addWidget( btnDiff );
- connect( btnDiff, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDiff()) );
+ connect( btnDiff, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDiff()) );
TQWhatsThis::add( btnDiff, i18n(
"Calculates the difference between the editor contents and the disk "
"file using diff(1) and opens the diff file with the default application "
@@ -1639,8 +1639,8 @@ void KateModOnHdPrompt::slotDiff()
KProcIO *p = new KProcIO();
p->setComm( TDEProcess::All );
*p << "diff" << "-u" << "-" << m_doc->url().path();
- connect( p, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotPDone(TDEProcess*)) );
- connect( p, TQT_SIGNAL(readReady(KProcIO*)), this, TQT_SLOT(slotPRead(KProcIO*)) );
+ connect( p, TQ_SIGNAL(processExited(TDEProcess*)), this, TQ_SLOT(slotPDone(TDEProcess*)) );
+ connect( p, TQ_SIGNAL(readReady(KProcIO*)), this, TQ_SLOT(slotPRead(KProcIO*)) );
setCursor( WaitCursor );
diff --git a/kate/part/katedialogs.h b/kate/part/katedialogs.h
index 0f865fcea..b4b4eb137 100644
--- a/kate/part/katedialogs.h
+++ b/kate/part/katedialogs.h
@@ -79,7 +79,7 @@ class TQCheckBox;
class KateConfigPage : public Kate::ConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateConfigPage ( TQWidget *parent=0, const char *name=0 );
@@ -97,7 +97,7 @@ class KateConfigPage : public Kate::ConfigPage
class KateGotoLineDialog : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
@@ -112,7 +112,7 @@ class KateGotoLineDialog : public KDialogBase
class KateIndentConfigTab : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateIndentConfigTab(TQWidget *parent);
@@ -141,7 +141,7 @@ class KateIndentConfigTab : public KateConfigPage
class KateSelectConfigTab : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSelectConfigTab(TQWidget *parent);
@@ -164,7 +164,7 @@ class KateSelectConfigTab : public KateConfigPage
class KateEditConfigTab : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateEditConfigTab(TQWidget *parent);
@@ -189,7 +189,7 @@ class KateEditConfigTab : public KateConfigPage
class KateViewDefaultsConfig : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateViewDefaultsConfig( TQWidget *parent );
@@ -217,7 +217,7 @@ class KateViewDefaultsConfig : public KateConfigPage
class KateEditKeyConfiguration: public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateEditKeyConfiguration( TQWidget* parent, KateDocument* doc );
@@ -240,7 +240,7 @@ class KateEditKeyConfiguration: public KateConfigPage
class KateSaveConfigTab : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSaveConfigTab( TQWidget *parent );
@@ -265,7 +265,7 @@ class KatePartPluginListItem;
class KatePartPluginListView : public TDEListView
{
- Q_OBJECT
+ TQ_OBJECT
friend class KatePartPluginListItem;
@@ -282,7 +282,7 @@ class KatePartPluginListView : public TDEListView
class TQListViewItem;
class KatePartPluginConfigPage : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KatePartPluginConfigPage (TQWidget *parent);
@@ -307,7 +307,7 @@ class KatePartPluginConfigPage : public KateConfigPage
class KateHlConfigPage : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateHlConfigPage (TQWidget *parent, KateDocument *doc);
@@ -341,7 +341,7 @@ class KateHlConfigPage : public KateConfigPage
class KateHlDownloadDialog: public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateHlDownloadDialog(TQWidget *parent, const char *name, bool modal);
@@ -369,7 +369,7 @@ class TDEProcess;
*/
class KateModOnHdPrompt : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
enum Status {
Reload=1, // 0 is KDialogBase::Cancel
diff --git a/kate/part/katedocument.cpp b/kate/part/katedocument.cpp
index 56e6e1846..4118cb7ef 100644
--- a/kate/part/katedocument.cpp
+++ b/kate/part/katedocument.cpp
@@ -171,7 +171,7 @@ KateDocument::KateDocument ( bool bSingleViewMode, bool bBrowserView,
setMarksUserChangable( markType01 );
m_undoMergeTimer = new TQTimer(this);
- connect(m_undoMergeTimer, TQT_SIGNAL(timeout()), TQT_SLOT(undoCancel()));
+ connect(m_undoMergeTimer, TQ_SIGNAL(timeout()), TQ_SLOT(undoCancel()));
clearMarks ();
clearUndo ();
@@ -189,24 +189,24 @@ KateDocument::KateDocument ( bool bSingleViewMode, bool bBrowserView,
m_indenter->updateConfig ();
// some nice signals from the buffer
- connect(m_buffer, TQT_SIGNAL(tagLines(int,int)), this, TQT_SLOT(tagLines(int,int)));
- connect(m_buffer, TQT_SIGNAL(codeFoldingUpdated()),this,TQT_SIGNAL(codeFoldingUpdated()));
+ connect(m_buffer, TQ_SIGNAL(tagLines(int,int)), this, TQ_SLOT(tagLines(int,int)));
+ connect(m_buffer, TQ_SIGNAL(codeFoldingUpdated()),this,TQ_SIGNAL(codeFoldingUpdated()));
// if the user changes the highlight with the dialog, notify the doc
- connect(KateHlManager::self(),TQT_SIGNAL(changed()),TQT_SLOT(internalHlChanged()));
+ connect(KateHlManager::self(),TQ_SIGNAL(changed()),TQ_SLOT(internalHlChanged()));
// signal for the arbitrary HL
- connect(m_arbitraryHL, TQT_SIGNAL(tagLines(KateView*, KateSuperRange*)), TQT_SLOT(tagArbitraryLines(KateView*, KateSuperRange*)));
+ connect(m_arbitraryHL, TQ_SIGNAL(tagLines(KateView*, KateSuperRange*)), TQ_SLOT(tagArbitraryLines(KateView*, KateSuperRange*)));
// signals for mod on hd
- connect( KateFactory::self()->dirWatch(), TQT_SIGNAL(dirty (const TQString &)),
- this, TQT_SLOT(slotModOnHdDirty (const TQString &)) );
+ connect( KateFactory::self()->dirWatch(), TQ_SIGNAL(dirty (const TQString &)),
+ this, TQ_SLOT(slotModOnHdDirty (const TQString &)) );
- connect( KateFactory::self()->dirWatch(), TQT_SIGNAL(created (const TQString &)),
- this, TQT_SLOT(slotModOnHdCreated (const TQString &)) );
+ connect( KateFactory::self()->dirWatch(), TQ_SIGNAL(created (const TQString &)),
+ this, TQ_SLOT(slotModOnHdCreated (const TQString &)) );
- connect( KateFactory::self()->dirWatch(), TQT_SIGNAL(deleted (const TQString &)),
- this, TQT_SLOT(slotModOnHdDeleted (const TQString &)) );
+ connect( KateFactory::self()->dirWatch(), TQ_SIGNAL(deleted (const TQString &)),
+ this, TQ_SLOT(slotModOnHdDeleted (const TQString &)) );
// update doc name
setDocName ("");
@@ -220,7 +220,7 @@ KateDocument::KateDocument ( bool bSingleViewMode, bool bBrowserView,
setWidget( view );
}
- connect(this,TQT_SIGNAL(sigQueryClose(bool *, bool*)),this,TQT_SLOT(slotQueryClose_save(bool *, bool*)));
+ connect(this,TQ_SIGNAL(sigQueryClose(bool *, bool*)),this,TQ_SLOT(slotQueryClose_save(bool *, bool*)));
m_isasking = 0;
@@ -356,9 +356,9 @@ void KateDocument::disablePluginGUI (KTextEditor::Plugin *plugin)
KTextEditor::View *KateDocument::createView( TQWidget *parent, const char *name )
{
KateView* newView = new KateView( this, parent, name);
- connect(newView, TQT_SIGNAL(cursorPositionChanged()), TQT_SLOT(undoCancel()));
+ connect(newView, TQ_SIGNAL(cursorPositionChanged()), TQ_SLOT(undoCancel()));
if ( s_fileChangedDialogsActivated )
- connect( newView, TQT_SIGNAL(gotFocus( Kate::View * )), this, TQT_SLOT(slotModifiedOnDisk()) );
+ connect( newView, TQ_SIGNAL(gotFocus( Kate::View * )), this, TQ_SLOT(slotModifiedOnDisk()) );
return newView;
}
@@ -1986,7 +1986,7 @@ void KateDocument::configDialog()
KDialogBase::Ok,
kapp->mainWidget() );
-#ifndef Q_WS_WIN //TODO: reenable
+#ifndef TQ_WS_WIN //TODO: reenable
KWin::setIcons( kd->winId(), kapp->icon(), kapp->miniIcon() );
#endif
@@ -2305,11 +2305,11 @@ bool KateDocument::openURL( const KURL &url )
m_job = TDEIO::get ( url, false, isProgressInfoEnabled() );
// connect to slots
- connect( m_job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
- TQT_SLOT( slotDataKate( TDEIO::Job*, const TQByteArray& ) ) );
+ connect( m_job, TQ_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
+ TQ_SLOT( slotDataKate( TDEIO::Job*, const TQByteArray& ) ) );
- connect( m_job, TQT_SIGNAL( result( TDEIO::Job* ) ),
- TQT_SLOT( slotFinishedKate( TDEIO::Job* ) ) );
+ connect( m_job, TQ_SIGNAL( result( TDEIO::Job* ) ),
+ TQ_SLOT( slotFinishedKate( TDEIO::Job* ) ) );
TQWidget *w = widget ();
if (!w && !m_views.isEmpty ())
@@ -4654,7 +4654,7 @@ void KateDocument::readVariableLine( TQString t, bool onlyViewAndRenderer )
bool found = false;
for (TQStringList::size_type i = 0; !found && i < wildcards.size(); ++i)
{
- TQRegExp wildcard (wildcards[i], true/*Qt::CaseSensitive*/, true/*TQRegExp::Wildcard*/);
+ TQRegExp wildcard (wildcards[i], true/*TQt::CaseSensitive*/, true/*TQRegExp::Wildcard*/);
found = wildcard.exactMatch (nameOfFile);
}
@@ -4964,7 +4964,7 @@ bool KateDocument::createDigest( TQCString &result )
if ( f.open( IO_ReadOnly) )
{
KMD5 md5;
- ret = md5.update( TQT_TQIODEVICE_OBJECT(f) );
+ ret = md5.update( f );
md5.hexDigest( result );
f.close();
ret = true;
diff --git a/kate/part/katedocument.h b/kate/part/katedocument.h
index b417c6d7d..c16a86840 100644
--- a/kate/part/katedocument.h
+++ b/kate/part/katedocument.h
@@ -84,7 +84,7 @@ class KateDocument : public Kate::Document,
public DCOPObject
{
K_DCOP
- Q_OBJECT
+ TQ_OBJECT
friend class KateViewInternal;
friend class KateRenderer;
diff --git a/kate/part/katedocumenthelpers.cpp b/kate/part/katedocumenthelpers.cpp
index ff4184685..9296773d5 100644
--- a/kate/part/katedocumenthelpers.cpp
+++ b/kate/part/katedocumenthelpers.cpp
@@ -31,8 +31,8 @@ KateBrowserExtension::KateBrowserExtension( KateDocument* doc )
: KParts::BrowserExtension( doc, "katepartbrowserextension" ),
m_doc (doc)
{
- connect( doc, TQT_SIGNAL( selectionChanged() ),
- this, TQT_SLOT( slotSelectionChanged() ) );
+ connect( doc, TQ_SIGNAL( selectionChanged() ),
+ this, TQ_SLOT( slotSelectionChanged() ) );
emit enableAction( "print", true );
}
diff --git a/kate/part/katedocumenthelpers.h b/kate/part/katedocumenthelpers.h
index b604d47ce..0609f6841 100644
--- a/kate/part/katedocumenthelpers.h
+++ b/kate/part/katedocumenthelpers.h
@@ -35,7 +35,7 @@ class KateDocument;
*/
class KateBrowserExtension : public KParts::BrowserExtension
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/kate/part/katefactory.cpp b/kate/part/katefactory.cpp
index 51549bda0..56bdfa307 100644
--- a/kate/part/katefactory.cpp
+++ b/kate/part/katefactory.cpp
@@ -27,7 +27,7 @@
#include "kateschema.h"
#include "katesearch.h"
#include "kateconfig.h"
-#ifndef Q_WS_WIN //todo
+#ifndef TQ_WS_WIN //todo
#include "katejscript.h"
#endif
#include "kateluaindentscript.h"
@@ -137,7 +137,7 @@ KateFactory::KateFactory ()
// vm allocator
m_vm = new KVMAllocator ();
-#ifndef Q_WS_WIN //todo
+#ifndef TQ_WS_WIN //todo
// create script man (search scripts) + register commands
m_jscriptManager = new KateJScriptManager ();
KateCmd::self()->registerCommand (m_jscriptManager);
@@ -251,7 +251,7 @@ void KateFactory::deregisterRenderer ( KateRenderer *renderer )
KateJScript *KateFactory::jscript ()
{
-#ifndef Q_WS_WIN //todo
+#ifndef TQ_WS_WIN //todo
if (m_jscript)
return m_jscript;
diff --git a/kate/part/katefiletype.cpp b/kate/part/katefiletype.cpp
index 974262290..eeecce36a 100644
--- a/kate/part/katefiletype.cpp
+++ b/kate/part/katefiletype.cpp
@@ -273,16 +273,16 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent )
TQLabel *lHl = new TQLabel( i18n("&Filetype:"), hbHl );
typeCombo = new TQComboBox( false, hbHl );
lHl->setBuddy( typeCombo );
- connect( typeCombo, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(typeChanged(int)) );
+ connect( typeCombo, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(typeChanged(int)) );
TQPushButton *btnnew = new TQPushButton( i18n("&New"), hbHl );
- connect( btnnew, TQT_SIGNAL(clicked()), this, TQT_SLOT(newType()) );
+ connect( btnnew, TQ_SIGNAL(clicked()), this, TQ_SLOT(newType()) );
btndel = new TQPushButton( i18n("&Delete"), hbHl );
- connect( btndel, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteType()) );
+ connect( btndel, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteType()) );
- gbProps = new TQGroupBox( 2, Qt::Horizontal, i18n("Properties"), this );
+ gbProps = new TQGroupBox( 2, TQt::Horizontal, i18n("Properties"), this );
layout->add (gbProps);
// file & mime types
@@ -312,7 +312,7 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent )
TQToolButton *btnMTW = new TQToolButton(hbMT);
btnMTW->setIconSet(TQIconSet(SmallIcon("wizard")));
- connect(btnMTW, TQT_SIGNAL(clicked()), this, TQT_SLOT(showMTDlg()));
+ connect(btnMTW, TQ_SIGNAL(clicked()), this, TQ_SLOT(showMTDlg()));
TQLabel *lprio = new TQLabel( i18n("Prio&rity:"), gbProps);
priority = new KIntNumInput( gbProps );
@@ -322,12 +322,12 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent )
reload();
- connect( name, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( section, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( varLine, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( wildcards, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( mimetypes, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotChanged() ) );
- connect( priority, TQT_SIGNAL( valueChanged ( int ) ), this, TQT_SLOT( slotChanged() ) );
+ connect( name, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( section, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( varLine, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( wildcards, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( mimetypes, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotChanged() ) );
+ connect( priority, TQ_SIGNAL( valueChanged ( int ) ), this, TQ_SLOT( slotChanged() ) );
TQWhatsThis::add( btnnew, i18n("Create a new file type.") );
TQWhatsThis::add( btndel, i18n("Delete the current file type.") );
@@ -519,9 +519,9 @@ void KateViewFileTypeAction::init()
m_doc = 0;
subMenus.setAutoDelete( true );
- popupMenu()->insertItem ( i18n("None"), this, TQT_SLOT(setType(int)), 0, 0);
+ popupMenu()->insertItem ( i18n("None"), this, TQ_SLOT(setType(int)), 0, 0);
- connect(popupMenu(),TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(slotAboutToShow()));
+ connect(popupMenu(),TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(slotAboutToShow()));
}
void KateViewFileTypeAction::updateMenu (Kate::Document *doc)
@@ -551,12 +551,12 @@ void KateViewFileTypeAction::slotAboutToShow()
int m = subMenusName.findIndex (hlSection);
names << hlName;
- subMenus.at(m)->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1);
+ subMenus.at(m)->insertItem ( hlName, this, TQ_SLOT(setType(int)), 0, z+1);
}
else if (names.contains(hlName) < 1)
{
names << hlName;
- popupMenu()->insertItem ( hlName, this, TQT_SLOT(setType(int)), 0, z+1);
+ popupMenu()->insertItem ( hlName, this, TQ_SLOT(setType(int)), 0, z+1);
}
}
diff --git a/kate/part/katefiletype.h b/kate/part/katefiletype.h
index 7a927636b..c85682249 100644
--- a/kate/part/katefiletype.h
+++ b/kate/part/katefiletype.h
@@ -78,7 +78,7 @@ class KateFileTypeManager
class KateFileTypeConfigTab : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateFileTypeConfigTab( TQWidget *parent );
@@ -114,7 +114,7 @@ class KateFileTypeConfigTab : public KateConfigPage
class KateViewFileTypeAction : public Kate::ActionMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateViewFileTypeAction(const TQString& text, TQObject* parent = 0, const char* name = 0)
diff --git a/kate/part/katehighlight.cpp b/kate/part/katehighlight.cpp
index 66991ca8f..1f432468d 100644
--- a/kate/part/katehighlight.cpp
+++ b/kate/part/katehighlight.cpp
@@ -1289,7 +1289,7 @@ void KateHighlighting::generateContextStack(int *ctxNum, int ctx, TQMemArray<sho
*/
int KateHighlighting::makeDynamicContext(KateHlContext *model, const TQStringList *args)
{
- QPair<KateHlContext *, TQString> key(model, args->front());
+ TQPair<KateHlContext *, TQString> key(model, args->front());
short value;
if (dynamicCtxs.contains(key))
@@ -1694,7 +1694,7 @@ void KateHighlighting::getKateHlItemDataList (uint schema, KateHlItemDataList &l
TQString tmp=s[0]; if (!tmp.isEmpty()) p->defStyleNum=tmp.toInt();
- QRgb col;
+ TQRgb col;
tmp=s[1]; if (!tmp.isEmpty()) {
col=tmp.toUInt(0,16); p->setTextColor(col); }
@@ -3193,79 +3193,79 @@ void KateHlManager::getDefaults(uint schema, KateAttributeList &list)
list.setAutoDelete(true);
KateAttribute* normal = new KateAttribute();
- normal->setTextColor(Qt::black);
- normal->setSelectedTextColor(Qt::white);
+ normal->setTextColor(TQt::black);
+ normal->setSelectedTextColor(TQt::white);
list.append(normal);
KateAttribute* keyword = new KateAttribute();
- keyword->setTextColor(Qt::black);
- keyword->setSelectedTextColor(Qt::white);
+ keyword->setTextColor(TQt::black);
+ keyword->setSelectedTextColor(TQt::white);
keyword->setBold(true);
list.append(keyword);
KateAttribute* dataType = new KateAttribute();
- dataType->setTextColor(Qt::darkRed);
- dataType->setSelectedTextColor(Qt::white);
+ dataType->setTextColor(TQt::darkRed);
+ dataType->setSelectedTextColor(TQt::white);
list.append(dataType);
KateAttribute* decimal = new KateAttribute();
- decimal->setTextColor(Qt::blue);
- decimal->setSelectedTextColor(Qt::cyan);
+ decimal->setTextColor(TQt::blue);
+ decimal->setSelectedTextColor(TQt::cyan);
list.append(decimal);
KateAttribute* basen = new KateAttribute();
- basen->setTextColor(Qt::darkCyan);
- basen->setSelectedTextColor(Qt::cyan);
+ basen->setTextColor(TQt::darkCyan);
+ basen->setSelectedTextColor(TQt::cyan);
list.append(basen);
KateAttribute* floatAttribute = new KateAttribute();
- floatAttribute->setTextColor(Qt::darkMagenta);
- floatAttribute->setSelectedTextColor(Qt::cyan);
+ floatAttribute->setTextColor(TQt::darkMagenta);
+ floatAttribute->setSelectedTextColor(TQt::cyan);
list.append(floatAttribute);
KateAttribute* charAttribute = new KateAttribute();
- charAttribute->setTextColor(Qt::magenta);
- charAttribute->setSelectedTextColor(Qt::magenta);
+ charAttribute->setTextColor(TQt::magenta);
+ charAttribute->setSelectedTextColor(TQt::magenta);
list.append(charAttribute);
KateAttribute* string = new KateAttribute();
string->setTextColor(TQColor("#D00"));
- string->setSelectedTextColor(Qt::red);
+ string->setSelectedTextColor(TQt::red);
list.append(string);
KateAttribute* comment = new KateAttribute();
- comment->setTextColor(Qt::darkGray);
- comment->setSelectedTextColor(Qt::gray);
+ comment->setTextColor(TQt::darkGray);
+ comment->setSelectedTextColor(TQt::gray);
comment->setItalic(true);
list.append(comment);
KateAttribute* others = new KateAttribute();
- others->setTextColor(Qt::darkGreen);
- others->setSelectedTextColor(Qt::green);
+ others->setTextColor(TQt::darkGreen);
+ others->setSelectedTextColor(TQt::green);
list.append(others);
KateAttribute* alert = new KateAttribute();
- alert->setTextColor(Qt::black);
+ alert->setTextColor(TQt::black);
alert->setSelectedTextColor( TQColor("#FCC") );
alert->setBold(true);
alert->setBGColor( TQColor("#FCC") );
list.append(alert);
KateAttribute* functionAttribute = new KateAttribute();
- functionAttribute->setTextColor(Qt::darkBlue);
- functionAttribute->setSelectedTextColor(Qt::white);
+ functionAttribute->setTextColor(TQt::darkBlue);
+ functionAttribute->setSelectedTextColor(TQt::white);
list.append(functionAttribute);
KateAttribute* regionmarker = new KateAttribute();
- regionmarker->setTextColor(Qt::white);
- regionmarker->setBGColor(Qt::gray);
- regionmarker->setSelectedTextColor(Qt::gray);
+ regionmarker->setTextColor(TQt::white);
+ regionmarker->setBGColor(TQt::gray);
+ regionmarker->setSelectedTextColor(TQt::gray);
list.append(regionmarker);
KateAttribute* error = new KateAttribute();
- error->setTextColor(Qt::red);
+ error->setTextColor(TQt::red);
error->setUnderline(true);
- error->setSelectedTextColor(Qt::red);
+ error->setSelectedTextColor(TQt::red);
list.append(error);
TDEConfig *config = KateHlManager::self()->self()->getTDEConfig();
@@ -3281,7 +3281,7 @@ void KateHlManager::getDefaults(uint schema, KateAttributeList &list)
s << "";
TQString tmp;
- QRgb col;
+ TQRgb col;
tmp=s[0]; if (!tmp.isEmpty()) {
col=tmp.toUInt(0,16); i->setTextColor(col); }
@@ -3405,7 +3405,7 @@ void KateViewHighlightAction::init()
m_doc = 0;
subMenus.setAutoDelete( true );
- connect(popupMenu(),TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(slotAboutToShow()));
+ connect(popupMenu(),TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(slotAboutToShow()));
}
void KateViewHighlightAction::updateMenu (Kate::Document *doc)
@@ -3437,12 +3437,12 @@ void KateViewHighlightAction::slotAboutToShow()
int m = subMenusName.findIndex (hlSection);
names << hlName;
- subMenus.at(m)->insertItem ( '&' + hlName, this, TQT_SLOT(setHl(int)), 0, z);
+ subMenus.at(m)->insertItem ( '&' + hlName, this, TQ_SLOT(setHl(int)), 0, z);
}
else if (names.contains(hlName) < 1)
{
names << hlName;
- popupMenu()->insertItem ( '&' + hlName, this, TQT_SLOT(setHl(int)), 0, z);
+ popupMenu()->insertItem ( '&' + hlName, this, TQ_SLOT(setHl(int)), 0, z);
}
}
}
diff --git a/kate/part/katehighlight.h b/kate/part/katehighlight.h
index 207d9a245..caad80a90 100644
--- a/kate/part/katehighlight.h
+++ b/kate/part/katehighlight.h
@@ -251,7 +251,7 @@ class KateHighlighting
TQValueVector<KateHlContext*> m_contexts;
inline KateHlContext *contextNum (uint n) { if (n < m_contexts.size()) return m_contexts[n]; return 0; }
- TQMap< QPair<KateHlContext *, TQString>, short> dynamicCtxs;
+ TQMap< TQPair<KateHlContext *, TQString>, short> dynamicCtxs;
// make them pointers perhaps
KateEmbeddedHlInfos embeddedHls;
@@ -340,7 +340,7 @@ class KateHighlighting
class KateHlManager : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
private:
KateHlManager();
@@ -408,7 +408,7 @@ class KateHlManager : public TQObject
class KateViewHighlightAction: public Kate::ActionMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateViewHighlightAction(const TQString& text, TQObject* parent = 0, const char* name = 0)
diff --git a/kate/part/kateprinter.cpp b/kate/part/kateprinter.cpp
index a7bf324e8..a4fdd3627 100644
--- a/kate/part/kateprinter.cpp
+++ b/kate/part/kateprinter.cpp
@@ -57,7 +57,7 @@
//BEGIN KatePrinter
bool KatePrinter::print (KateDocument *doc)
{
-#ifndef Q_WS_WIN //TODO: reenable
+#ifndef TQ_WS_WIN //TODO: reenable
KPrinter printer;
// docname is now always there, including the right Untitled name
@@ -192,9 +192,9 @@ bool KatePrinter::print (KateDocument *doc)
tags["d"] = TDEGlobal::locale()->formatDateTime(dt, true, false);
tags["D"] = TDEGlobal::locale()->formatDateTime(dt, false, false);
- tags["h"] = TDEGlobal::locale()->formatTime(TQT_TQTIME_OBJECT(dt.time()), false);
- tags["y"] = TDEGlobal::locale()->formatDate(TQT_TQDATE_OBJECT(dt.date()), true);
- tags["Y"] = TDEGlobal::locale()->formatDate(TQT_TQDATE_OBJECT(dt.date()), false);
+ tags["h"] = TDEGlobal::locale()->formatTime(dt.time(), false);
+ tags["y"] = TDEGlobal::locale()->formatDate(dt.date(), true);
+ tags["Y"] = TDEGlobal::locale()->formatDate(dt.date(), false);
tags["f"] = doc->url().fileName();
tags["U"] = doc->url().prettyURL();
if ( selectionOnly )
@@ -228,9 +228,9 @@ bool KatePrinter::print (KateDocument *doc)
headerTagList = TQStringList::split('|', headerTags, true);
if (!headerBgColor.isValid())
- headerBgColor = Qt::lightGray;
+ headerBgColor = TQt::lightGray;
if (!headerFgColor.isValid())
- headerFgColor = Qt::black;
+ headerFgColor = TQt::black;
}
if (useFooter)
@@ -255,9 +255,9 @@ bool KatePrinter::print (KateDocument *doc)
footerTagList = TQStringList::split('|', footerTags, true);
if (!footerBgColor.isValid())
- footerBgColor = Qt::lightGray;
+ footerBgColor = TQt::lightGray;
if (!footerFgColor.isValid())
- footerFgColor = Qt::black;
+ footerFgColor = TQt::black;
// adjust maxheight, so we can know when/where to print footer
maxHeight -= footerHeight;
}
@@ -275,7 +275,7 @@ bool KatePrinter::print (KateDocument *doc)
if ( useBox )
{
if (!boxColor.isValid())
- boxColor = Qt::black;
+ boxColor = TQt::black;
if (boxWidth < 1) // shouldn't be pssible no more!
boxWidth = 1;
// set maxwidth to something sensible
@@ -307,7 +307,7 @@ bool KatePrinter::print (KateDocument *doc)
// get a title and add the height required to draw it
TQString _title = i18n("Typographical Conventions for %1").arg(doc->highlight()->name());
- guideHeight += paint.boundingRect( 0, 0, _w, 1000, Qt::AlignTop|Qt::AlignHCenter, _title ).height();
+ guideHeight += paint.boundingRect( 0, 0, _w, 1000, TQt::AlignTop|TQt::AlignHCenter, _title ).height();
// see how many columns we can fit in
int _widest( 0 );
@@ -417,8 +417,8 @@ bool KatePrinter::print (KateDocument *doc)
if (headerTagList.count() == 3)
{
int valign = ( (useBox||headerDrawBg||useBackground) ?
- Qt::AlignVCenter : Qt::AlignTop );
- int align = valign|Qt::AlignLeft;
+ TQt::AlignVCenter : TQt::AlignTop );
+ int align = valign|TQt::AlignLeft;
int marg = ( useBox || headerDrawBg ) ? innerMargin : 0;
if ( useBox ) marg += boxWidth;
TQString s;
@@ -427,7 +427,7 @@ bool KatePrinter::print (KateDocument *doc)
s = headerTagList[i];
if (s.find("%p") != -1) s.replace("%p", TQString::number(currentPage));
paint.drawText(marg, 0, headerWidth-(marg*2), headerHeight, align, s);
- align = valign|(i == 0 ? Qt::AlignHCenter : Qt::AlignRight);
+ align = valign|(i == 0 ? TQt::AlignHCenter : TQt::AlignRight);
}
}
if ( ! ( headerDrawBg || useBox || useBackground ) ) // draw a 1 px (!?) line to separate header from contents
@@ -446,7 +446,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.fillRect(0, maxHeight+innerMargin+boxWidth, headerWidth, footerHeight, footerBgColor);
if (footerTagList.count() == 3)
{
- int align = Qt::AlignVCenter|Qt::AlignLeft;
+ int align = TQt::AlignVCenter|TQt::AlignLeft;
int marg = ( useBox || footerDrawBg ) ? innerMargin : 0;
if ( useBox ) marg += boxWidth;
TQString s;
@@ -455,7 +455,7 @@ bool KatePrinter::print (KateDocument *doc)
s = footerTagList[i];
if (s.find("%p") != -1) s.replace("%p", TQString::number(currentPage));
paint.drawText(marg, maxHeight+innerMargin, headerWidth-(marg*2), footerHeight, align, s);
- align = Qt::AlignVCenter|(i == 0 ? Qt::AlignHCenter : Qt::AlignRight);
+ align = TQt::AlignVCenter|(i == 0 ? TQt::AlignHCenter : TQt::AlignRight);
}
}
} // done footer
@@ -524,7 +524,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.setFont( renderer.config()->fontStruct()->myFontBold );
TQRect _r;
paint.drawText( _marg, y, pdmWidth-(2*_marg), maxHeight - y,
- Qt::AlignTop|Qt::AlignHCenter,
+ TQt::AlignTop|TQt::AlignHCenter,
i18n("Typographical Conventions for %1").arg(doc->highlight()->name()), -1, &_r );
int _w = pdmWidth - (_marg*2) - (innerMargin*2);
int _x = _marg + innerMargin;
@@ -543,7 +543,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.setPen( renderer.attribute(_i)->textColor() );
paint.setFont( renderer.attribute(_i)->font( *renderer.currentFont() ) );
paint.drawText(( _x + ((_i%guideCols)*_cw)), y, _cw, renderer.fontHeight(),
- Qt::AlignVCenter|Qt::AlignLeft, _d->name, -1, &_r );
+ TQt::AlignVCenter|TQt::AlignLeft, _d->name, -1, &_r );
_i++;
if ( _i && ! ( _i%guideCols ) ) y += renderer.fontHeight();
++_it;
@@ -561,7 +561,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.setPen( renderer.config()->lineNumberColor() );
paint.drawText( (( useBox || useBackground ) ? innerMargin : 0), y,
lineNumberWidth, renderer.fontHeight(),
- Qt::AlignRight, TQString("%1").arg( lineCount + 1 ) );
+ TQt::AlignRight, TQString("%1").arg( lineCount + 1 ) );
}
endCol = renderer.textWidth(doc->kateTextLine(lineCount), startCol, maxWidth, &needWrap);
@@ -626,12 +626,12 @@ bool KatePrinter::print (KateDocument *doc)
return true;
}
-#endif //!Q_WS_WIN
+#endif //!TQ_WS_WIN
return false;
}
//END KatePrinter
-#ifndef Q_WS_WIN //TODO: reenable
+#ifndef TQ_WS_WIN //TODO: reenable
//BEGIN KatePrintTextSettings
KatePrintTextSettings::KatePrintTextSettings( KPrinter * /*printer*/, TQWidget *parent, const char *name )
: KPrintDialogPage( parent, name )
@@ -719,9 +719,9 @@ KatePrintHeaderFooter::KatePrintHeaderFooter( KPrinter * /*printer*/, TQWidget *
lo2->setStretchFactor( lFontPreview, 1 );
TQPushButton *btnChooseFont = new TQPushButton( i18n("Choo&se Font..."), this );
lo2->addWidget( btnChooseFont );
- connect( btnChooseFont, TQT_SIGNAL(clicked()), this, TQT_SLOT(setHFFont()) );
+ connect( btnChooseFont, TQ_SIGNAL(clicked()), this, TQ_SLOT(setHFFont()) );
// header
- gbHeader = new TQGroupBox( 2, Qt::Horizontal, i18n("Header Properties"), this );
+ gbHeader = new TQGroupBox( 2, TQt::Horizontal, i18n("Header Properties"), this );
lo->addWidget( gbHeader );
TQLabel *lHeaderFormat = new TQLabel( i18n("&Format:"), gbHeader );
@@ -740,7 +740,7 @@ KatePrintHeaderFooter::KatePrintHeaderFooter( KPrinter * /*printer*/, TQWidget *
cbHeaderEnableBgColor = new TQCheckBox( i18n("Bac&kground"), hbHeaderColors );
kcbtnHeaderBg = new KColorButton( hbHeaderColors );
- gbFooter = new TQGroupBox( 2, Qt::Horizontal, i18n("Footer Properties"), this );
+ gbFooter = new TQGroupBox( 2, TQt::Horizontal, i18n("Footer Properties"), this );
lo->addWidget( gbFooter );
// footer
@@ -764,10 +764,10 @@ KatePrintHeaderFooter::KatePrintHeaderFooter( KPrinter * /*printer*/, TQWidget *
lo->addStretch( 1 );
// user friendly
- connect( cbEnableHeader, TQT_SIGNAL(toggled(bool)), gbHeader, TQT_SLOT(setEnabled(bool)) );
- connect( cbEnableFooter, TQT_SIGNAL(toggled(bool)), gbFooter, TQT_SLOT(setEnabled(bool)) );
- connect( cbHeaderEnableBgColor, TQT_SIGNAL(toggled(bool)), kcbtnHeaderBg, TQT_SLOT(setEnabled(bool)) );
- connect( cbFooterEnableBgColor, TQT_SIGNAL(toggled(bool)), kcbtnFooterBg, TQT_SLOT(setEnabled(bool)) );
+ connect( cbEnableHeader, TQ_SIGNAL(toggled(bool)), gbHeader, TQ_SLOT(setEnabled(bool)) );
+ connect( cbEnableFooter, TQ_SIGNAL(toggled(bool)), gbFooter, TQ_SLOT(setEnabled(bool)) );
+ connect( cbHeaderEnableBgColor, TQ_SIGNAL(toggled(bool)), kcbtnHeaderBg, TQ_SLOT(setEnabled(bool)) );
+ connect( cbFooterEnableBgColor, TQ_SIGNAL(toggled(bool)), kcbtnFooterBg, TQ_SLOT(setEnabled(bool)) );
// set defaults
cbEnableHeader->setChecked( true );
@@ -922,7 +922,7 @@ KatePrintLayout::KatePrintLayout( KPrinter * /*printer*/, TQWidget *parent, cons
cbEnableBox = new TQCheckBox( i18n("Draw &boxes"), this );
lo->addWidget( cbEnableBox );
- gbBoxProps = new TQGroupBox( 2, Qt::Horizontal, i18n("Box Properties"), this );
+ gbBoxProps = new TQGroupBox( 2, TQt::Horizontal, i18n("Box Properties"), this );
lo->addWidget( gbBoxProps );
TQLabel *lBoxWidth = new TQLabel( i18n("W&idth:"), gbBoxProps );
@@ -937,7 +937,7 @@ KatePrintLayout::KatePrintLayout( KPrinter * /*printer*/, TQWidget *parent, cons
kcbtnBoxColor = new KColorButton( gbBoxProps );
lBoxColor->setBuddy( kcbtnBoxColor );
- connect( cbEnableBox, TQT_SIGNAL(toggled(bool)), gbBoxProps, TQT_SLOT(setEnabled(bool)) );
+ connect( cbEnableBox, TQ_SIGNAL(toggled(bool)), gbBoxProps, TQ_SLOT(setEnabled(bool)) );
lo->addStretch( 1 );
// set defaults:
@@ -1000,4 +1000,4 @@ void KatePrintLayout::setOptions( const TQMap<TQString,TQString>& opts )
//END KatePrintLayout
#include "kateprinter.moc"
-#endif //!Q_WS_WIN
+#endif //!TQ_WS_WIN
diff --git a/kate/part/kateprinter.h b/kate/part/kateprinter.h
index 283c2b58e..ef0040eac 100644
--- a/kate/part/kateprinter.h
+++ b/kate/part/kateprinter.h
@@ -40,7 +40,7 @@ class KatePrinter
static bool print (KateDocument *doc);
};
-#ifndef Q_WS_WIN //TODO: reenable
+#ifndef TQ_WS_WIN //TODO: reenable
//BEGIN Text settings
/*
Text settings page:
@@ -50,7 +50,7 @@ class KatePrinter
*/
class KatePrintTextSettings : public KPrintDialogPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KatePrintTextSettings( KPrinter *printer, TQWidget *parent=0, const char *name=0 );
~KatePrintTextSettings(){};
@@ -77,7 +77,7 @@ class KatePrintTextSettings : public KPrintDialogPage
class KatePrintHeaderFooter : public KPrintDialogPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KatePrintHeaderFooter( KPrinter *printer, TQWidget *parent=0, const char *name=0 );
~KatePrintHeaderFooter(){};
@@ -115,7 +115,7 @@ class KatePrintHeaderFooter : public KPrintDialogPage
*/
class KatePrintLayout : public KPrintDialogPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KatePrintLayout( KPrinter *printer, TQWidget *parent=0, const char *name=0 );
~KatePrintLayout(){};
@@ -131,6 +131,6 @@ class KatePrintLayout : public KPrintDialogPage
KColorButton* kcbtnBoxColor;
};
//END Layout
-#endif //!Q_WS_WIN
+#endif //!TQ_WS_WIN
#endif
diff --git a/kate/part/katerenderer.cpp b/kate/part/katerenderer.cpp
index a6c524f73..67afb4bd6 100644
--- a/kate/part/katerenderer.cpp
+++ b/kate/part/katerenderer.cpp
@@ -352,7 +352,7 @@ void KateRenderer::paintTextLine(TQPainter& paint, const KateLineRange* range, i
// Draws the dashed underline at the start of a folded block of text.
if (range->startsInvisibleBlock) {
- paint.setPen(TQPen(config()->wordWrapMarkerColor(), 1, Qt::DashLine));
+ paint.setPen(TQPen(config()->wordWrapMarkerColor(), 1, TQt::DashLine));
paint.drawLine(0, fs->fontHeight - 1, xEnd - xStart, fs->fontHeight - 1);
}
diff --git a/kate/part/kateschema.cpp b/kate/part/kateschema.cpp
index b23563e11..6716d079d 100644
--- a/kate/part/kateschema.cpp
+++ b/kate/part/kateschema.cpp
@@ -310,7 +310,7 @@ KateSchemaConfigColorTab::KateSchemaConfigColorTab( TQWidget *parent, const char
m_combobox->insertItem(i18n("Error")); // markType07
m_combobox->setCurrentItem(0);
m_markers = new KColorButton(b, "marker_color_button");
- connect( m_combobox, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotComboBoxChanged( int ) ) );
+ connect( m_combobox, TQ_SIGNAL( activated( int ) ), TQ_SLOT( slotComboBoxChanged( int ) ) );
blay->addWidget(gbTextArea);
@@ -351,7 +351,7 @@ KateSchemaConfigColorTab::KateSchemaConfigColorTab( TQWidget *parent, const char
blay->addStretch();
// connect signal changed(); changed is emitted by a ColorButton change!
- connect( this, TQT_SIGNAL( changed() ), parent->parentWidget(), TQT_SLOT( slotChanged() ) );
+ connect( this, TQ_SIGNAL( changed() ), parent->parentWidget(), TQ_SLOT( slotChanged() ) );
// TQWhatsThis help
TQWhatsThis::add(m_back, i18n("<p>Sets the background color of the editing area.</p>"));
@@ -405,15 +405,15 @@ void KateSchemaConfigColorTab::schemaChanged ( int newSchema )
m_schema = newSchema;
// first disconnect all signals otherwise setColor emits changed
- m_back ->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_selected ->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_current ->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_bracket ->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_wwmarker ->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_iconborder->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_tmarker ->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_markers ->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
- m_linenumber->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
+ m_back ->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_selected ->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_current ->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_bracket ->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_wwmarker ->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_iconborder->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_tmarker ->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_markers ->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
+ m_linenumber->disconnect( TQ_SIGNAL( changed( const TQColor & ) ) );
// If we havent this schema, read in from config file
if ( ! m_schemas.contains( newSchema ) )
@@ -431,13 +431,13 @@ void KateSchemaConfigColorTab::schemaChanged ( int newSchema )
// same std colors like in KateDocument::markColor
TQValueVector <TQColor> mark(KTextEditor::MarkInterface::reservedMarkersCount());
Q_ASSERT(mark.size() > 6);
- mark[0] = Qt::blue;
- mark[1] = Qt::red;
- mark[2] = Qt::yellow;
- mark[3] = Qt::magenta;
- mark[4] = Qt::gray;
- mark[5] = Qt::green;
- mark[6] = Qt::red;
+ mark[0] = TQt::blue;
+ mark[1] = TQt::red;
+ mark[2] = TQt::yellow;
+ mark[3] = TQt::magenta;
+ mark[4] = TQt::gray;
+ mark[5] = TQt::green;
+ mark[6] = TQt::red;
SchemaColors c;
TDEConfig *config = KateFactory::self()->schemaManager()->schema(newSchema);
@@ -475,15 +475,15 @@ void KateSchemaConfigColorTab::schemaChanged ( int newSchema )
}
m_markers->setColor( m_schemas [ newSchema ].markerColors[ m_combobox->currentItem() ] );
- connect( m_back , TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_selected , TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_current , TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_bracket , TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_wwmarker , TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_iconborder, TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_tmarker , TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_linenumber, TQT_SIGNAL( changed( const TQColor& ) ), TQT_SIGNAL( changed() ) );
- connect( m_markers , TQT_SIGNAL( changed( const TQColor& ) ), TQT_SLOT( slotMarkerColorChanged( const TQColor& ) ) );
+ connect( m_back , TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_selected , TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_current , TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_bracket , TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_wwmarker , TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_iconborder, TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_tmarker , TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_linenumber, TQ_SIGNAL( changed( const TQColor& ) ), TQ_SIGNAL( changed() ) );
+ connect( m_markers , TQ_SIGNAL( changed( const TQColor& ) ), TQ_SLOT( slotMarkerColorChanged( const TQColor& ) ) );
}
void KateSchemaConfigColorTab::apply ()
@@ -527,9 +527,9 @@ void KateSchemaConfigColorTab::slotMarkerColorChanged( const TQColor& color)
void KateSchemaConfigColorTab::slotComboBoxChanged(int index)
{
// temporarily disconnect the changed-signal because setColor emits changed as well
- m_markers->disconnect( TQT_SIGNAL( changed( const TQColor& ) ) );
+ m_markers->disconnect( TQ_SIGNAL( changed( const TQColor& ) ) );
m_markers->setColor( m_schemas[m_schema].markerColors[index] );
- connect( m_markers, TQT_SIGNAL( changed( const TQColor& ) ), TQT_SLOT( slotMarkerColorChanged( const TQColor& ) ) );
+ connect( m_markers, TQ_SIGNAL( changed( const TQColor& ) ), TQ_SLOT( slotMarkerColorChanged( const TQColor& ) ) );
}
//END KateSchemaConfigColorTab
@@ -544,7 +544,7 @@ KateSchemaConfigFontTab::KateSchemaConfigFontTab( TQWidget *parent, const char *
m_fontchooser = new TDEFontChooser ( this, 0L, false, TQStringList(), false );
grid->addWidget( m_fontchooser, 0, 0);
- connect (this, TQT_SIGNAL( changed()), parent->parentWidget(), TQT_SLOT (slotChanged()));
+ connect (this, TQ_SIGNAL( changed()), parent->parentWidget(), TQ_SLOT (slotChanged()));
m_schema = -1;
}
@@ -582,7 +582,7 @@ void KateSchemaConfigFontTab::schemaChanged( int newSchema )
m_fontchooser->disconnect ( this );
m_fontchooser->setFont ( KateFactory::self()->schemaManager()->schema( newSchema )->readFontEntry("Font", &f) );
m_fonts[ newSchema ] = m_fontchooser->font();
- connect (m_fontchooser, TQT_SIGNAL (fontSelected( const TQFont & )), this, TQT_SLOT (slotFontSelected( const TQFont & )));
+ connect (m_fontchooser, TQ_SIGNAL (fontSelected( const TQFont & )), this, TQ_SLOT (slotFontSelected( const TQFont & )));
}
//END FontConfig
@@ -598,7 +598,7 @@ KateSchemaConfigFontColorTab::KateSchemaConfigFontColorTab( TQWidget *parent, co
m_defaultStyles = new KateStyleListView( this, false );
grid->addWidget( m_defaultStyles, 0, 0);
- connect (m_defaultStyles, TQT_SIGNAL (changed()), parent->parentWidget(), TQT_SLOT (slotChanged()));
+ connect (m_defaultStyles, TQ_SIGNAL (changed()), parent->parentWidget(), TQ_SLOT (slotChanged()));
TQWhatsThis::add( m_defaultStyles, i18n(
"This list displays the default styles for the current schema and "
@@ -688,8 +688,8 @@ KateSchemaConfigHighlightTab::KateSchemaConfigHighlightTab( TQWidget *parent, co
TQLabel *lHl = new TQLabel( i18n("H&ighlight:"), hbHl );
hlCombo = new TQComboBox( false, hbHl );
lHl->setBuddy( hlCombo );
- connect( hlCombo, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(hlChanged(int)) );
+ connect( hlCombo, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(hlChanged(int)) );
for( int i = 0; i < KateHlManager::self()->highlights(); i++) {
if (KateHlManager::self()->hlSection(i).length() > 0)
@@ -715,7 +715,7 @@ KateSchemaConfigHighlightTab::KateSchemaConfigHighlightTab( TQWidget *parent, co
"to edit from the popup menu.<p>You can unset the Background and Selected "
"Background colors from the context menu when appropriate.") );
- connect (m_styles, TQT_SIGNAL (changed()), parent->parentWidget(), TQT_SLOT (slotChanged()));
+ connect (m_styles, TQ_SIGNAL (changed()), parent->parentWidget(), TQ_SLOT (slotChanged()));
}
KateSchemaConfigHighlightTab::~KateSchemaConfigHighlightTab()
@@ -833,20 +833,20 @@ KateSchemaConfigPage::KateSchemaConfigPage( TQWidget *parent, KateDocument *doc
TQLabel *lHl = new TQLabel( i18n("&Schema:"), hbHl );
schemaCombo = new TQComboBox( false, hbHl );
lHl->setBuddy( schemaCombo );
- connect( schemaCombo, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(schemaChanged(int)) );
+ connect( schemaCombo, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(schemaChanged(int)) );
TQPushButton *btnnew = new TQPushButton( i18n("&New..."), hbHl );
- connect( btnnew, TQT_SIGNAL(clicked()), this, TQT_SLOT(newSchema()) );
+ connect( btnnew, TQ_SIGNAL(clicked()), this, TQ_SLOT(newSchema()) );
btndel = new TQPushButton( i18n("&Delete"), hbHl );
- connect( btndel, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteSchema()) );
+ connect( btndel, TQ_SIGNAL(clicked()), this, TQ_SLOT(deleteSchema()) );
m_tabWidget = new TQTabWidget ( this );
m_tabWidget->setMargin (KDialog::marginHint());
layout->add (m_tabWidget);
- connect (m_tabWidget, TQT_SIGNAL (currentChanged (TQWidget *)), this, TQT_SLOT (newCurrentPage (TQWidget *)));
+ connect (m_tabWidget, TQ_SIGNAL (currentChanged (TQWidget *)), this, TQ_SLOT (newCurrentPage (TQWidget *)));
m_colorTab = new KateSchemaConfigColorTab (m_tabWidget);
m_tabWidget->addTab (m_colorTab, i18n("Colors"));
@@ -873,8 +873,8 @@ KateSchemaConfigPage::KateSchemaConfigPage( TQWidget *parent, KateDocument *doc
reload();
- connect( defaultSchemaCombo, TQT_SIGNAL(activated(int)),
- this, TQT_SLOT(slotChanged()) );
+ connect( defaultSchemaCombo, TQ_SIGNAL(activated(int)),
+ this, TQ_SLOT(slotChanged()) );
}
KateSchemaConfigPage::~KateSchemaConfigPage ()
@@ -1003,7 +1003,7 @@ void KateViewSchemaAction::init()
m_view = 0;
last = 0;
- connect(popupMenu(),TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(slotAboutToShow()));
+ connect(popupMenu(),TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(slotAboutToShow()));
}
void KateViewSchemaAction::updateMenu (KateView *view)
@@ -1023,7 +1023,7 @@ void KateViewSchemaAction::slotAboutToShow()
if (names.contains(hlName) < 1)
{
names << hlName;
- popupMenu()->insertItem ( hlName, this, TQT_SLOT(setSchema(int)), 0, z+1);
+ popupMenu()->insertItem ( hlName, this, TQ_SLOT(setSchema(int)), 0, z+1);
}
}
@@ -1060,10 +1060,10 @@ KateStyleListView::KateStyleListView( TQWidget *parent, bool showUseDefaults )
addColumn( i18n("Background Selected") );
if ( showUseDefaults )
addColumn( i18n("Use Default Style") );
- connect( this, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int)),
- this, TQT_SLOT(slotMousePressed(int, TQListViewItem*, const TQPoint&, int)) );
- connect( this, TQT_SIGNAL(contextMenuRequested(TQListViewItem*,const TQPoint&, int)),
- this, TQT_SLOT(showPopupMenu(TQListViewItem*, const TQPoint&)) );
+ connect( this, TQ_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int)),
+ this, TQ_SLOT(slotMousePressed(int, TQListViewItem*, const TQPoint&, int)) );
+ connect( this, TQ_SIGNAL(contextMenuRequested(TQListViewItem*,const TQPoint&, int)),
+ this, TQ_SLOT(showPopupMenu(TQListViewItem*, const TQPoint&)) );
// grap the bg color, selected color and default font
normalcol = TDEGlobalSettings::textColor();
bgcol = KateRendererConfig::global()->backgroundColor();
@@ -1093,21 +1093,21 @@ void KateStyleListView::showPopupMenu( KateStyleListItem *i, const TQPoint &glob
if ( showtitle )
m.insertTitle( i->contextName(), KateStyleListItem::ContextName );
- id = m.insertItem( i18n("&Bold"), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Bold );
+ id = m.insertItem( i18n("&Bold"), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Bold );
m.setItemChecked( id, is->bold() );
- id = m.insertItem( i18n("&Italic"), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Italic );
+ id = m.insertItem( i18n("&Italic"), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Italic );
m.setItemChecked( id, is->italic() );
- id = m.insertItem( i18n("&Underline"), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Underline );
+ id = m.insertItem( i18n("&Underline"), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Underline );
m.setItemChecked( id, is->underline() );
- id = m.insertItem( i18n("S&trikeout"), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Strikeout );
+ id = m.insertItem( i18n("S&trikeout"), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Strikeout );
m.setItemChecked( id, is->strikeOut() );
m.insertSeparator();
- m.insertItem( TQIconSet(cl), i18n("Normal &Color..."), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Color );
- m.insertItem( TQIconSet(scl), i18n("&Selected Color..."), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::SelColor );
- m.insertItem( TQIconSet(bgcl), i18n("&Background Color..."), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::BgColor );
- m.insertItem( TQIconSet(sbgcl), i18n("S&elected Background Color..."), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::SelBgColor );
+ m.insertItem( TQIconSet(cl), i18n("Normal &Color..."), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::Color );
+ m.insertItem( TQIconSet(scl), i18n("&Selected Color..."), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::SelColor );
+ m.insertItem( TQIconSet(bgcl), i18n("&Background Color..."), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::BgColor );
+ m.insertItem( TQIconSet(sbgcl), i18n("S&elected Background Color..."), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::SelBgColor );
// Unset [some] colors. I could show one only if that button was clicked, but that
// would disable setting this with the keyboard (how many aren't doing just
@@ -1118,14 +1118,14 @@ void KateStyleListView::showPopupMenu( KateStyleListItem *i, const TQPoint &glob
{
m.insertSeparator();
if ( style->itemSet( KateAttribute::BGColor) )
- m.insertItem( i18n("Unset Background Color"), this, TQT_SLOT(unsetColor(int)), 0, 100 );
+ m.insertItem( i18n("Unset Background Color"), this, TQ_SLOT(unsetColor(int)), 0, 100 );
if ( style->itemSet( KateAttribute::SelectedBGColor ) )
- m.insertItem( i18n("Unset Selected Background Color"), this, TQT_SLOT(unsetColor(int)), 0, 101 );
+ m.insertItem( i18n("Unset Selected Background Color"), this, TQ_SLOT(unsetColor(int)), 0, 101 );
}
if ( ! i->isDefault() && ! i->defStyle() ) {
m.insertSeparator();
- id = m.insertItem( i18n("Use &Default Style"), this, TQT_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::UseDefStyle );
+ id = m.insertItem( i18n("Use &Default Style"), this, TQ_SLOT(mSlotPopupHandler(int)), 0, KateStyleListItem::UseDefStyle );
m.setItemChecked( id, i->defStyle() );
}
m.exec( globalPos );
@@ -1153,7 +1153,7 @@ void KateStyleListView::unsetColor( int c )
void KateStyleListView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& pos, int c)
{
if ( dynamic_cast<KateStyleListItem*>(i) ) {
- if ( btn == Qt::LeftButton && c > 0 ) {
+ if ( btn == TQt::LeftButton && c > 0 ) {
// map pos to item/column and call KateStyleListItem::activate(col, pos)
((KateStyleListItem*)i)->activate( c, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(i).top() ) );
}
diff --git a/kate/part/kateschema.h b/kate/part/kateschema.h
index cf503be68..63cc210b5 100644
--- a/kate/part/kateschema.h
+++ b/kate/part/kateschema.h
@@ -92,7 +92,7 @@ class KateSchemaManager
class KateViewSchemaAction : public TDEActionMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateViewSchemaAction(const TQString& text, TQObject* parent = 0, const char* name = 0)
@@ -127,7 +127,7 @@ class KateViewSchemaAction : public TDEActionMenu
*/
class KateStyleListView : public TQListView
{
- Q_OBJECT
+ TQ_OBJECT
friend class KateStyleListItem;
@@ -162,7 +162,7 @@ class KateStyleListView : public TQListView
class KateSchemaConfigColorTab : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSchemaConfigColorTab( TQWidget *parent = 0, const char *name = 0 );
@@ -198,7 +198,7 @@ class KateSchemaConfigColorTab : public TQWidget
void schemaChanged( int newSchema );
signals:
- void changed(); // connected to parentWidget()->parentWidget() TQT_SLOT(slotChanged)
+ void changed(); // connected to parentWidget()->parentWidget() TQ_SLOT(slotChanged)
protected slots:
void slotMarkerColorChanged(const TQColor&);
@@ -209,7 +209,7 @@ typedef TQMap<int,TQFont> FontMap; // ### remove it
class KateSchemaConfigFontTab : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSchemaConfigFontTab( TQWidget *parent = 0, const char *name = 0 );
@@ -223,7 +223,7 @@ class KateSchemaConfigFontTab : public TQWidget
void schemaChanged( int newSchema );
signals:
- void changed(); // connected to parentWidget()->parentWidget() TQT_SLOT(slotChanged)
+ void changed(); // connected to parentWidget()->parentWidget() TQ_SLOT(slotChanged)
private:
class TDEFontChooser *m_fontchooser;
@@ -236,7 +236,7 @@ class KateSchemaConfigFontTab : public TQWidget
class KateSchemaConfigFontColorTab : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSchemaConfigFontColorTab( TQWidget *parent = 0, const char *name = 0 );
@@ -256,7 +256,7 @@ class KateSchemaConfigFontColorTab : public TQWidget
class KateSchemaConfigHighlightTab : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSchemaConfigHighlightTab( TQWidget *parent = 0, const char *name = 0, KateSchemaConfigFontColorTab *page = 0, uint hl = 0 );
@@ -284,7 +284,7 @@ class KateSchemaConfigHighlightTab : public TQWidget
class KateSchemaConfigPage : public KateConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSchemaConfigPage ( TQWidget *parent, class KateDocument *doc=0 );
diff --git a/kate/part/katesearch.cpp b/kate/part/katesearch.cpp
index a02bbef71..b76af856b 100644
--- a/kate/part/katesearch.cpp
+++ b/kate/part/katesearch.cpp
@@ -58,7 +58,7 @@ KateSearch::KateSearch( KateView* view )
m_arbitraryHLList = new KateSuperRangeList();
if (arbitraryHLExample) m_doc->arbitraryHL()->addHighlightToView(m_arbitraryHLList, m_view);
- connect(replacePrompt,TQT_SIGNAL(clicked()),this,TQT_SLOT(replaceSlot()));
+ connect(replacePrompt,TQ_SIGNAL(clicked()),this,TQ_SLOT(replaceSlot()));
}
KateSearch::~KateSearch()
@@ -68,13 +68,13 @@ KateSearch::~KateSearch()
void KateSearch::createActions( TDEActionCollection* ac )
{
- KStdAction::find( this, TQT_SLOT(find()), ac )->setWhatsThis(
+ KStdAction::find( this, TQ_SLOT(find()), ac )->setWhatsThis(
i18n("Look up the first occurrence of a piece of text or regular expression."));
- KStdAction::findNext( this, TQT_SLOT(slotFindNext()), ac )->setWhatsThis(
+ KStdAction::findNext( this, TQ_SLOT(slotFindNext()), ac )->setWhatsThis(
i18n("Look up the next occurrence of the search phrase."));
- KStdAction::findPrev( this, TQT_SLOT(slotFindPrev()), ac, "edit_find_prev" )->setWhatsThis(
+ KStdAction::findPrev( this, TQ_SLOT(slotFindPrev()), ac, "edit_find_prev" )->setWhatsThis(
i18n("Look up the previous occurrence of the search phrase."));
- KStdAction::replace( this, TQT_SLOT(replace()), ac )->setWhatsThis(
+ KStdAction::replace( this, TQ_SLOT(replace()), ac )->setWhatsThis(
i18n("Look up a piece of text or regular expression and replace the result with some given text."));
}
@@ -729,10 +729,10 @@ bool KateSearch::doSearch( const TQString& text )
if (arbitraryHLExample) {
KateArbitraryHighlightRange* hl = new KateArbitraryHighlightRange(new KateSuperCursor(m_doc, true, s.cursor), new KateSuperCursor(m_doc, true, s.cursor.line(), s.cursor.col() + s.matchedLength), this);
hl->setBold();
- hl->setTextColor(Qt::white);
- hl->setBGColor(Qt::black);
+ hl->setTextColor(TQt::white);
+ hl->setBGColor(TQt::black);
// destroy the highlight upon change
- connect(hl, TQT_SIGNAL(contentsChanged()), hl, TQT_SIGNAL(eliminated()));
+ connect(hl, TQ_SIGNAL(contentsChanged()), hl, TQ_SIGNAL(eliminated()));
m_arbitraryHLList->append(hl);
}
diff --git a/kate/part/katesearch.h b/kate/part/katesearch.h
index 139cd3ff9..7ff798325 100644
--- a/kate/part/katesearch.h
+++ b/kate/part/katesearch.h
@@ -41,7 +41,7 @@ class TDEActionCollection;
class KateSearch : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
friend class KateDocument;
@@ -167,7 +167,7 @@ class KateSearch : public TQObject
*/
class KateReplacePrompt : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/kate/part/katespell.cpp b/kate/part/katespell.cpp
index 84b4337d9..e19f4fb94 100644
--- a/kate/part/katespell.cpp
+++ b/kate/part/katespell.cpp
@@ -53,11 +53,11 @@ KateSpell::~KateSpell()
void KateSpell::createActions( TDEActionCollection* ac )
{
- KStdAction::spelling( this, TQT_SLOT(spellcheck()), ac );
- TDEAction *a = new TDEAction( i18n("Spelling (from cursor)..."), "tools-check-spelling", 0, this, TQT_SLOT(spellcheckFromCursor()), ac, "tools_spelling_from_cursor" );
+ KStdAction::spelling( this, TQ_SLOT(spellcheck()), ac );
+ TDEAction *a = new TDEAction( i18n("Spelling (from cursor)..."), "tools-check-spelling", 0, this, TQ_SLOT(spellcheckFromCursor()), ac, "tools_spelling_from_cursor" );
a->setWhatsThis(i18n("Check the document's spelling from the cursor and forward"));
- m_spellcheckSelection = new TDEAction( i18n("Spellcheck Selection..."), "tools-check-spelling", 0, this, TQT_SLOT(spellcheckSelection()), ac, "tools_spelling_selection" );
+ m_spellcheckSelection = new TDEAction( i18n("Spellcheck Selection..."), "tools-check-spelling", 0, this, TQ_SLOT(spellcheckSelection()), ac, "tools_spelling_selection" );
m_spellcheckSelection->setWhatsThis(i18n("Check spelling of the selected text"));
}
@@ -123,17 +123,17 @@ void KateSpell::spellcheck( const KateTextCursor &from, const KateTextCursor &to
kdDebug(13020)<<"KateSpell::spellCheck(): using encoding: "<<enc<<" and KSpell::Type "<<type<<" (for '"<<mt<<"')"<<endl;
m_tdespell = new KSpell( m_view, i18n("Spellcheck"),
- this, TQT_SLOT(ready(KSpell *)), ksc, true, true, type );
+ this, TQ_SLOT(ready(KSpell *)), ksc, true, true, type );
- connect( m_tdespell, TQT_SIGNAL(death()),
- this, TQT_SLOT(spellCleanDone()) );
+ connect( m_tdespell, TQ_SIGNAL(death()),
+ this, TQ_SLOT(spellCleanDone()) );
- connect( m_tdespell, TQT_SIGNAL(misspelling(const TQString&, const TQStringList&, unsigned int)),
- this, TQT_SLOT(misspelling(const TQString&, const TQStringList&, unsigned int)) );
- connect( m_tdespell, TQT_SIGNAL(corrected(const TQString&, const TQString&, unsigned int)),
- this, TQT_SLOT(corrected(const TQString&, const TQString&, unsigned int)) );
- connect( m_tdespell, TQT_SIGNAL(done(const TQString&)),
- this, TQT_SLOT(spellResult(const TQString&)) );
+ connect( m_tdespell, TQ_SIGNAL(misspelling(const TQString&, const TQStringList&, unsigned int)),
+ this, TQ_SLOT(misspelling(const TQString&, const TQStringList&, unsigned int)) );
+ connect( m_tdespell, TQ_SIGNAL(corrected(const TQString&, const TQString&, unsigned int)),
+ this, TQ_SLOT(corrected(const TQString&, const TQString&, unsigned int)) );
+ connect( m_tdespell, TQ_SIGNAL(done(const TQString&)),
+ this, TQ_SLOT(spellResult(const TQString&)) );
}
void KateSpell::ready(KSpell *)
diff --git a/kate/part/katespell.h b/kate/part/katespell.h
index 6119d0ea4..6a5e3ad52 100644
--- a/kate/part/katespell.h
+++ b/kate/part/katespell.h
@@ -32,7 +32,7 @@ class KSpell;
class KateSpell : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateSpell( KateView* );
diff --git a/kate/part/katesupercursor.cpp b/kate/part/katesupercursor.cpp
index 287786e3d..4b5d02864 100644
--- a/kate/part/katesupercursor.cpp
+++ b/kate/part/katesupercursor.cpp
@@ -328,15 +328,15 @@ void KateSuperRange::init()
setBehaviour(DoNotExpand);
// Not necessarily the best implementation
- connect(m_start, TQT_SIGNAL(positionDirectlyChanged()), TQT_SIGNAL(contentsChanged()));
- connect(m_end, TQT_SIGNAL(positionDirectlyChanged()), TQT_SIGNAL(contentsChanged()));
+ connect(m_start, TQ_SIGNAL(positionDirectlyChanged()), TQ_SIGNAL(contentsChanged()));
+ connect(m_end, TQ_SIGNAL(positionDirectlyChanged()), TQ_SIGNAL(contentsChanged()));
- connect(m_start, TQT_SIGNAL(positionChanged()), TQT_SLOT(slotEvaluateChanged()));
- connect(m_end, TQT_SIGNAL(positionChanged()), TQT_SLOT(slotEvaluateChanged()));
- connect(m_start, TQT_SIGNAL(positionUnChanged()), TQT_SLOT(slotEvaluateUnChanged()));
- connect(m_end, TQT_SIGNAL(positionUnChanged()), TQT_SLOT(slotEvaluateUnChanged()));
- connect(m_start, TQT_SIGNAL(positionDeleted()), TQT_SIGNAL(boundaryDeleted()));
- connect(m_end, TQT_SIGNAL(positionDeleted()), TQT_SIGNAL(boundaryDeleted()));
+ connect(m_start, TQ_SIGNAL(positionChanged()), TQ_SLOT(slotEvaluateChanged()));
+ connect(m_end, TQ_SIGNAL(positionChanged()), TQ_SLOT(slotEvaluateChanged()));
+ connect(m_start, TQ_SIGNAL(positionUnChanged()), TQ_SLOT(slotEvaluateUnChanged()));
+ connect(m_end, TQ_SIGNAL(positionUnChanged()), TQ_SLOT(slotEvaluateUnChanged()));
+ connect(m_start, TQ_SIGNAL(positionDeleted()), TQ_SIGNAL(boundaryDeleted()));
+ connect(m_end, TQ_SIGNAL(positionDeleted()), TQ_SIGNAL(boundaryDeleted()));
}
KateSuperRange::~KateSuperRange()
@@ -446,7 +446,7 @@ bool KateSuperRange::boundaryOn(uint lineNum) const
void KateSuperRange::slotEvaluateChanged()
{
- if (sender() == static_cast<TQObject*>(m_start)) {
+ if (sender() == m_start) {
if (m_evaluate) {
if (!m_endChanged) {
// Only one was changed
@@ -484,7 +484,7 @@ void KateSuperRange::slotEvaluateChanged()
void KateSuperRange::slotEvaluateUnChanged()
{
- if (sender() == static_cast<TQObject*>(m_start)) {
+ if (sender() == m_start) {
if (m_evaluate) {
if (m_endChanged) {
// Only one changed
@@ -581,8 +581,8 @@ void KateSuperRangeList::connectAll()
if (!m_connect) {
m_connect = true;
for (KateSuperRange* range = first(); range; range = next()) {
- connect(range, TQT_SIGNAL(destroyed(TQObject*)), TQT_SLOT(slotDeleted(TQObject*)));
- connect(range, TQT_SIGNAL(eliminated()), TQT_SLOT(slotEliminated()));
+ connect(range, TQ_SIGNAL(destroyed(TQObject*)), TQ_SLOT(slotDeleted(TQObject*)));
+ connect(range, TQ_SIGNAL(eliminated()), TQ_SLOT(slotEliminated()));
}
}
}
@@ -636,7 +636,7 @@ bool KateSuperRangeList::rangesInclude(const KateTextCursor& cursor)
void KateSuperRangeList::slotEliminated()
{
if (sender()) {
- KateSuperRange* range = static_cast<KateSuperRange*>(const_cast<TQObject*>(TQT_TQOBJECT_CONST(sender())));
+ KateSuperRange* range = static_cast<KateSuperRange*>(const_cast<TQObject*>(sender()));
emit rangeEliminated(range);
if (m_trackingBoundaries) {
@@ -727,9 +727,9 @@ int KateSuperRangeList::compareItems(TQPtrCollection::Item item1, TQPtrCollectio
TQPtrCollection::Item KateSuperRangeList::newItem(TQPtrCollection::Item d)
{
if (m_connect) {
- connect(static_cast<KateSuperRange*>(d), TQT_SIGNAL(destroyed(TQObject*)), TQT_SLOT(slotDeleted(TQObject*)));
- connect(static_cast<KateSuperRange*>(d), TQT_SIGNAL(eliminated()), TQT_SLOT(slotEliminated()));
- connect(static_cast<KateSuperRange*>(d), TQT_SIGNAL(tagRange(KateSuperRange*)), TQT_SIGNAL(tagRange(KateSuperRange*)));
+ connect(static_cast<KateSuperRange*>(d), TQ_SIGNAL(destroyed(TQObject*)), TQ_SLOT(slotDeleted(TQObject*)));
+ connect(static_cast<KateSuperRange*>(d), TQ_SIGNAL(eliminated()), TQ_SLOT(slotEliminated()));
+ connect(static_cast<KateSuperRange*>(d), TQ_SIGNAL(tagRange(KateSuperRange*)), TQ_SIGNAL(tagRange(KateSuperRange*)));
// HACK HACK
static_cast<KateSuperRange*>(d)->slotTagRange();
diff --git a/kate/part/katesupercursor.h b/kate/part/katesupercursor.h
index 74baf07df..270227925 100644
--- a/kate/part/katesupercursor.h
+++ b/kate/part/katesupercursor.h
@@ -44,7 +44,7 @@ class KateView;
**/
class KateSuperCursor : public TQObject, public KateDocCursor, public Kate::Cursor
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
@@ -169,7 +169,7 @@ class KateSuperRange : public TQObject, public KateRange
{
friend class KateSuperRangeList;
- Q_OBJECT
+ TQ_OBJECT
public:
/// Determine how the range reacts to characters inserted immediately outside the range.
@@ -338,7 +338,7 @@ protected:
class KateSuperRangeList : public TQObject, public TQPtrList<KateSuperRange>
{
- Q_OBJECT
+ TQ_OBJECT
public:
/**
diff --git a/kate/part/katetemplatehandler.cpp b/kate/part/katetemplatehandler.cpp
index 52e07a2e4..5403d0308 100644
--- a/kate/part/katetemplatehandler.cpp
+++ b/kate/part/katetemplatehandler.cpp
@@ -38,7 +38,7 @@ KateTemplateHandler::KateTemplateHandler(
, m_initOk( false )
, m_recursion( false )
{
- connect( m_doc, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( slotDocumentDestroyed() ) );
+ connect( m_doc, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( slotDocumentDestroyed() ) );
m_ranges = new KateSuperRangeList( false, this ); //false/*,this*/);
if ( !m_doc->setTabInterceptor( this ) )
@@ -116,15 +116,15 @@ KateTemplateHandler::KateTemplateHandler(
m_doc->tagLines( ( *it ) ->start().line(), ( *it ) ->end().line() );
}
- /* connect(doc,TQT_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),this,
- TQT_SLOT(slotCharactersInteractivlyInserted(int,int,const TQString&)));
- connect(doc,TQT_SIGNAL(charactersSemiInteractivelyInserted(int ,int ,const TQString&)),this,
- TQT_SLOT(slotCharactersInteractivlyInserted(int,int,const TQString&)));*/
- connect( doc, TQT_SIGNAL( textInserted( int, int ) ), this, TQT_SLOT( slotTextInserted( int, int ) ) );
- connect( doc, TQT_SIGNAL( aboutToRemoveText( const KateTextRange& ) ), this, TQT_SLOT( slotAboutToRemoveText( const KateTextRange& ) ) );
- connect( doc, TQT_SIGNAL( textRemoved() ), this, TQT_SLOT( slotTextRemoved() ) );
+ /* connect(doc,TQ_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),this,
+ TQ_SLOT(slotCharactersInteractivlyInserted(int,int,const TQString&)));
+ connect(doc,TQ_SIGNAL(charactersSemiInteractivelyInserted(int ,int ,const TQString&)),this,
+ TQ_SLOT(slotCharactersInteractivlyInserted(int,int,const TQString&)));*/
+ connect( doc, TQ_SIGNAL( textInserted( int, int ) ), this, TQ_SLOT( slotTextInserted( int, int ) ) );
+ connect( doc, TQ_SIGNAL( aboutToRemoveText( const KateTextRange& ) ), this, TQ_SLOT( slotAboutToRemoveText( const KateTextRange& ) ) );
+ connect( doc, TQ_SIGNAL( textRemoved() ), this, TQ_SLOT( slotTextRemoved() ) );
- ( *this ) ( Qt::Key_Tab );
+ ( *this ) ( TQt::Key_Tab );
}
KateTemplateHandler::~KateTemplateHandler()
@@ -283,7 +283,7 @@ void KateTemplateHandler::locateRange( const KateTextCursor& cursor )
bool KateTemplateHandler::operator() ( KKey key )
{
- if ( key==Qt::Key_Tab )
+ if ( key==TQt::Key_Tab )
{
m_currentTabStop++;
@@ -324,9 +324,9 @@ void KateTemplateHandler::slotAboutToRemoveText( const KateTextRange &range )
if ( m_doc )
{
- disconnect( m_doc, TQT_SIGNAL( textInserted( int, int ) ), this, TQT_SLOT( slotTextInserted( int, int ) ) );
- disconnect( m_doc, TQT_SIGNAL( aboutToRemoveText( const KateTextRange& ) ), this, TQT_SLOT( slotAboutToRemoveText( const KateTextRange& ) ) );
- disconnect( m_doc, TQT_SIGNAL( textRemoved() ), this, TQT_SLOT( slotTextRemoved() ) );
+ disconnect( m_doc, TQ_SIGNAL( textInserted( int, int ) ), this, TQ_SLOT( slotTextInserted( int, int ) ) );
+ disconnect( m_doc, TQ_SIGNAL( aboutToRemoveText( const KateTextRange& ) ), this, TQ_SLOT( slotAboutToRemoveText( const KateTextRange& ) ) );
+ disconnect( m_doc, TQ_SIGNAL( textRemoved() ), this, TQ_SLOT( slotTextRemoved() ) );
}
deleteLater();
diff --git a/kate/part/katetemplatehandler.h b/kate/part/katetemplatehandler.h
index d7d56e074..f50023f46 100644
--- a/kate/part/katetemplatehandler.h
+++ b/kate/part/katetemplatehandler.h
@@ -29,7 +29,7 @@
class KateDocument;
class KateTemplateHandler: public TQObject, public KateKeyInterceptorFunctor {
- Q_OBJECT
+ TQ_OBJECT
public:
KateTemplateHandler(KateDocument *doc,uint line,uint column, const TQString &templateString, const TQMap<TQString,TQString> &initialValues);
virtual ~KateTemplateHandler();
diff --git a/kate/part/katetextline.h b/kate/part/katetextline.h
index 78c28e644..dec072d9d 100644
--- a/kate/part/katetextline.h
+++ b/kate/part/katetextline.h
@@ -167,7 +167,7 @@ class KateTextLine : public TDEShared
inline uchar *attributes () const { return m_attributes.data(); }
/**
- * Gets a QString
+ * Gets a TQString
* @return text of line as TQString reference
*/
inline const TQString& string() const { return m_text; }
diff --git a/kate/part/kateview.cpp b/kate/part/kateview.cpp
index bee2e4fb3..95e9d1eae 100644
--- a/kate/part/kateview.cpp
+++ b/kate/part/kateview.cpp
@@ -131,7 +131,7 @@ KateView::KateView( KateDocument *doc, TQWidget *parent, const char * name )
doc->addView( this );
setFocusProxy( m_viewInternal );
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
if (!doc->singleViewMode()) {
setXMLFile( "katepartui.rc" );
@@ -159,8 +159,8 @@ KateView::KateView( KateDocument *doc, TQWidget *parent, const char * name )
slotHlChanged();
/*test texthint
- connect(this,TQT_SIGNAL(needTextHint(int, int, TQString &)),
- this,TQT_SLOT(slotNeedTextHint(int, int, TQString &)));
+ connect(this,TQ_SIGNAL(needTextHint(int, int, TQString &)),
+ this,TQ_SLOT(slotNeedTextHint(int, int, TQString &)));
enableTextHints(1000);
test texthint*/
}
@@ -186,22 +186,22 @@ KateView::~KateView()
void KateView::setupConnections()
{
- connect( m_doc, TQT_SIGNAL(undoChanged()),
- TQT_TQOBJECT(this), TQT_SLOT(slotNewUndo()) );
- connect( m_doc, TQT_SIGNAL(hlChanged()),
- TQT_TQOBJECT(this), TQT_SLOT(slotHlChanged()) );
- connect( m_doc, TQT_SIGNAL(canceled(const TQString&)),
- TQT_TQOBJECT(this), TQT_SLOT(slotSaveCanceled(const TQString&)) );
- connect( m_viewInternal, TQT_SIGNAL(dropEventPass(TQDropEvent*)),
- TQT_TQOBJECT(this), TQT_SIGNAL(dropEventPass(TQDropEvent*)) );
- connect(this,TQT_SIGNAL(cursorPositionChanged()),this,TQT_SLOT(slotStatusMsg()));
- connect(this,TQT_SIGNAL(newStatus()),this,TQT_SLOT(slotStatusMsg()));
- connect(m_doc, TQT_SIGNAL(undoChanged()), TQT_TQOBJECT(this), TQT_SLOT(slotStatusMsg()));
+ connect( m_doc, TQ_SIGNAL(undoChanged()),
+ this, TQ_SLOT(slotNewUndo()) );
+ connect( m_doc, TQ_SIGNAL(hlChanged()),
+ this, TQ_SLOT(slotHlChanged()) );
+ connect( m_doc, TQ_SIGNAL(canceled(const TQString&)),
+ this, TQ_SLOT(slotSaveCanceled(const TQString&)) );
+ connect( m_viewInternal, TQ_SIGNAL(dropEventPass(TQDropEvent*)),
+ this, TQ_SIGNAL(dropEventPass(TQDropEvent*)) );
+ connect(this,TQ_SIGNAL(cursorPositionChanged()),this,TQ_SLOT(slotStatusMsg()));
+ connect(this,TQ_SIGNAL(newStatus()),this,TQ_SLOT(slotStatusMsg()));
+ connect(m_doc, TQ_SIGNAL(undoChanged()), this, TQ_SLOT(slotStatusMsg()));
if ( m_doc->browserView() )
{
- connect( this, TQT_SIGNAL(dropEventPass(TQDropEvent*)),
- TQT_TQOBJECT(this), TQT_SLOT(slotDropEventPass(TQDropEvent*)) );
+ connect( this, TQ_SIGNAL(dropEventPass(TQDropEvent*)),
+ this, TQ_SLOT(slotDropEventPass(TQDropEvent*)) );
}
}
@@ -212,84 +212,84 @@ void KateView::setupActions()
m_toggleWriteLock = 0;
- m_cut = a=KStdAction::cut(TQT_TQOBJECT(this), TQT_SLOT(cut()), ac);
+ m_cut = a=KStdAction::cut(this, TQ_SLOT(cut()), ac);
a->setWhatsThis(i18n("Cut the selected text and move it to the clipboard"));
- m_paste = a=KStdAction::pasteText(TQT_TQOBJECT(this), TQT_SLOT(paste()), ac);
+ m_paste = a=KStdAction::pasteText(this, TQ_SLOT(paste()), ac);
a->setWhatsThis(i18n("Paste previously copied or cut clipboard contents"));
- m_copy = a=KStdAction::copy(TQT_TQOBJECT(this), TQT_SLOT(copy()), ac);
+ m_copy = a=KStdAction::copy(this, TQ_SLOT(copy()), ac);
a->setWhatsThis(i18n( "Use this command to copy the currently selected text to the system clipboard."));
- m_copyHTML = a = new TDEAction(i18n("Copy as &HTML"), "edit-copy", 0, TQT_TQOBJECT(this), TQT_SLOT(copyHTML()), ac, "edit_copy_html");
+ m_copyHTML = a = new TDEAction(i18n("Copy as &HTML"), "edit-copy", 0, this, TQ_SLOT(copyHTML()), ac, "edit_copy_html");
a->setWhatsThis(i18n( "Use this command to copy the currently selected text as HTML to the system clipboard."));
if (!m_doc->readOnly())
{
- a=KStdAction::save(TQT_TQOBJECT(this), TQT_SLOT(save()), ac);
+ a=KStdAction::save(this, TQ_SLOT(save()), ac);
a->setWhatsThis(i18n("Save the current document"));
- a=m_editUndo = KStdAction::undo(m_doc, TQT_SLOT(undo()), ac);
+ a=m_editUndo = KStdAction::undo(m_doc, TQ_SLOT(undo()), ac);
a->setWhatsThis(i18n("Revert the most recent editing actions"));
- a=m_editRedo = KStdAction::redo(m_doc, TQT_SLOT(redo()), ac);
+ a=m_editRedo = KStdAction::redo(m_doc, TQ_SLOT(redo()), ac);
a->setWhatsThis(i18n("Revert the most recent undo operation"));
- (new TDEAction(i18n("&Word Wrap Document"), "", 0, TQT_TQOBJECT(this), TQT_SLOT(applyWordWrap()), ac, "tools_apply_wordwrap"))->setWhatsThis(
+ (new TDEAction(i18n("&Word Wrap Document"), "", 0, this, TQ_SLOT(applyWordWrap()), ac, "tools_apply_wordwrap"))->setWhatsThis(
i18n("Use this command to wrap all lines of the current document which are longer than the width of the"
" current view, to fit into this view.<br><br> This is a static word wrap, meaning it is not updated"
" when the view is resized."));
// setup Tools menu
- a=new TDEAction(i18n("&Indent"), "format-indent-more", Qt::CTRL+Qt::Key_I, TQT_TQOBJECT(this), TQT_SLOT(indent()), ac, "tools_indent");
+ a=new TDEAction(i18n("&Indent"), "format-indent-more", TQt::CTRL+TQt::Key_I, this, TQ_SLOT(indent()), ac, "tools_indent");
a->setWhatsThis(i18n("Use this to indent a selected block of text.<br><br>"
"You can configure whether tabs should be honored and used or replaced with spaces, in the configuration dialog."));
- a=new TDEAction(i18n("&Unindent"), "format-indent-less", Qt::CTRL+Qt::SHIFT+Qt::Key_I, TQT_TQOBJECT(this), TQT_SLOT(unIndent()), ac, "tools_unindent");
+ a=new TDEAction(i18n("&Unindent"), "format-indent-less", TQt::CTRL+TQt::SHIFT+TQt::Key_I, this, TQ_SLOT(unIndent()), ac, "tools_unindent");
a->setWhatsThis(i18n("Use this to unindent a selected block of text."));
- a=new TDEAction(i18n("&Clean Indentation"), 0, TQT_TQOBJECT(this), TQT_SLOT(cleanIndent()), ac, "tools_cleanIndent");
+ a=new TDEAction(i18n("&Clean Indentation"), 0, this, TQ_SLOT(cleanIndent()), ac, "tools_cleanIndent");
a->setWhatsThis(i18n("Use this to clean the indentation of a selected block of text (only tabs/only spaces)<br><br>"
"You can configure whether tabs should be honored and used or replaced with spaces, in the configuration dialog."));
- a=new TDEAction(i18n("&Align"), 0, TQT_TQOBJECT(this), TQT_SLOT(align()), ac, "tools_align");
+ a=new TDEAction(i18n("&Align"), 0, this, TQ_SLOT(align()), ac, "tools_align");
a->setWhatsThis(i18n("Use this to align the current line or block of text to its proper indent level."));
- a=new TDEAction(i18n("C&omment"), CTRL+Qt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(comment()),
+ a=new TDEAction(i18n("C&omment"), CTRL+TQt::Key_D, this, TQ_SLOT(comment()),
ac, "tools_comment");
a->setWhatsThis(i18n("This command comments out the current line or a selected block of text.<BR><BR>"
"The characters for single/multiple line comments are defined within the language's highlighting."));
- a=new TDEAction(i18n("Unco&mment"), CTRL+SHIFT+Qt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(uncomment()),
+ a=new TDEAction(i18n("Unco&mment"), CTRL+SHIFT+TQt::Key_D, this, TQ_SLOT(uncomment()),
ac, "tools_uncomment");
a->setWhatsThis(i18n("This command removes comments from the current line or a selected block of text.<BR><BR>"
"The characters for single/multiple line comments are defined within the language's highlighting."));
a = m_toggleWriteLock = new TDEToggleAction(
i18n("&Read Only Mode"), 0, 0,
- TQT_TQOBJECT(this), TQT_SLOT( toggleWriteLock() ),
+ this, TQ_SLOT( toggleWriteLock() ),
ac, "tools_toggle_write_lock" );
a->setWhatsThis( i18n("Lock/unlock the document for writing") );
- a = new TDEAction( i18n("Uppercase"), CTRL + Qt::Key_U, TQT_TQOBJECT(this),
- TQT_SLOT(uppercase()), ac, "tools_uppercase" );
+ a = new TDEAction( i18n("Uppercase"), CTRL + TQt::Key_U, this,
+ TQ_SLOT(uppercase()), ac, "tools_uppercase" );
a->setWhatsThis( i18n("Convert the selection to uppercase, or the character to the "
"right of the cursor if no text is selected.") );
- a = new TDEAction( i18n("Lowercase"), CTRL + SHIFT + Qt::Key_U, TQT_TQOBJECT(this),
- TQT_SLOT(lowercase()), ac, "tools_lowercase" );
+ a = new TDEAction( i18n("Lowercase"), CTRL + SHIFT + TQt::Key_U, this,
+ TQ_SLOT(lowercase()), ac, "tools_lowercase" );
a->setWhatsThis( i18n("Convert the selection to lowercase, or the character to the "
"right of the cursor if no text is selected.") );
- a = new TDEAction( i18n("Capitalize"), CTRL + ALT + Qt::Key_U, TQT_TQOBJECT(this),
- TQT_SLOT(capitalize()), ac, "tools_capitalize" );
+ a = new TDEAction( i18n("Capitalize"), CTRL + ALT + TQt::Key_U, this,
+ TQ_SLOT(capitalize()), ac, "tools_capitalize" );
a->setWhatsThis( i18n("Capitalize the selection, or the word under the "
"cursor if no text is selected.") );
- a = new TDEAction( i18n("Delete Line"), 0, TQT_TQOBJECT(this),
- TQT_SLOT( killLine() ), ac, "tools_delete_line");
+ a = new TDEAction( i18n("Delete Line"), 0, this,
+ TQ_SLOT( killLine() ), ac, "tools_delete_line");
a->setWhatsThis(i18n("Use this to delete the current line."));
- a = new TDEAction( i18n("Join Lines"), CTRL + Qt::Key_J, TQT_TQOBJECT(this),
- TQT_SLOT( joinLines() ), ac, "tools_join_lines" );
+ a = new TDEAction( i18n("Join Lines"), CTRL + TQt::Key_J, this,
+ TQ_SLOT( joinLines() ), ac, "tools_join_lines" );
a->setWhatsThis(i18n("Use this to join lines together."));
}
else
@@ -300,19 +300,19 @@ void KateView::setupActions()
m_editRedo = 0;
}
- a=KStdAction::print( m_doc, TQT_SLOT(print()), ac );
+ a=KStdAction::print( m_doc, TQ_SLOT(print()), ac );
a->setWhatsThis(i18n("Print the current document."));
- a=new TDEAction(i18n("Reloa&d"), "reload", TDEStdAccel::reload(), TQT_TQOBJECT(this), TQT_SLOT(reloadFile()), ac, "file_reload");
+ a=new TDEAction(i18n("Reloa&d"), "reload", TDEStdAccel::reload(), this, TQ_SLOT(reloadFile()), ac, "file_reload");
a->setWhatsThis(i18n("Reload the current document from disk."));
- a=KStdAction::saveAs(TQT_TQOBJECT(this), TQT_SLOT(saveAs()), ac);
+ a=KStdAction::saveAs(this, TQ_SLOT(saveAs()), ac);
a->setWhatsThis(i18n("Save the current document to disk, with a name of your choice."));
- a=KStdAction::gotoLine(TQT_TQOBJECT(this), TQT_SLOT(gotoLine()), ac);
+ a=KStdAction::gotoLine(this, TQ_SLOT(gotoLine()), ac);
a->setWhatsThis(i18n("This command opens a dialog and lets you choose a line that you want the cursor to move to."));
- a=new TDEAction(i18n("&Configure Editor..."), 0, m_doc, TQT_SLOT(configDialog()),ac, "set_confdlg");
+ a=new TDEAction(i18n("&Configure Editor..."), 0, m_doc, TQ_SLOT(configDialog()),ac, "set_confdlg");
a->setWhatsThis(i18n("Configure various aspects of this editor."));
KateViewHighlightAction *menu = new KateViewHighlightAction (i18n("&Highlighting"), ac, "set_highlight");
@@ -329,45 +329,45 @@ void KateView::setupActions()
new KateViewIndentationAction (m_doc, i18n("&Indentation"),ac,"tools_indentation");
// html export
- a = new TDEAction(i18n("E&xport as HTML..."), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(exportAsHTML()), ac, "file_export_html");
+ a = new TDEAction(i18n("E&xport as HTML..."), 0, 0, this, TQ_SLOT(exportAsHTML()), ac, "file_export_html");
a->setWhatsThis(i18n("This command allows you to export the current document"
" with all highlighting information into a HTML document."));
- m_selectAll = a=KStdAction::selectAll(TQT_TQOBJECT(this), TQT_SLOT(selectAll()), ac);
+ m_selectAll = a=KStdAction::selectAll(this, TQ_SLOT(selectAll()), ac);
a->setWhatsThis(i18n("Select the entire text of the current document."));
- m_deSelect = a=KStdAction::deselect(TQT_TQOBJECT(this), TQT_SLOT(clearSelection()), ac);
+ m_deSelect = a=KStdAction::deselect(this, TQ_SLOT(clearSelection()), ac);
a->setWhatsThis(i18n("If you have selected something within the current document, this will no longer be selected."));
- a=new TDEAction(i18n("Enlarge Font"), "zoom-in", 0, TQT_TQOBJECT(m_viewInternal), TQT_SLOT(slotIncFontSizes()), ac, "incFontSizes");
+ a=new TDEAction(i18n("Enlarge Font"), "zoom-in", 0, m_viewInternal, TQ_SLOT(slotIncFontSizes()), ac, "incFontSizes");
a->setWhatsThis(i18n("This increases the display font size."));
- a=new TDEAction(i18n("Shrink Font"), "zoom-out", 0, TQT_TQOBJECT(m_viewInternal), TQT_SLOT(slotDecFontSizes()), ac, "decFontSizes");
+ a=new TDEAction(i18n("Shrink Font"), "zoom-out", 0, m_viewInternal, TQ_SLOT(slotDecFontSizes()), ac, "decFontSizes");
a->setWhatsThis(i18n("This decreases the display font size."));
a= m_toggleBlockSelection = new TDEToggleAction(
i18n("Bl&ock Selection Mode"), CTRL + SHIFT + Key_B,
- TQT_TQOBJECT(this), TQT_SLOT(toggleBlockSelectionMode()),
+ this, TQ_SLOT(toggleBlockSelectionMode()),
ac, "set_verticalSelect");
a->setWhatsThis(i18n("This command allows switching between the normal (line based) selection mode and the block selection mode."));
a= m_toggleInsert = new TDEToggleAction(
i18n("Overwr&ite Mode"), Key_Insert,
- TQT_TQOBJECT(this), TQT_SLOT(toggleInsert()),
+ this, TQ_SLOT(toggleInsert()),
ac, "set_insert" );
a->setWhatsThis(i18n("Choose whether you want the text you type to be inserted or to overwrite existing text."));
TDEToggleAction *toggleAction;
a= m_toggleDynWrap = toggleAction = new TDEToggleAction(
i18n("&Dynamic Word Wrap"), Key_F10,
- TQT_TQOBJECT(this), TQT_SLOT(toggleDynWordWrap()),
+ this, TQ_SLOT(toggleDynWordWrap()),
ac, "view_dynamic_word_wrap" );
a->setWhatsThis(i18n("If this option is checked, the text lines will be wrapped at the view border on the screen."));
a= m_setDynWrapIndicators = new TDESelectAction(i18n("Dynamic Word Wrap Indicators"), 0, ac, "dynamic_word_wrap_indicators");
a->setWhatsThis(i18n("Choose when the Dynamic Word Wrap Indicators should be displayed"));
- connect(m_setDynWrapIndicators, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(setDynWrapIndicators(int)));
+ connect(m_setDynWrapIndicators, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setDynWrapIndicators(int)));
TQStringList list2;
list2.append(i18n("&Off"));
list2.append(i18n("Follow &Line Numbers"));
@@ -376,14 +376,14 @@ void KateView::setupActions()
a= toggleAction=m_toggleFoldingMarkers = new TDEToggleAction(
i18n("Show Folding &Markers"), Key_F9,
- TQT_TQOBJECT(this), TQT_SLOT(toggleFoldingMarkers()),
+ this, TQ_SLOT(toggleFoldingMarkers()),
ac, "view_folding_markers" );
a->setWhatsThis(i18n("You can choose if the codefolding marks should be shown, if codefolding is possible."));
toggleAction->setCheckedState(i18n("Hide Folding &Markers"));
a= m_toggleIconBar = toggleAction = new TDEToggleAction(
i18n("Show &Icon Border"), Key_F6,
- TQT_TQOBJECT(this), TQT_SLOT(toggleIconBorder()),
+ this, TQ_SLOT(toggleIconBorder()),
ac, "view_border");
a=toggleAction;
a->setWhatsThis(i18n("Show/hide the icon border.<BR><BR> The icon border shows bookmark symbols, for instance."));
@@ -391,21 +391,21 @@ void KateView::setupActions()
a= toggleAction=m_toggleLineNumbers = new TDEToggleAction(
i18n("Show &Line Numbers"), Key_F11,
- TQT_TQOBJECT(this), TQT_SLOT(toggleLineNumbersOn()),
+ this, TQ_SLOT(toggleLineNumbersOn()),
ac, "view_line_numbers" );
a->setWhatsThis(i18n("Show/hide the line numbers on the left hand side of the view."));
toggleAction->setCheckedState(i18n("Hide &Line Numbers"));
a= m_toggleScrollBarMarks = toggleAction = new TDEToggleAction(
i18n("Show Scroll&bar Marks"), 0,
- TQT_TQOBJECT(this), TQT_SLOT(toggleScrollBarMarks()),
+ this, TQ_SLOT(toggleScrollBarMarks()),
ac, "view_scrollbar_marks");
a->setWhatsThis(i18n("Show/hide the marks on the vertical scrollbar.<BR><BR>The marks, for instance, show bookmarks."));
toggleAction->setCheckedState(i18n("Hide Scroll&bar Marks"));
a = toggleAction = m_toggleWWMarker = new TDEToggleAction(
i18n("Show Static &Word Wrap Marker"), 0,
- TQT_TQOBJECT(this), TQT_SLOT( toggleWWMarker() ),
+ this, TQ_SLOT( toggleWWMarker() ),
ac, "view_word_wrap_marker" );
a->setWhatsThis( i18n(
"Show/hide the Word Wrap Marker, a vertical line drawn at the word "
@@ -414,7 +414,7 @@ void KateView::setupActions()
a= m_switchCmdLine = new TDEAction(
i18n("Switch to Command Line"), Key_F7,
- TQT_TQOBJECT(this), TQT_SLOT(switchToCmdLine()),
+ this, TQ_SLOT(switchToCmdLine()),
ac, "switch_to_cmd_line" );
a->setWhatsThis(i18n("Show/hide the command line on the bottom of the view."));
@@ -426,10 +426,10 @@ void KateView::setupActions()
list.append("&Macintosh");
m_setEndOfLine->setItems(list);
m_setEndOfLine->setCurrentItem (m_doc->config()->eol());
- connect(m_setEndOfLine, TQT_SIGNAL(activated(int)), TQT_TQOBJECT(this), TQT_SLOT(setEol(int)));
+ connect(m_setEndOfLine, TQ_SIGNAL(activated(int)), this, TQ_SLOT(setEol(int)));
// encoding menu
- new KateViewEncodingAction (m_doc, this, i18n("E&ncoding"), TQT_TQOBJECT(ac), "set_encoding");
+ new KateViewEncodingAction (m_doc, this, i18n("E&ncoding"), ac, "set_encoding");
m_search->createActions( ac );
m_spell->createActions( ac );
@@ -437,144 +437,144 @@ void KateView::setupActions()
slotSelectionChanged ();
- connect (this, TQT_SIGNAL(selectionChanged()), TQT_TQOBJECT(this), TQT_SLOT(slotSelectionChanged()));
+ connect (this, TQ_SIGNAL(selectionChanged()), this, TQ_SLOT(slotSelectionChanged()));
}
void KateView::setupEditActions()
{
- m_editActions = new TDEActionCollection( m_viewInternal, TQT_TQOBJECT(this), "edit_actions" );
+ m_editActions = new TDEActionCollection( m_viewInternal, this, "edit_actions" );
TDEActionCollection* ac = m_editActions;
new TDEAction(
i18n("Move Word Left"), CTRL + Key_Left,
- TQT_TQOBJECT(this),TQT_SLOT(wordLeft()),
+ this,TQ_SLOT(wordLeft()),
ac, "word_left" );
new TDEAction(
i18n("Select Character Left"), SHIFT + Key_Left,
- TQT_TQOBJECT(this),TQT_SLOT(shiftCursorLeft()),
+ this,TQ_SLOT(shiftCursorLeft()),
ac, "select_char_left" );
new TDEAction(
i18n("Select Word Left"), SHIFT + CTRL + Key_Left,
- TQT_TQOBJECT(this), TQT_SLOT(shiftWordLeft()),
+ this, TQ_SLOT(shiftWordLeft()),
ac, "select_word_left" );
new TDEAction(
i18n("Move Word Right"), CTRL + Key_Right,
- TQT_TQOBJECT(this), TQT_SLOT(wordRight()),
+ this, TQ_SLOT(wordRight()),
ac, "word_right" );
new TDEAction(
i18n("Select Character Right"), SHIFT + Key_Right,
- TQT_TQOBJECT(this), TQT_SLOT(shiftCursorRight()),
+ this, TQ_SLOT(shiftCursorRight()),
ac, "select_char_right" );
new TDEAction(
i18n("Select Word Right"), SHIFT + CTRL + Key_Right,
- TQT_TQOBJECT(this),TQT_SLOT(shiftWordRight()),
+ this,TQ_SLOT(shiftWordRight()),
ac, "select_word_right" );
new TDEAction(
i18n("Move to Beginning of Line"), Key_Home,
- TQT_TQOBJECT(this), TQT_SLOT(home()),
+ this, TQ_SLOT(home()),
ac, "beginning_of_line" );
new TDEAction(
i18n("Move to Beginning of Document"), TDEStdAccel::home(),
- TQT_TQOBJECT(this), TQT_SLOT(top()),
+ this, TQ_SLOT(top()),
ac, "beginning_of_document" );
new TDEAction(
i18n("Select to Beginning of Line"), SHIFT + Key_Home,
- TQT_TQOBJECT(this), TQT_SLOT(shiftHome()),
+ this, TQ_SLOT(shiftHome()),
ac, "select_beginning_of_line" );
new TDEAction(
i18n("Select to Beginning of Document"), SHIFT + CTRL + Key_Home,
- TQT_TQOBJECT(this), TQT_SLOT(shiftTop()),
+ this, TQ_SLOT(shiftTop()),
ac, "select_beginning_of_document" );
new TDEAction(
i18n("Move to End of Line"), Key_End,
- TQT_TQOBJECT(this), TQT_SLOT(end()),
+ this, TQ_SLOT(end()),
ac, "end_of_line" );
new TDEAction(
i18n("Move to End of Document"), TDEStdAccel::end(),
- TQT_TQOBJECT(this), TQT_SLOT(bottom()),
+ this, TQ_SLOT(bottom()),
ac, "end_of_document" );
new TDEAction(
i18n("Select to End of Line"), SHIFT + Key_End,
- TQT_TQOBJECT(this), TQT_SLOT(shiftEnd()),
+ this, TQ_SLOT(shiftEnd()),
ac, "select_end_of_line" );
new TDEAction(
i18n("Select to End of Document"), SHIFT + CTRL + Key_End,
- TQT_TQOBJECT(this), TQT_SLOT(shiftBottom()),
+ this, TQ_SLOT(shiftBottom()),
ac, "select_end_of_document" );
new TDEAction(
i18n("Select to Previous Line"), SHIFT + Key_Up,
- TQT_TQOBJECT(this), TQT_SLOT(shiftUp()),
+ this, TQ_SLOT(shiftUp()),
ac, "select_line_up" );
new TDEAction(
i18n("Scroll Line Up"),"", CTRL + Key_Up,
- TQT_TQOBJECT(this), TQT_SLOT(scrollUp()),
+ this, TQ_SLOT(scrollUp()),
ac, "scroll_line_up" );
- new TDEAction(i18n("Move to Next Line"), Key_Down, TQT_TQOBJECT(this), TQT_SLOT(down()),
+ new TDEAction(i18n("Move to Next Line"), Key_Down, this, TQ_SLOT(down()),
ac, "move_line_down");
- new TDEAction(i18n("Move to Previous Line"), Key_Up, TQT_TQOBJECT(this), TQT_SLOT(up()),
+ new TDEAction(i18n("Move to Previous Line"), Key_Up, this, TQ_SLOT(up()),
ac, "move_line_up");
- new TDEAction(i18n("Move Character Right"), Key_Right, TQT_TQOBJECT(this),
- TQT_SLOT(cursorRight()), ac, "move_cursor_right");
+ new TDEAction(i18n("Move Character Right"), Key_Right, this,
+ TQ_SLOT(cursorRight()), ac, "move_cursor_right");
- new TDEAction(i18n("Move Character Left"), Key_Left, TQT_TQOBJECT(this), TQT_SLOT(cursorLeft()),
+ new TDEAction(i18n("Move Character Left"), Key_Left, this, TQ_SLOT(cursorLeft()),
ac, "move_cusor_left");
new TDEAction(
i18n("Select to Next Line"), SHIFT + Key_Down,
- TQT_TQOBJECT(this), TQT_SLOT(shiftDown()),
+ this, TQ_SLOT(shiftDown()),
ac, "select_line_down" );
new TDEAction(
i18n("Scroll Line Down"), CTRL + Key_Down,
- TQT_TQOBJECT(this), TQT_SLOT(scrollDown()),
+ this, TQ_SLOT(scrollDown()),
ac, "scroll_line_down" );
new TDEAction(
i18n("Scroll Page Up"), TDEStdAccel::prior(),
- TQT_TQOBJECT(this), TQT_SLOT(pageUp()),
+ this, TQ_SLOT(pageUp()),
ac, "scroll_page_up" );
new TDEAction(
i18n("Select Page Up"), SHIFT + Key_PageUp,
- TQT_TQOBJECT(this), TQT_SLOT(shiftPageUp()),
+ this, TQ_SLOT(shiftPageUp()),
ac, "select_page_up" );
new TDEAction(
i18n("Move to Top of View"), CTRL + Key_PageUp,
- TQT_TQOBJECT(this), TQT_SLOT(topOfView()),
+ this, TQ_SLOT(topOfView()),
ac, "move_top_of_view" );
new TDEAction(
i18n("Select to Top of View"), CTRL + SHIFT + Key_PageUp,
- TQT_TQOBJECT(this), TQT_SLOT(shiftTopOfView()),
+ this, TQ_SLOT(shiftTopOfView()),
ac, "select_top_of_view" );
new TDEAction(
i18n("Scroll Page Down"), TDEStdAccel::next(),
- TQT_TQOBJECT(this), TQT_SLOT(pageDown()),
+ this, TQ_SLOT(pageDown()),
ac, "scroll_page_down" );
new TDEAction(
i18n("Select Page Down"), SHIFT + Key_PageDown,
- TQT_TQOBJECT(this), TQT_SLOT(shiftPageDown()),
+ this, TQ_SLOT(shiftPageDown()),
ac, "select_page_down" );
new TDEAction(
i18n("Move to Bottom of View"), CTRL + Key_PageDown,
- TQT_TQOBJECT(this), TQT_SLOT(bottomOfView()),
+ this, TQ_SLOT(bottomOfView()),
ac, "move_bottom_of_view" );
new TDEAction(
i18n("Select to Bottom of View"), CTRL + SHIFT + Key_PageDown,
- TQT_TQOBJECT(this), TQT_SLOT(shiftBottomOfView()),
+ this, TQ_SLOT(shiftBottomOfView()),
ac, "select_bottom_of_view" );
new TDEAction(
i18n("Move to Matching Bracket"), CTRL + Key_6,
- TQT_TQOBJECT(this), TQT_SLOT(toMatchingBracket()),
+ this, TQ_SLOT(toMatchingBracket()),
ac, "to_matching_bracket" );
new TDEAction(
i18n("Select to Matching Bracket"), SHIFT + CTRL + Key_6,
- TQT_TQOBJECT(this), TQT_SLOT(shiftToMatchingBracket()),
+ this, TQ_SLOT(shiftToMatchingBracket()),
ac, "select_matching_bracket" );
// anders: shortcuts doing any changes should not be created in browserextension
@@ -582,40 +582,40 @@ void KateView::setupEditActions()
{
new TDEAction(
i18n("Transpose Characters"), CTRL + Key_T,
- TQT_TQOBJECT(this), TQT_SLOT(transpose()),
+ this, TQ_SLOT(transpose()),
ac, "transpose_char" );
new TDEAction(
i18n("Delete Line"), CTRL + Key_K,
- TQT_TQOBJECT(this), TQT_SLOT(killLine()),
+ this, TQ_SLOT(killLine()),
ac, "delete_line" );
new TDEAction(
i18n("Delete Word Left"), TDEStdAccel::deleteWordBack(),
- TQT_TQOBJECT(this), TQT_SLOT(deleteWordLeft()),
+ this, TQ_SLOT(deleteWordLeft()),
ac, "delete_word_left" );
new TDEAction(
i18n("Delete Word Right"), TDEStdAccel::deleteWordForward(),
- TQT_TQOBJECT(this), TQT_SLOT(deleteWordRight()),
+ this, TQ_SLOT(deleteWordRight()),
ac, "delete_word_right" );
new TDEAction(i18n("Delete Next Character"), Key_Delete,
- TQT_TQOBJECT(this), TQT_SLOT(keyDelete()),
+ this, TQ_SLOT(keyDelete()),
ac, "delete_next_character");
TDEAction *a = new TDEAction(i18n("Backspace"), Key_Backspace,
- TQT_TQOBJECT(this), TQT_SLOT(backspace()),
+ this, TQ_SLOT(backspace()),
ac, "backspace");
TDEShortcut cut = a->shortcut();
cut.append( KKey( SHIFT + Key_Backspace ) );
a->setShortcut( cut );
}
- connect( this, TQT_SIGNAL(gotFocus(Kate::View*)),
- TQT_TQOBJECT(this), TQT_SLOT(slotGotFocus()) );
- connect( this, TQT_SIGNAL(lostFocus(Kate::View*)),
- TQT_TQOBJECT(this), TQT_SLOT(slotLostFocus()) );
+ connect( this, TQ_SIGNAL(gotFocus(Kate::View*)),
+ this, TQ_SLOT(slotGotFocus()) );
+ connect( this, TQ_SIGNAL(lostFocus(Kate::View*)),
+ this, TQ_SLOT(slotLostFocus()) );
m_editActions->readShortcutSettings( "Katepart Shortcuts" );
@@ -631,18 +631,18 @@ void KateView::setupCodeFolding()
{
TDEActionCollection *ac=this->actionCollection();
new TDEAction( i18n("Collapse Toplevel"), CTRL+SHIFT+Key_Minus,
- m_doc->foldingTree(),TQT_SLOT(collapseToplevelNodes()),ac,"folding_toplevel");
+ m_doc->foldingTree(),TQ_SLOT(collapseToplevelNodes()),ac,"folding_toplevel");
new TDEAction( i18n("Expand Toplevel"), CTRL+SHIFT+Key_Plus,
- TQT_TQOBJECT(this),TQT_SLOT(slotExpandToplevel()),ac,"folding_expandtoplevel");
+ this,TQ_SLOT(slotExpandToplevel()),ac,"folding_expandtoplevel");
new TDEAction( i18n("Collapse One Local Level"), CTRL+Key_Minus,
- TQT_TQOBJECT(this),TQT_SLOT(slotCollapseLocal()),ac,"folding_collapselocal");
+ this,TQ_SLOT(slotCollapseLocal()),ac,"folding_collapselocal");
new TDEAction( i18n("Expand One Local Level"), CTRL+Key_Plus,
- TQT_TQOBJECT(this),TQT_SLOT(slotExpandLocal()),ac,"folding_expandlocal");
+ this,TQ_SLOT(slotExpandLocal()),ac,"folding_expandlocal");
#ifdef DEBUGACCELS
- TDEAccel* debugAccels = new TDEAccel(this,TQT_TQOBJECT(this));
- debugAccels->insert("KATE_DUMP_REGION_TREE",i18n("Show the code folding region tree"),"","Ctrl+Shift+Alt+D",m_doc,TQT_SLOT(dumpRegionTree()));
- debugAccels->insert("KATE_TEMPLATE_TEST",i18n("Basic template code test"),"","Ctrl+Shift+Alt+T",m_doc,TQT_SLOT(testTemplateCode()));
+ TDEAccel* debugAccels = new TDEAccel(this,this);
+ debugAccels->insert("KATE_DUMP_REGION_TREE",i18n("Show the code folding region tree"),"","Ctrl+Shift+Alt+D",m_doc,TQ_SLOT(dumpRegionTree()));
+ debugAccels->insert("KATE_TEMPLATE_TEST",i18n("Basic template code test"),"","Ctrl+Shift+Alt+T",m_doc,TQ_SLOT(testTemplateCode()));
debugAccels->setEnabled(true);
#endif
}
@@ -669,16 +669,16 @@ void KateView::slotExpandLocal()
void KateView::setupCodeCompletion()
{
m_codeCompletion = new KateCodeCompletion(this);
- connect( m_codeCompletion, TQT_SIGNAL(completionAborted()),
- TQT_TQOBJECT(this), TQT_SIGNAL(completionAborted()));
- connect( m_codeCompletion, TQT_SIGNAL(completionDone()),
- TQT_TQOBJECT(this), TQT_SIGNAL(completionDone()));
- connect( m_codeCompletion, TQT_SIGNAL(argHintHidden()),
- TQT_TQOBJECT(this), TQT_SIGNAL(argHintHidden()));
- connect( m_codeCompletion, TQT_SIGNAL(completionDone(KTextEditor::CompletionEntry)),
- TQT_TQOBJECT(this), TQT_SIGNAL(completionDone(KTextEditor::CompletionEntry)));
- connect( m_codeCompletion, TQT_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*)),
- TQT_TQOBJECT(this), TQT_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*)));
+ connect( m_codeCompletion, TQ_SIGNAL(completionAborted()),
+ this, TQ_SIGNAL(completionAborted()));
+ connect( m_codeCompletion, TQ_SIGNAL(completionDone()),
+ this, TQ_SIGNAL(completionDone()));
+ connect( m_codeCompletion, TQ_SIGNAL(argHintHidden()),
+ this, TQ_SIGNAL(argHintHidden()));
+ connect( m_codeCompletion, TQ_SIGNAL(completionDone(KTextEditor::CompletionEntry)),
+ this, TQ_SIGNAL(completionDone(KTextEditor::CompletionEntry)));
+ connect( m_codeCompletion, TQ_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*)),
+ this, TQ_SIGNAL(filterInsertString(KTextEditor::CompletionEntry*,TQString*)));
}
void KateView::slotGotFocus()
diff --git a/kate/part/kateview.h b/kate/part/kateview.h
index 0a00ab1fc..1e113618e 100644
--- a/kate/part/kateview.h
+++ b/kate/part/kateview.h
@@ -62,7 +62,7 @@ class KateView : public Kate::View,
public KTextEditor::SelectionInterfaceExt,
public KTextEditor::BlockSelectionInterface
{
- Q_OBJECT
+ TQ_OBJECT
friend class KateViewInternal;
friend class KateIconBorder;
diff --git a/kate/part/kateviewhelpers.cpp b/kate/part/kateviewhelpers.cpp
index 1074615f8..872e7467c 100644
--- a/kate/part/kateviewhelpers.cpp
+++ b/kate/part/kateviewhelpers.cpp
@@ -65,15 +65,15 @@ KateScrollBar::KateScrollBar (Orientation orientation, KateViewInternal* parent,
, m_savVisibleLines(0)
, m_showMarks(false)
{
- connect(this, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(sliderMaybeMoved(int)));
- connect(m_doc, TQT_SIGNAL(marksChanged()), this, TQT_SLOT(marksChanged()));
+ connect(this, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(sliderMaybeMoved(int)));
+ connect(m_doc, TQ_SIGNAL(marksChanged()), this, TQ_SLOT(marksChanged()));
m_lines.setAutoDelete(true);
}
void KateScrollBar::mousePressEvent(TQMouseEvent* e)
{
- if (e->button() == Qt::MidButton)
+ if (e->button() == TQt::MidButton)
m_middleMouseDown = true;
TQScrollBar::mousePressEvent(e);
@@ -94,7 +94,7 @@ void KateScrollBar::mouseMoveEvent(TQMouseEvent* e)
{
TQScrollBar::mouseMoveEvent(e);
- if (e->state() | Qt::LeftButton)
+ if (e->state() | TQt::LeftButton)
redrawMarks();
}
@@ -295,8 +295,8 @@ KateCmdLine::KateCmdLine (KateView *view)
, m_command( 0L )
, m_oldCompletionObject( 0L )
{
- connect (this, TQT_SIGNAL(returnPressed(const TQString &)),
- this, TQT_SLOT(slotReturnPressed(const TQString &)));
+ connect (this, TQ_SIGNAL(returnPressed(const TQString &)),
+ this, TQ_SLOT(slotReturnPressed(const TQString &)));
completionObject()->insertItems (KateCmd::self()->cmds());
setAutoDeleteCompletionObject( false );
@@ -375,7 +375,7 @@ void KateCmdLine::slotReturnPressed ( const TQString& text )
m_cmdend = 0;
m_view->setFocus ();
- TQTimer::singleShot( 4000, this, TQT_SLOT(hideMe()) );
+ TQTimer::singleShot( 4000, this, TQ_SLOT(hideMe()) );
}
void KateCmdLine::hideMe () // unless i have focus ;)
@@ -716,7 +716,7 @@ void KateIconBorder::setIconBorderOn( bool enable )
updateGeometry();
- TQTimer::singleShot( 0, this, TQT_SLOT(update()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(update()) );
}
void KateIconBorder::setLineNumbersOn( bool enable )
@@ -729,7 +729,7 @@ void KateIconBorder::setLineNumbersOn( bool enable )
updateGeometry();
- TQTimer::singleShot( 0, this, TQT_SLOT(update()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(update()) );
}
void KateIconBorder::setDynWrapIndicators( int state )
@@ -742,7 +742,7 @@ void KateIconBorder::setDynWrapIndicators( int state )
updateGeometry ();
- TQTimer::singleShot( 0, this, TQT_SLOT(update()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(update()) );
}
void KateIconBorder::setFoldingMarkersOn( bool enable )
@@ -754,7 +754,7 @@ void KateIconBorder::setFoldingMarkersOn( bool enable )
updateGeometry();
- TQTimer::singleShot( 0, this, TQT_SLOT(update()) );
+ TQTimer::singleShot( 0, this, TQ_SLOT(update()) );
}
TQSize KateIconBorder::sizeHint() const
@@ -953,7 +953,7 @@ void KateIconBorder::paintBorder (int /*x*/, int y, int /*width*/, int height)
if (realLine > -1)
if (m_viewInternal->lineRanges[z].startCol == 0) {
if (m_lineNumbersOn)
- p.drawText( lnX + 1, y, lnWidth-4, h, Qt::AlignRight|Qt::AlignVCenter, TQString("%1").arg( realLine + 1 ) );
+ p.drawText( lnX + 1, y, lnWidth-4, h, TQt::AlignRight|TQt::AlignVCenter, TQString("%1").arg( realLine + 1 ) );
} else if (m_view->dynWordWrap() && m_dynWrapIndicatorsOn) {
p.drawPixmap(lnX + lnWidth - m_arrow.width() - 4, y, m_arrow);
}
@@ -1069,7 +1069,7 @@ void KateIconBorder::mouseReleaseEvent( TQMouseEvent* e )
{
BorderArea area = positionToArea( e->pos() );
if( area == IconBorder) {
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
if( m_doc->editableMarks() & KateViewConfig::global()->defaultMarkType() ) {
if( m_doc->mark( cursorOnLine ) & KateViewConfig::global()->defaultMarkType() )
m_doc->removeMark( cursorOnLine, KateViewConfig::global()->defaultMarkType() );
@@ -1080,7 +1080,7 @@ void KateIconBorder::mouseReleaseEvent( TQMouseEvent* e )
}
}
else
- if (e->button() == Qt::RightButton) {
+ if (e->button() == TQt::RightButton) {
showMarkMenu( cursorOnLine, TQCursor::pos() );
}
}
@@ -1170,7 +1170,7 @@ void KateIconBorder::showMarkMenu( uint line, const TQPoint& pos )
KateViewEncodingAction::KateViewEncodingAction(KateDocument *_doc, KateView *_view, const TQString& text, TQObject* parent, const char* name)
: TDEActionMenu (text, parent, name), doc(_doc), view (_view)
{
- connect(popupMenu(),TQT_SIGNAL(aboutToShow()),this,TQT_SLOT(slotAboutToShow()));
+ connect(popupMenu(),TQ_SIGNAL(aboutToShow()),this,TQ_SLOT(slotAboutToShow()));
}
void KateViewEncodingAction::slotAboutToShow()
@@ -1180,7 +1180,7 @@ void KateViewEncodingAction::slotAboutToShow()
popupMenu()->clear ();
for (uint z=0; z<modes.size(); ++z)
{
- popupMenu()->insertItem ( modes[z], this, TQT_SLOT(setMode(int)), 0, z);
+ popupMenu()->insertItem ( modes[z], this, TQ_SLOT(setMode(int)), 0, z);
bool found = false;
TQTextCodec *codecForEnc = TDEGlobal::charsets()->codecForName(TDEGlobal::charsets()->encodingForName(modes[z]), found);
diff --git a/kate/part/kateviewhelpers.h b/kate/part/kateviewhelpers.h
index ecaec3303..1e162af18 100644
--- a/kate/part/kateviewhelpers.h
+++ b/kate/part/kateviewhelpers.h
@@ -47,7 +47,7 @@ namespace Kate {
*/
class KateScrollBar : public TQScrollBar
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateScrollBar(Orientation orientation, class KateViewInternal *parent, const char* name = 0L);
@@ -94,7 +94,7 @@ class KateScrollBar : public TQScrollBar
class KateCmdLine : public KLineEdit
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateCmdLine (KateView *view);
@@ -121,7 +121,7 @@ class KateCmdLine : public KLineEdit
class KateIconBorder : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateIconBorder( KateViewInternal* internalView, TQWidget *parent );
@@ -184,7 +184,7 @@ class KateIconBorder : public TQWidget
class KateViewEncodingAction : public TDEActionMenu
{
- Q_OBJECT
+ TQ_OBJECT
public:
KateViewEncodingAction(KateDocument *_doc, KateView *_view, const TQString& text, TQObject* parent = 0, const char* name = 0);
diff --git a/kate/part/kateviewinternal.cpp b/kate/part/kateviewinternal.cpp
index c536974e6..0f12f8562 100644
--- a/kate/part/kateviewinternal.cpp
+++ b/kate/part/kateviewinternal.cpp
@@ -57,7 +57,7 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
, editIsRunning (false)
, m_view (view)
, m_doc (doc)
- , cursor (doc, true, 0, 0, TQT_TQOBJECT(this))
+ , cursor (doc, true, 0, 0, this)
, possibleTripleClick (false)
, m_dummy (0)
, m_startPos(doc, true, 0,0)
@@ -94,7 +94,7 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
//
// scrollbar for lines
//
- m_lineScroll = new KateScrollBar(Qt::Vertical, this);
+ m_lineScroll = new KateScrollBar(TQt::Vertical, this);
m_lineScroll->show();
m_lineScroll->setTracking (true);
@@ -116,14 +116,14 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
m_lineLayout->addWidget(m_dummy);
// Hijack the line scroller's controls, so we can scroll nicely for word-wrap
- connect(m_lineScroll, TQT_SIGNAL(prevPage()), TQT_SLOT(scrollPrevPage()));
- connect(m_lineScroll, TQT_SIGNAL(nextPage()), TQT_SLOT(scrollNextPage()));
+ connect(m_lineScroll, TQ_SIGNAL(prevPage()), TQ_SLOT(scrollPrevPage()));
+ connect(m_lineScroll, TQ_SIGNAL(nextPage()), TQ_SLOT(scrollNextPage()));
- connect(m_lineScroll, TQT_SIGNAL(prevLine()), TQT_SLOT(scrollPrevLine()));
- connect(m_lineScroll, TQT_SIGNAL(nextLine()), TQT_SLOT(scrollNextLine()));
+ connect(m_lineScroll, TQ_SIGNAL(prevLine()), TQ_SLOT(scrollPrevLine()));
+ connect(m_lineScroll, TQ_SIGNAL(nextLine()), TQ_SLOT(scrollNextLine()));
- connect(m_lineScroll, TQT_SIGNAL(sliderMoved(int)), TQT_SLOT(scrollLines(int)));
- connect(m_lineScroll, TQT_SIGNAL(sliderMMBMoved(int)), TQT_SLOT(scrollLines(int)));
+ connect(m_lineScroll, TQ_SIGNAL(sliderMoved(int)), TQ_SLOT(scrollLines(int)));
+ connect(m_lineScroll, TQ_SIGNAL(sliderMMBMoved(int)), TQ_SLOT(scrollLines(int)));
// catch wheel events, completing the hijack
m_lineScroll->installEventFilter(this);
@@ -131,7 +131,7 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
//
// scrollbar for columns
//
- m_columnScroll = new TQScrollBar(Qt::Horizontal,m_view);
+ m_columnScroll = new TQScrollBar(TQt::Horizontal,m_view);
// hide the column scrollbar in the dynamic word wrap mode
if (m_view->dynWordWrap())
@@ -142,8 +142,8 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
m_columnScroll->setTracking(true);
m_startX = 0;
- connect( m_columnScroll, TQT_SIGNAL( valueChanged (int) ),
- this, TQT_SLOT( scrollColumns (int) ) );
+ connect( m_columnScroll, TQ_SIGNAL( valueChanged (int) ),
+ this, TQ_SLOT( scrollColumns (int) ) );
//
// iconborder ;)
@@ -151,13 +151,13 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
leftBorder = new KateIconBorder( this, m_view );
leftBorder->show ();
- connect( leftBorder, TQT_SIGNAL(toggleRegionVisibility(unsigned int)),
- m_doc->foldingTree(), TQT_SLOT(toggleRegionVisibility(unsigned int)));
+ connect( leftBorder, TQ_SIGNAL(toggleRegionVisibility(unsigned int)),
+ m_doc->foldingTree(), TQ_SLOT(toggleRegionVisibility(unsigned int)));
- connect( doc->foldingTree(), TQT_SIGNAL(regionVisibilityChangedAt(unsigned int)),
- this, TQT_SLOT(slotRegionVisibilityChangedAt(unsigned int)));
- connect( doc, TQT_SIGNAL(codeFoldingUpdated()),
- this, TQT_SLOT(slotCodeFoldingChanged()) );
+ connect( doc->foldingTree(), TQ_SIGNAL(regionVisibilityChangedAt(unsigned int)),
+ this, TQ_SLOT(slotRegionVisibilityChangedAt(unsigned int)));
+ connect( doc, TQ_SIGNAL(codeFoldingUpdated()),
+ this, TQ_SLOT(slotCodeFoldingChanged()) );
displayCursor.setPos(0, 0);
cursor.setPos(0, 0);
@@ -182,21 +182,21 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
dragInfo.state = diNone;
// timers
- connect( &m_dragScrollTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( doDragScroll() ) );
+ connect( &m_dragScrollTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( doDragScroll() ) );
- connect( &m_scrollTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( scrollTimeout() ) );
+ connect( &m_scrollTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( scrollTimeout() ) );
- connect( &m_cursorTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( cursorTimeout() ) );
+ connect( &m_cursorTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( cursorTimeout() ) );
- connect( &m_textHintTimer, TQT_SIGNAL( timeout() ),
- this, TQT_SLOT( textHintTimeout() ) );
+ connect( &m_textHintTimer, TQ_SIGNAL( timeout() ),
+ this, TQ_SLOT( textHintTimeout() ) );
// selection changed to set anchor
- connect( m_view, TQT_SIGNAL( selectionChanged() ),
- this, TQT_SLOT( viewSelectionChanged() ) );
+ connect( m_view, TQ_SIGNAL( selectionChanged() ),
+ this, TQ_SLOT( viewSelectionChanged() ) );
// this is a work arround for RTL desktops
@@ -420,7 +420,7 @@ void KateViewInternal::scrollPos(KateTextCursor& c, bool force, bool calledExter
Q_ASSERT(lines >= 0);
- if (!calledExternally && QABS(viewLinesScrolled) < lines)
+ if (!calledExternally && TQABS(viewLinesScrolled) < lines)
{
updateView(false, viewLinesScrolled);
@@ -456,7 +456,7 @@ void KateViewInternal::scrollColumns ( int x )
int dx = m_startX - x;
m_startX = x;
- if (QABS(dx) < width())
+ if (TQABS(dx) < width())
scroll(dx, 0);
else
update();
@@ -1216,7 +1216,7 @@ void KateViewInternal::moveEdge( Bias bias, bool sel )
void KateViewInternal::home( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Home, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Home, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -1257,7 +1257,7 @@ void KateViewInternal::home( bool sel )
void KateViewInternal::end( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_End, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_End, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -1687,7 +1687,7 @@ int KateViewInternal::lineMaxCol(const KateLineRange& range)
void KateViewInternal::cursorUp(bool sel)
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Up, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Up, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -1754,7 +1754,7 @@ void KateViewInternal::cursorUp(bool sel)
void KateViewInternal::cursorDown(bool sel)
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Down, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Down, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -1889,7 +1889,7 @@ void KateViewInternal::setAutoCenterLines(int viewLines, bool updateView)
void KateViewInternal::pageUp( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_PageUp, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_PageUp, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -1938,7 +1938,7 @@ void KateViewInternal::pageUp( bool sel )
void KateViewInternal::pageDown( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_PageDown, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_PageDown, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -2025,7 +2025,7 @@ void KateViewInternal::bottom( bool sel )
void KateViewInternal::top_home( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Home, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Home, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -2037,7 +2037,7 @@ void KateViewInternal::top_home( bool sel )
void KateViewInternal::bottom_end( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
- TQKeyEvent e(TQEvent::KeyPress, Qt::Key_End, 0, 0);
+ TQKeyEvent e(TQEvent::KeyPress, TQt::Key_End, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@@ -2438,7 +2438,7 @@ bool KateViewInternal::isTargetSelected( const TQPoint& p )
bool KateViewInternal::eventFilter( TQObject *obj, TQEvent *e )
{
- if (TQT_BASE_OBJECT(obj) == TQT_BASE_OBJECT(m_lineScroll))
+ if (obj == m_lineScroll)
{
// the second condition is to make sure a scroll on the vertical bar doesn't cause a horizontal scroll ;)
if (e->type() == TQEvent::Wheel && m_lineScroll->minValue() != m_lineScroll->maxValue())
@@ -2465,7 +2465,7 @@ bool KateViewInternal::eventFilter( TQObject *obj, TQEvent *e )
m_view->m_codeCompletion->abortCompletion();
}
- if ((k->key() == Qt::Key_Escape) && !m_view->config()->persistentSelection() )
+ if ((k->key() == TQt::Key_Escape) && !m_view->config()->persistentSelection() )
{
m_view->clearSelection();
return true;
@@ -2525,7 +2525,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
kdDebug (13030) << "hint around" << endl;
if( e->key() == Key_Enter || e->key() == Key_Return ||
- (key == SHIFT + Qt::Key_Return) || (key == SHIFT + Qt::Key_Enter)) {
+ (key == SHIFT + TQt::Key_Return) || (key == SHIFT + TQt::Key_Enter)) {
m_view->m_codeCompletion->doComplete();
e->accept();
return;
@@ -2538,14 +2538,14 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
- if ((key == Qt::Key_Return) || (key == Qt::Key_Enter))
+ if ((key == TQt::Key_Return) || (key == TQt::Key_Enter))
{
m_view->keyReturn();
e->accept();
return;
}
- if ((key == SHIFT + Qt::Key_Return) || (key == SHIFT + Qt::Key_Enter))
+ if ((key == SHIFT + TQt::Key_Return) || (key == SHIFT + TQt::Key_Enter))
{
uint ln = cursor.line();
int col = cursor.col();
@@ -2573,7 +2573,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
- if (key == Qt::Key_Backspace || key == SHIFT + Qt::Key_Backspace)
+ if (key == TQt::Key_Backspace || key == SHIFT + TQt::Key_Backspace)
{
m_view->backspace();
e->accept();
@@ -2584,7 +2584,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
- if (key == Qt::Key_Tab || key == SHIFT+Qt::Key_Backtab || key == Qt::Key_Backtab)
+ if (key == TQt::Key_Tab || key == SHIFT+TQt::Key_Backtab || key == TQt::Key_Backtab)
{
if (m_doc->invokeTabInterceptor(key)) {
e->accept();
@@ -2592,7 +2592,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
} else
if (m_doc->configFlags() & KateDocumentConfig::cfTabIndents)
{
- if( key == Qt::Key_Tab )
+ if( key == TQt::Key_Tab )
{
if (m_view->hasSelection() || (m_doc->configFlags() & KateDocumentConfig::cfTabIndentsMode))
m_doc->indent( m_view, cursor.line(), 1 );
@@ -2609,7 +2609,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
- if (key == SHIFT+Qt::Key_Backtab || key == Qt::Key_Backtab)
+ if (key == SHIFT+TQt::Key_Backtab || key == TQt::Key_Backtab)
{
m_doc->indent( m_view, cursor.line(), -1 );
e->accept();
@@ -2693,7 +2693,7 @@ void KateViewInternal::mousePressEvent( TQMouseEvent* e )
{
switch (e->button())
{
- case Qt::LeftButton:
+ case TQt::LeftButton:
m_selChangedByUser = false;
if (possibleTripleClick)
@@ -2820,7 +2820,7 @@ void KateViewInternal::mouseDoubleClickEvent(TQMouseEvent *e)
{
switch (e->button())
{
- case Qt::LeftButton:
+ case TQt::LeftButton:
m_selectionMode = Word;
if ( e->state() & TQt::ShiftButton )
@@ -2902,7 +2902,7 @@ void KateViewInternal::mouseDoubleClickEvent(TQMouseEvent *e)
}
possibleTripleClick = true;
- TQTimer::singleShot ( TQApplication::doubleClickInterval(), this, TQT_SLOT(tripleClickTimeout()) );
+ TQTimer::singleShot ( TQApplication::doubleClickInterval(), this, TQ_SLOT(tripleClickTimeout()) );
scrollX = 0;
scrollY = 0;
@@ -2927,7 +2927,7 @@ void KateViewInternal::mouseReleaseEvent( TQMouseEvent* e )
{
switch (e->button())
{
- case Qt::LeftButton:
+ case TQt::LeftButton:
m_selectionMode = Default;
// selStartCached.setLine( -1 );
@@ -2956,7 +2956,7 @@ void KateViewInternal::mouseReleaseEvent( TQMouseEvent* e )
e->accept ();
break;
- case Qt::MidButton:
+ case TQt::MidButton:
placeCursor( e->pos() );
if( m_doc->isReadWrite() )
@@ -2977,7 +2977,7 @@ void KateViewInternal::mouseReleaseEvent( TQMouseEvent* e )
void KateViewInternal::mouseMoveEvent( TQMouseEvent* e )
{
- if( e->state() & Qt::LeftButton )
+ if( e->state() & TQt::LeftButton )
{
if (dragInfo.state == diPending)
{
@@ -3263,27 +3263,44 @@ void KateViewInternal::clear()
void KateViewInternal::wheelEvent(TQWheelEvent* e)
{
- if (m_lineScroll->minValue() != m_lineScroll->maxValue() && e->orientation() != Qt::Horizontal) {
- // React to this as a vertical event
- if ( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) ) {
- if (e->delta() > 0)
- scrollPrevPage();
- else
- scrollNextPage();
- } else {
- scrollViewLines(-((e->delta() / 120) * TQApplication::wheelScrollLines()));
- // maybe a menu was opened or a bubbled window title is on us -> we shall erase it
- update();
- leftBorder->update();
- }
-
- } else if (columnScrollingPossible()) {
- TQWheelEvent copy = *e;
- TQApplication::sendEvent(m_columnScroll, &copy);
-
- } else {
- e->ignore();
- }
+ if (e->state() & ControlButton)
+ {
+ if (e->delta() > 0)
+ {
+ slotIncFontSizes();
+ }
+ else
+ {
+ slotDecFontSizes();
+ }
+ }
+ else
+ {
+ if (m_lineScroll->minValue() != m_lineScroll->maxValue() && e->orientation() != TQt::Horizontal)
+ {
+ // React to this as a vertical event
+ if ( e->state() & ShiftButton )
+ {
+ if (e->delta() > 0)
+ scrollPrevPage();
+ else
+ scrollNextPage();
+ }
+ else
+ {
+ scrollViewLines(-((e->delta() / 120) * TQApplication::wheelScrollLines()));
+ // maybe a menu was opened or a bubbled window title is on us -> we shall erase it
+ update();
+ leftBorder->update();
+ }
+ } else if (columnScrollingPossible()) {
+ TQWheelEvent copy = *e;
+ TQApplication::sendEvent(m_columnScroll, &copy);
+
+ } else {
+ e->ignore();
+ }
+ }
}
void KateViewInternal::startDragScroll()
diff --git a/kate/part/kateviewinternal.h b/kate/part/kateviewinternal.h
index 0d9aa7c55..77fb81e7a 100644
--- a/kate/part/kateviewinternal.h
+++ b/kate/part/kateviewinternal.h
@@ -52,7 +52,7 @@ enum Bias
class KateViewInternal : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
friend class KateView;
friend class KateIconBorder;
diff --git a/kate/part/test_regression.cpp b/kate/part/test_regression.cpp
index d0443da71..4f4e5692d 100644
--- a/kate/part/test_regression.cpp
+++ b/kate/part/test_regression.cpp
@@ -549,10 +549,10 @@ int main(int argc, char *argv[])
baseDir,
args->getOption("output"),
args->isSet("genoutput"));
- TQObject::connect(part->browserExtension(), TQT_SIGNAL(openURLRequest(const KURL &, const KParts::URLArgs &)),
- regressionTest, TQT_SLOT(slotOpenURL(const KURL&, const KParts::URLArgs &)));
- TQObject::connect(part->browserExtension(), TQT_SIGNAL(resizeTopLevelWidget( int, int )),
- regressionTest, TQT_SLOT(resizeTopLevelWidget( int, int )));
+ TQObject::connect(part->browserExtension(), TQ_SIGNAL(openURLRequest(const KURL &, const KParts::URLArgs &)),
+ regressionTest, TQ_SLOT(slotOpenURL(const KURL&, const KParts::URLArgs &)));
+ TQObject::connect(part->browserExtension(), TQ_SIGNAL(resizeTopLevelWidget( int, int )),
+ regressionTest, TQ_SLOT(resizeTopLevelWidget( int, int )));
regressionTest->m_keepOutput = args->isSet("keep-output");
regressionTest->m_showGui = args->isSet("show");
@@ -628,7 +628,7 @@ int main(int argc, char *argv[])
link += TQString(" <p style=\"color:green;font-weight:bold\">%1 new passes since %2</p>")
.arg(regressionTest->m_passes_new)
.arg(regressionTest->m_failureComp->group());
- list.tqwriteBlock( link.latin1(), link.length() );
+ list.writeBlock( link.latin1(), link.length() );
list.close();
}
}
@@ -681,12 +681,12 @@ RegressionTest::RegressionTest(KateDocument *part, TDEConfig *baseConfig,
TQString s;
f.open( IO_WriteOnly | IO_Truncate );
s = "<html><body>Follow the white rabbit";
- f.tqwriteBlock( s.latin1(), s.length() );
+ f.writeBlock( s.latin1(), s.length() );
f.close();
f.setName( m_outputDir + "/index.html" );
f.open( IO_WriteOnly | IO_Truncate );
s = "<html><frameset cols=150,*><frame src=links.html><frame name=content src=empty.html>";
- f.tqwriteBlock( s.latin1(), s.length() );
+ f.writeBlock( s.latin1(), s.length() );
f.close();
curr = this;
@@ -848,7 +848,7 @@ void RegressionTest::createLink( const TQString& test, int failures )
if (failures & NewFailure)
link += "</span>";
link += "<br>\n";
- list.tqwriteBlock( link.latin1(), link.length() );
+ list.writeBlock( link.latin1(), link.length() );
list.close();
}
@@ -1020,7 +1020,7 @@ void RegressionTest::doFailureReport( const TQString& test, int failures )
cl += "<div id='dom' class='diff'>" + domDiff + "</div>";
cl += "</body></html>";
- compare.tqwriteBlock( cl.latin1(), cl.length() );
+ compare.writeBlock( cl.latin1(), cl.length() );
compare.close();
}
diff --git a/kate/part/test_regression.h b/kate/part/test_regression.h
index 2128ce25d..7ef1b9ee1 100644
--- a/kate/part/test_regression.h
+++ b/kate/part/test_regression.h
@@ -162,7 +162,7 @@ class OutputFunction : public KJS::ObjectImp
*/
class RegressionTest : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
RegressionTest(KateDocument *part, TDEConfig *baseConfig,
diff --git a/kate/plugins/autobookmarker/autobookmarker.cpp b/kate/plugins/autobookmarker/autobookmarker.cpp
index 2be5b00fb..06d7c12d2 100644
--- a/kate/plugins/autobookmarker/autobookmarker.cpp
+++ b/kate/plugins/autobookmarker/autobookmarker.cpp
@@ -66,7 +66,7 @@ AutoBookmarker::AutoBookmarker( TQObject *parent,
KTextEditor::ConfigInterfaceExtension()
{
if ( parent )
- connect( parent, TQT_SIGNAL( completed() ), this, TQT_SLOT( slotCompleted() ) );
+ connect( parent, TQ_SIGNAL( completed() ), this, TQ_SLOT( slotCompleted() ) );
}
void AutoBookmarker::addView(KTextEditor::View */*view*/)
@@ -113,7 +113,7 @@ void AutoBookmarker::slotCompleted()
{
// get the document info
KTextEditor::DocumentInfoInterface *di =
- ::tqqt_cast<KTextEditor::DocumentInfoInterface*>(document());
+ ::tqt_cast<KTextEditor::DocumentInfoInterface*>(document());
TQString mt;
if ( di ) // we can still try match the URL otherwise
mt = di->mimeType();
@@ -292,7 +292,7 @@ AutoBookmarkerEntEditor::AutoBookmarkerEntEditor( TQWidget *parent, AutoBookmark
TQWhatsThis::add( lePattern, i18n(
"<p>A regular expression. Matching lines will be bookmarked.</p>" ) );
- connect( lePattern, TQT_SIGNAL(textChanged ( const TQString & ) ),this, TQT_SLOT( slotPatternChanged( const TQString& ) ) );
+ connect( lePattern, TQ_SIGNAL(textChanged ( const TQString & ) ),this, TQ_SLOT( slotPatternChanged( const TQString& ) ) );
cbCS = new TQCheckBox( i18n("Case &sensitive"), w );
lo->addMultiCellWidget( cbCS, 1, 1, 0, 2 );
@@ -334,7 +334,7 @@ AutoBookmarkerEntEditor::AutoBookmarkerEntEditor( TQWidget *parent, AutoBookmark
TQToolButton *btnMTW = new TQToolButton(w);
lo->addWidget( btnMTW, 4, 2 );
btnMTW->setIconSet(TQIconSet(SmallIcon("wizard")));
- connect(btnMTW, TQT_SIGNAL(clicked()), this, TQT_SLOT(showMTDlg()));
+ connect(btnMTW, TQ_SIGNAL(clicked()), this, TQ_SLOT(showMTDlg()));
TQWhatsThis::add( btnMTW, i18n(
"<p>Click this button to display a checkable list of mimetypes available "
"on your system. When used, the file masks entry above will be filled in "
@@ -419,10 +419,10 @@ AutoBookmarkerConfigPage::AutoBookmarkerConfigPage( TQWidget *parent, const char
lo1->addStretch( 1 );
- connect( btnNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNew()) );
- connect( btnDel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDel()) );
- connect( btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEdit()) );
- connect( lvPatterns, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(slotEdit()) );
+ connect( btnNew, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNew()) );
+ connect( btnDel, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDel()) );
+ connect( btnEdit, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEdit()) );
+ connect( lvPatterns, TQ_SIGNAL(doubleClicked(TQListViewItem *)), this, TQ_SLOT(slotEdit()) );
m_ents = new ABEntityList();
m_ents->setAutoDelete( true );
diff --git a/kate/plugins/autobookmarker/autobookmarker.h b/kate/plugins/autobookmarker/autobookmarker.h
index 9687d8ceb..1f6d1daeb 100644
--- a/kate/plugins/autobookmarker/autobookmarker.h
+++ b/kate/plugins/autobookmarker/autobookmarker.h
@@ -50,7 +50,7 @@ class AutoBookmarker
: public KTextEditor::Plugin, public KTextEditor::PluginViewInterface,
public KTextEditor::ConfigInterfaceExtension
{
- Q_OBJECT
+ TQ_OBJECT
public:
AutoBookmarker( TQObject *parent = 0,
const char* name = 0,
@@ -96,7 +96,7 @@ class ABGlobal
class AutoBookmarkerConfigPage : public KTextEditor::ConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
AutoBookmarkerConfigPage( TQWidget *parent, const char *name );
virtual ~AutoBookmarkerConfigPage() {};
@@ -118,7 +118,7 @@ class AutoBookmarkerConfigPage : public KTextEditor::ConfigPage
class AutoBookmarkerEntEditor : public KDialogBase
{
- Q_OBJECT
+ TQ_OBJECT
public:
AutoBookmarkerEntEditor( TQWidget *parent, AutoBookmarkEnt *e );
~AutoBookmarkerEntEditor(){};
diff --git a/kate/plugins/insertfile/insertfileplugin.cpp b/kate/plugins/insertfile/insertfileplugin.cpp
index e2e3d354a..ed6cd3c6f 100644
--- a/kate/plugins/insertfile/insertfileplugin.cpp
+++ b/kate/plugins/insertfile/insertfileplugin.cpp
@@ -76,7 +76,7 @@ InsertFilePluginView::InsertFilePluginView( KTextEditor::View *view, const char
view->insertChildClient( this );
setInstance( KGenericFactory<InsertFilePlugin>::instance() );
_job = 0;
- (void) new TDEAction( i18n("Insert File..."), 0, this, TQT_SLOT(slotInsertFile()), actionCollection(), "tools_insert_file" );
+ (void) new TDEAction( i18n("Insert File..."), 0, this, TQ_SLOT(slotInsertFile()), actionCollection(), "tools_insert_file" );
setXMLFile( "tdetexteditor_insertfileui.rc" );
}
@@ -104,7 +104,7 @@ void InsertFilePluginView::slotInsertFile()
KURL destURL;
destURL.setPath( _tmpfile );
_job = TDEIO::file_copy( _file, destURL, 0600, true, false, true );
- connect( _job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotFinished ( TDEIO::Job * ) ) );
+ connect( _job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotFinished ( TDEIO::Job * ) ) );
}
}
diff --git a/kate/plugins/insertfile/insertfileplugin.h b/kate/plugins/insertfile/insertfileplugin.h
index da08a02c7..0f7bfc2c9 100644
--- a/kate/plugins/insertfile/insertfileplugin.h
+++ b/kate/plugins/insertfile/insertfileplugin.h
@@ -32,7 +32,7 @@
class InsertFilePlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
InsertFilePlugin( TQObject *parent = 0,
@@ -50,7 +50,7 @@ class InsertFilePlugin : public KTextEditor::Plugin, public KTextEditor::PluginV
class InsertFilePluginView : public TQObject, public KXMLGUIClient
{
- Q_OBJECT
+ TQ_OBJECT
public:
InsertFilePluginView( KTextEditor::View *view, const char *name=0 );
~InsertFilePluginView() {};
diff --git a/kate/plugins/isearch/ISearchPlugin.cpp b/kate/plugins/isearch/ISearchPlugin.cpp
index 4ee93cb87..306fcf596 100644
--- a/kate/plugins/isearch/ISearchPlugin.cpp
+++ b/kate/plugins/isearch/ISearchPlugin.cpp
@@ -66,11 +66,11 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
m_searchForwardAction = new TDEAction(
i18n("Search Incrementally"), CTRL+ALT+Key_F,
- this, TQT_SLOT(slotSearchForwardAction()),
+ this, TQ_SLOT(slotSearchForwardAction()),
actionCollection(), "edit_isearch" );
m_searchBackwardAction = new TDEAction(
i18n("Search Incrementally Backwards"), CTRL+ALT+SHIFT+Key_F,
- this, TQT_SLOT(slotSearchBackwardAction()),
+ this, TQ_SLOT(slotSearchBackwardAction()),
actionCollection(), "edit_isearch_reverse" );
m_label = new TQLabel( i18n("I-Search:"), 0L, "tde toolbar widget" );
@@ -84,12 +84,12 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
m_combo->setDuplicatesEnabled( false );
m_combo->setMaximumWidth( 300 );
m_combo->lineEdit()->installEventFilter( this );
- connect( m_combo, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotTextChanged(const TQString&)) );
- connect( m_combo, TQT_SIGNAL(returnPressed(const TQString&)),
- this, TQT_SLOT(slotReturnPressed(const TQString&)) );
- connect( m_combo, TQT_SIGNAL(aboutToShowContextMenu(TQPopupMenu*)),
- this, TQT_SLOT(slotAddContextMenuItems(TQPopupMenu*)) );
+ connect( m_combo, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotTextChanged(const TQString&)) );
+ connect( m_combo, TQ_SIGNAL(returnPressed(const TQString&)),
+ this, TQ_SLOT(slotReturnPressed(const TQString&)) );
+ connect( m_combo, TQ_SIGNAL(aboutToShowContextMenu(TQPopupMenu*)),
+ this, TQ_SLOT(slotAddContextMenuItems(TQPopupMenu*)) );
m_comboAction = new KWidgetAction(
m_combo,
i18n("Search"), 0, 0, 0,
@@ -106,8 +106,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
i18n("Case Sensitive"), TDEShortcut(),
actionCollection(), "isearch_case_sensitive" );
action->setShortcutConfigurable( false );
- connect( action, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setCaseSensitive(bool)) );
+ connect( action, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setCaseSensitive(bool)) );
action->setChecked( m_caseSensitive );
optionMenu->insert( action );
@@ -115,8 +115,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
i18n("From Beginning"), TDEShortcut(),
actionCollection(), "isearch_from_beginning" );
action->setShortcutConfigurable( false );
- connect( action, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setFromBeginning(bool)) );
+ connect( action, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setFromBeginning(bool)) );
action->setChecked( m_fromBeginning );
optionMenu->insert( action );
@@ -124,8 +124,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
i18n("Regular Expression"), TDEShortcut(),
actionCollection(), "isearch_reg_exp" );
action->setShortcutConfigurable( false );
- connect( action, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setRegExp(bool)) );
+ connect( action, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setRegExp(bool)) );
action->setChecked( m_regExp );
optionMenu->insert( action );
@@ -134,8 +134,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
// action = new TDEToggleAction(
// i18n("Auto-Wrap Search"), TDEShortcut(),
// actionCollection(), "isearch_auto_wrap" );
-// connect( action, TQT_SIGNAL(toggled(bool)),
-// this, TQT_SLOT(setAutoWrap(bool)) );
+// connect( action, TQ_SIGNAL(toggled(bool)),
+// this, TQ_SLOT(setAutoWrap(bool)) );
// action->setChecked( m_autoWrap );
// optionMenu->insert( action );
@@ -204,7 +204,7 @@ void ISearchPluginView::setAutoWrap( bool autoWrap )
bool ISearchPluginView::eventFilter( TQObject* o, TQEvent* e )
{
- if( TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(m_combo->lineEdit()) )
+ if( o != m_combo->lineEdit() )
return false;
if( e->type() == TQEvent::FocusIn ) {
@@ -225,7 +225,7 @@ bool ISearchPluginView::eventFilter( TQObject* o, TQEvent* e )
if( e->type() == TQEvent::KeyPress ) {
TQKeyEvent *keyEvent = (TQKeyEvent*)e;
- if( keyEvent->key() == Qt::Key_Escape )
+ if( keyEvent->key() == TQt::Key_Escape )
quitToView( TQString::null );
}
@@ -410,13 +410,13 @@ void ISearchPluginView::slotAddContextMenuItems( TQPopupMenu *menu )
if( menu ) {
menu->insertSeparator();
menu->insertItem( i18n("Case Sensitive"), this,
- TQT_SLOT(setCaseSensitive(bool)));
+ TQ_SLOT(setCaseSensitive(bool)));
menu->insertItem( i18n("From Beginning"), this,
- TQT_SLOT(setFromBeginning(bool)));
+ TQ_SLOT(setFromBeginning(bool)));
menu->insertItem( i18n("Regular Expression"), this,
- TQT_SLOT(setRegExp(bool)));
+ TQ_SLOT(setRegExp(bool)));
//menu->insertItem( i18n("Auto-Wrap Search"), this,
- // TQT_SLOT(setAutoWrap(bool)));
+ // TQ_SLOT(setAutoWrap(bool)));
}
}
diff --git a/kate/plugins/isearch/ISearchPlugin.h b/kate/plugins/isearch/ISearchPlugin.h
index b11b2a8b6..e1893c516 100644
--- a/kate/plugins/isearch/ISearchPlugin.h
+++ b/kate/plugins/isearch/ISearchPlugin.h
@@ -34,7 +34,7 @@ class TQLabel;
class ISearchPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
ISearchPlugin( TQObject *parent = 0, const char* name = 0, const TQStringList &args = TQStringList() );
@@ -49,7 +49,7 @@ private:
class ISearchPluginView : public TQObject, public KXMLGUIClient
{
- Q_OBJECT
+ TQ_OBJECT
public:
ISearchPluginView( KTextEditor::View *view );
diff --git a/kate/plugins/kdatatool/kate_kdatatool.cpp b/kate/plugins/kdatatool/kate_kdatatool.cpp
index e14cd9249..00edb8ced 100644
--- a/kate/plugins/kdatatool/kate_kdatatool.cpp
+++ b/kate/plugins/kdatatool/kate_kdatatool.cpp
@@ -76,7 +76,7 @@ KDataToolPluginView::KDataToolPluginView( KTextEditor::View *view )
setInstance( KGenericFactory<KDataToolPlugin>::instance() );
m_menu = new TDEActionMenu(i18n("Data Tools"), actionCollection(), "popup_dataTool");
- connect(m_menu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(aboutToShow()));
+ connect(m_menu->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(aboutToShow()));
setXMLFile("tdetexteditor_kdatatoolui.rc");
m_view = view;
@@ -151,7 +151,7 @@ void KDataToolPluginView::aboutToShow()
m_singleWord_line = line;
} else {
m_notAvailable = new TDEAction(i18n("(not available)"), TQString::null, 0, this,
- TQT_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
+ TQ_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
m_menu->insert(m_notAvailable);
return;
}
@@ -160,12 +160,12 @@ void KDataToolPluginView::aboutToShow()
TDEInstance *inst=instance();
TQValueList<KDataToolInfo> tools;
- tools += KDataToolInfo::query( TQSTRING_OBJECT_NAME_STRING, "text/plain", inst );
+ tools += KDataToolInfo::query( "TQString", "text/plain", inst );
if( m_singleWord )
- tools += KDataToolInfo::query( TQSTRING_OBJECT_NAME_STRING, "application/x-singleword", inst );
+ tools += KDataToolInfo::query( "TQString", "application/x-singleword", inst );
m_actionList = KDataToolAction::dataToolActionList( tools, this,
- TQT_SLOT( slotToolActivated( const KDataToolInfo &, const TQString & ) ) );
+ TQ_SLOT( slotToolActivated( const KDataToolInfo &, const TQString & ) ) );
for ( ac = m_actionList.first(); ac; ac = m_actionList.next() ) {
m_menu->insert(ac);
@@ -173,7 +173,7 @@ void KDataToolPluginView::aboutToShow()
if( m_actionList.isEmpty() ) {
m_notAvailable = new TDEAction(i18n("(not available)"), TQString::null, 0, this,
- TQT_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
+ TQ_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
m_menu->insert(m_notAvailable);
}
}
@@ -203,7 +203,7 @@ void KDataToolPluginView::slotToolActivated( const KDataToolInfo &info, const TQ
text = m_wordUnderCursor;
TQString mimetype = "text/plain";
- TQString datatype = TQSTRING_OBJECT_NAME_STRING;
+ TQString datatype = "TQString";
// If unsupported (and if we have a single word indeed), try application/x-singleword
if ( !info.mimeTypes().contains( mimetype ) && m_singleWord )
diff --git a/kate/plugins/kdatatool/kate_kdatatool.h b/kate/plugins/kdatatool/kate_kdatatool.h
index a217c6f27..b3ef86767 100644
--- a/kate/plugins/kdatatool/kate_kdatatool.h
+++ b/kate/plugins/kdatatool/kate_kdatatool.h
@@ -36,7 +36,7 @@ class View;
class KDataToolPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
{
- Q_OBJECT
+ TQ_OBJECT
public:
KDataToolPlugin( TQObject *parent = 0, const char* name = 0, const TQStringList &args = TQStringList() );
@@ -51,7 +51,7 @@ public:
class KDataToolPluginView : public TQObject, public KXMLGUIClient
{
- Q_OBJECT
+ TQ_OBJECT
public:
KDataToolPluginView( KTextEditor::View *view );
diff --git a/kate/plugins/wordcompletion/docwordcompletion.cpp b/kate/plugins/wordcompletion/docwordcompletion.cpp
index 793f9820c..83933bfce 100644
--- a/kate/plugins/wordcompletion/docwordcompletion.cpp
+++ b/kate/plugins/wordcompletion/docwordcompletion.cpp
@@ -146,15 +146,15 @@ DocWordCompletionPluginView::DocWordCompletionPluginView( uint treshold, bool au
setInstance( KGenericFactory<DocWordCompletionPlugin>::instance() );
(void) new TDEAction( i18n("Reuse Word Above"), CTRL+Key_8, this,
- TQT_SLOT(completeBackwards()), actionCollection(), "doccomplete_bw" );
+ TQ_SLOT(completeBackwards()), actionCollection(), "doccomplete_bw" );
(void) new TDEAction( i18n("Reuse Word Below"), CTRL+Key_9, this,
- TQT_SLOT(completeForwards()), actionCollection(), "doccomplete_fw" );
+ TQ_SLOT(completeForwards()), actionCollection(), "doccomplete_fw" );
(void) new TDEAction( i18n("Pop Up Completion List"), 0, this,
- TQT_SLOT(popupCompletionList()), actionCollection(), "doccomplete_pu" );
+ TQ_SLOT(popupCompletionList()), actionCollection(), "doccomplete_pu" );
(void) new TDEAction( i18n("Shell Completion"), 0, this,
- TQT_SLOT(shellComplete()), actionCollection(), "doccomplete_sh" );
+ TQ_SLOT(shellComplete()), actionCollection(), "doccomplete_sh" );
d->autopopup = new TDEToggleAction( i18n("Automatic Completion Popup"), 0, this,
- TQT_SLOT(toggleAutoPopup()), actionCollection(), "enable_autopopup" );
+ TQ_SLOT(toggleAutoPopup()), actionCollection(), "enable_autopopup" );
d->autopopup->setChecked( autopopup );
toggleAutoPopup();
@@ -168,8 +168,8 @@ DocWordCompletionPluginView::DocWordCompletionPluginView( uint treshold, bool au
if ( ! e.isEmpty() )
d->autopopup->setEnabled( e == "true" );
- connect( view->document(), TQT_SIGNAL(variableChanged(const TQString &, const TQString &)),
- this, TQT_SLOT(slotVariableChanged(const TQString &, const TQString &)) );
+ connect( view->document(), TQ_SIGNAL(variableChanged(const TQString &, const TQString &)),
+ this, TQ_SLOT(slotVariableChanged(const TQString &, const TQString &)) );
}
}
@@ -203,15 +203,15 @@ void DocWordCompletionPluginView::popupCompletionList( TQString w )
void DocWordCompletionPluginView::toggleAutoPopup()
{
if ( d->autopopup->isChecked() ) {
- if ( ! connect( m_view->document(), TQT_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
- this, TQT_SLOT(autoPopupCompletionList()) ))
+ if ( ! connect( m_view->document(), TQ_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
+ this, TQ_SLOT(autoPopupCompletionList()) ))
{
- connect( m_view->document(), TQT_SIGNAL(textChanged()), this, TQT_SLOT(autoPopupCompletionList()) );
+ connect( m_view->document(), TQ_SIGNAL(textChanged()), this, TQ_SLOT(autoPopupCompletionList()) );
}
} else {
- disconnect( m_view->document(), TQT_SIGNAL(textChanged()), this, TQT_SLOT(autoPopupCompletionList()) );
- disconnect( m_view->document(), TQT_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
- this, TQT_SLOT(autoPopupCompletionList()) );
+ disconnect( m_view->document(), TQ_SIGNAL(textChanged()), this, TQ_SLOT(autoPopupCompletionList()) );
+ disconnect( m_view->document(), TQ_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
+ this, TQ_SLOT(autoPopupCompletionList()) );
}
}
diff --git a/kate/plugins/wordcompletion/docwordcompletion.h b/kate/plugins/wordcompletion/docwordcompletion.h
index f22f99d4e..e2ff3cfb2 100644
--- a/kate/plugins/wordcompletion/docwordcompletion.h
+++ b/kate/plugins/wordcompletion/docwordcompletion.h
@@ -44,7 +44,7 @@ class DocWordCompletionPlugin
, public KTextEditor::PluginViewInterface
, public KTextEditor::ConfigInterfaceExtension
{
- Q_OBJECT
+ TQ_OBJECT
public:
DocWordCompletionPlugin( TQObject *parent = 0,
@@ -81,7 +81,7 @@ class DocWordCompletionPlugin
class DocWordCompletionPluginView
: public TQObject, public KXMLGUIClient
{
- Q_OBJECT
+ TQ_OBJECT
public:
DocWordCompletionPluginView( uint treshold=3, bool autopopup=true, KTextEditor::View *view=0,
@@ -113,7 +113,7 @@ class DocWordCompletionPluginView
class DocWordCompletionConfigPage : public KTextEditor::ConfigPage
{
- Q_OBJECT
+ TQ_OBJECT
public:
DocWordCompletionConfigPage( DocWordCompletionPlugin *completion, TQWidget *parent, const char *name );
virtual ~DocWordCompletionConfigPage() {};