summaryrefslogtreecommitdiffstats
path: root/kate/part/kateschema.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-16 02:40:35 +0000
commitbab40890696ec68c337dc290880423a0602b83c7 (patch)
tree6ba03f720b1fa88235ba339e7aedb4455430357e /kate/part/kateschema.cpp
parentf7e71d47719ab6094cf4a9fafffa5ea351973522 (diff)
downloadtdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz
tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/part/kateschema.cpp')
-rw-r--r--kate/part/kateschema.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kate/part/kateschema.cpp b/kate/part/kateschema.cpp
index 76e187c8c..307caec09 100644
--- a/kate/part/kateschema.cpp
+++ b/kate/part/kateschema.cpp
@@ -80,7 +80,7 @@
This widget is designed to work with the KateStyleListView class exclusively.
Added by anders, jan 23 2002.
*/
-class KateStyleListItem : public QListViewItem
+class KateStyleListItem : public TQListViewItem
{
public:
KateStyleListItem( TQListViewItem *parent=0, const TQString & stylename=0,
@@ -141,7 +141,7 @@ class KateStyleListItem : public QListViewItem
to use our own palette (that is set on the viewport rather than on the listview
itself).
*/
-class KateStyleListCaption : public QListViewItem
+class KateStyleListCaption : public TQListViewItem
{
public:
KateStyleListCaption( TQListView *parent, const TQString & name );
@@ -244,7 +244,7 @@ uint KateSchemaManager::number (const TQString &name)
return 1;
int i;
- if ((i = m_schemas.findIndex(name)) > -1)
+ if ((i = m_schemas.tqfindIndex(name)) > -1)
return i;
return 0;
@@ -416,7 +416,7 @@ void KateSchemaConfigColorTab::schemaChanged ( int newSchema )
m_linenumber->disconnect( TQT_SIGNAL( changed( const TQColor & ) ) );
// If we havent this schema, read in from config file
- if ( ! m_schemas.contains( newSchema ) )
+ if ( ! m_schemas.tqcontains( newSchema ) )
{
// fallback defaults
TQColor tmp0 (KGlobalSettings::baseColor());
@@ -746,7 +746,7 @@ void KateSchemaConfigHighlightTab::schemaChanged (uint schema)
m_hlDict[m_schema]->setAutoDelete (true);
}
- if (!m_hlDict[m_schema]->find(m_hl))
+ if (!m_hlDict[m_schema]->tqfind(m_hl))
{
kdDebug(13030) << "NEW HL, create list" << endl;
@@ -775,9 +775,9 @@ void KateSchemaConfigHighlightTab::schemaChanged (uint schema)
m_styles->viewport()->setPalette( p );
TQDict<KateStyleListCaption> prefixes;
- for ( KateHlItemData *itemData = m_hlDict[m_schema]->find(m_hl)->last();
+ for ( KateHlItemData *itemData = m_hlDict[m_schema]->tqfind(m_hl)->last();
itemData != 0L;
- itemData = m_hlDict[m_schema]->find(m_hl)->prev())
+ itemData = m_hlDict[m_schema]->tqfind(m_hl)->prev())
{
kdDebug(13030) << "insert items " << itemData->name << endl;
@@ -969,7 +969,7 @@ void KateSchemaConfigPage::newSchema ()
// soft update, no load from disk
KateFactory::self()->schemaManager()->update (false);
- int i = KateFactory::self()->schemaManager()->list ().findIndex (t);
+ int i = KateFactory::self()->schemaManager()->list ().tqfindIndex (t);
update ();
if (i > -1)
@@ -1021,7 +1021,7 @@ void KateViewSchemaAction::slotAboutToShow()
{
TQString hlName = KateFactory::self()->schemaManager()->list().operator[](z);
- if (names.contains(hlName) < 1)
+ if (names.tqcontains(hlName) < 1)
{
names << hlName;
popupMenu()->insertItem ( hlName, this, TQT_SLOT(setSchema(int)), 0, z+1);