summaryrefslogtreecommitdiffstats
path: root/khelpcenter/glossary.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:25 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:25 -0600
commit2c01fd64ddde84a6d78b632f7f3b7c3560dc288c (patch)
tree65f4f4370cf4269757d7fa4d0f4d15996a1bf68f /khelpcenter/glossary.cpp
parent73c08b592db45af554b9f21029bc549d70f683ab (diff)
downloadtdebase-2c01fd64ddde84a6d78b632f7f3b7c3560dc288c.tar.gz
tdebase-2c01fd64ddde84a6d78b632f7f3b7c3560dc288c.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 73c08b592db45af554b9f21029bc549d70f683ab.
Diffstat (limited to 'khelpcenter/glossary.cpp')
-rw-r--r--khelpcenter/glossary.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/khelpcenter/glossary.cpp b/khelpcenter/glossary.cpp
index dc596372e..46a9ce65b 100644
--- a/khelpcenter/glossary.cpp
+++ b/khelpcenter/glossary.cpp
@@ -49,7 +49,7 @@ class SectionItem : public KListViewItem
{
KListViewItem::setOpen(open);
- setPixmap( 0, SmallIcon( TQString::fromLatin1( open ? "contents" : "contents2" ) ) );
+ setPixmap( 0, SmallIcon( TQString::tqfromLatin1( open ? "contents" : "contents2" ) ) );
}
};
@@ -92,7 +92,7 @@ Glossary::Glossary( TQWidget *parent ) : KListView( parent )
m_cacheFile = locateLocal( "cache", "help/glossary.xml" );
- m_sourceFile = View::View::langLookup( TQString::fromLatin1( "khelpcenter/glossary/index.docbook" ) );
+ m_sourceFile = View::View::langLookup( TQString::tqfromLatin1( "khelpcenter/glossary/index.docbook" ) );
m_config = kapp->config();
m_config->setGroup( "Glossary" );
@@ -150,10 +150,10 @@ void Glossary::rebuildGlossaryCache()
connect( meinproc, TQT_SIGNAL( processExited( KProcess * ) ),
this, TQT_SLOT( meinprocExited( KProcess * ) ) );
- *meinproc << locate( "exe", TQString::fromLatin1( "meinproc" ) );
- *meinproc << TQString::fromLatin1( "--output" ) << m_cacheFile;
- *meinproc << TQString::fromLatin1( "--stylesheet" )
- << locate( "data", TQString::fromLatin1( "khelpcenter/glossary.xslt" ) );
+ *meinproc << locate( "exe", TQString::tqfromLatin1( "meinproc" ) );
+ *meinproc << TQString::tqfromLatin1( "--output" ) << m_cacheFile;
+ *meinproc << TQString::tqfromLatin1( "--stylesheet" )
+ << locate( "data", TQString::tqfromLatin1( "khelpcenter/glossary.xslt" ) );
*meinproc << m_sourceFile;
meinproc->start( KProcess::NotifyOnExit );
@@ -189,21 +189,21 @@ void Glossary::buildGlossaryTree()
if ( !doc.setContent( &cacheFile ) )
return;
- TQDomNodeList sectionNodes = doc.documentElement().elementsByTagName( TQString::fromLatin1( "section" ) );
+ TQDomNodeList sectionNodes = doc.documentElement().elementsByTagName( TQString::tqfromLatin1( "section" ) );
for ( unsigned int i = 0; i < sectionNodes.count(); i++ ) {
TQDomElement sectionElement = sectionNodes.item( i ).toElement();
- TQString title = sectionElement.attribute( TQString::fromLatin1( "title" ) );
+ TQString title = sectionElement.attribute( TQString::tqfromLatin1( "title" ) );
SectionItem *topicSection = new SectionItem( m_byTopicItem, title );
- TQDomNodeList entryNodes = sectionElement.elementsByTagName( TQString::fromLatin1( "entry" ) );
+ TQDomNodeList entryNodes = sectionElement.elementsByTagName( TQString::tqfromLatin1( "entry" ) );
for ( unsigned int j = 0; j < entryNodes.count(); j++ ) {
TQDomElement entryElement = entryNodes.item( j ).toElement();
- TQString entryId = entryElement.attribute( TQString::fromLatin1( "id" ) );
+ TQString entryId = entryElement.attribute( TQString::tqfromLatin1( "id" ) );
if ( entryId.isNull() )
continue;
- TQDomElement termElement = childElement( entryElement, TQString::fromLatin1( "term" ) );
+ TQDomElement termElement = childElement( entryElement, TQString::tqfromLatin1( "term" ) );
TQString term = termElement.text().simplifyWhiteSpace();
EntryItem *entry = new EntryItem(topicSection, term, entryId );
@@ -221,19 +221,19 @@ void Glossary::buildGlossaryTree()
new EntryItem( alphabSection, term, entryId );
- TQDomElement definitionElement = childElement( entryElement, TQString::fromLatin1( "definition" ) );
+ TQDomElement definitionElement = childElement( entryElement, TQString::tqfromLatin1( "definition" ) );
TQString definition = definitionElement.text().simplifyWhiteSpace();
GlossaryEntryXRef::List seeAlso;
- TQDomElement referencesElement = childElement( entryElement, TQString::fromLatin1( "references" ) );
- TQDomNodeList referenceNodes = referencesElement.elementsByTagName( TQString::fromLatin1( "reference" ) );
+ TQDomElement referencesElement = childElement( entryElement, TQString::tqfromLatin1( "references" ) );
+ TQDomNodeList referenceNodes = referencesElement.elementsByTagName( TQString::tqfromLatin1( "reference" ) );
if ( referenceNodes.count() > 0 )
for ( unsigned int k = 0; k < referenceNodes.count(); k++ ) {
TQDomElement referenceElement = referenceNodes.item( k ).toElement();
- TQString term = referenceElement.attribute( TQString::fromLatin1( "term" ) );
- TQString id = referenceElement.attribute( TQString::fromLatin1( "id" ) );
+ TQString term = referenceElement.attribute( TQString::tqfromLatin1( "term" ) );
+ TQString id = referenceElement.attribute( TQString::tqfromLatin1( "id" ) );
seeAlso += GlossaryEntryXRef( term, id );
}
@@ -279,10 +279,10 @@ TQString Glossary::entryToHtml( const GlossaryEntry &entry )
GlossaryEntryXRef::List::ConstIterator it = seeAlsos.begin();
GlossaryEntryXRef::List::ConstIterator end = seeAlsos.end();
for (; it != end; ++it) {
- seeAlso += TQString::fromLatin1("<a href=\"glossentry:");
+ seeAlso += TQString::tqfromLatin1("<a href=\"glossentry:");
seeAlso += (*it).id();
- seeAlso += TQString::fromLatin1("\">") + (*it).term();
- seeAlso += TQString::fromLatin1("</a>, ");
+ seeAlso += TQString::tqfromLatin1("\">") + (*it).term();
+ seeAlso += TQString::tqfromLatin1("</a>, ");
}
seeAlso = seeAlso.left(seeAlso.length() - 2);
}