diff options
Diffstat (limited to 'kate/part/katehighlight.cpp')
-rw-r--r-- | kate/part/katehighlight.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
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); } } } |