summaryrefslogtreecommitdiffstats
path: root/khelpcenter/glossary.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 20:16:47 +0000
commit495d08bc2db58ee7fc4ea55a7158f2f61b82fc56 (patch)
treedaabcb652c07b9a17cad88ca50b63a2d91ead4a3 /khelpcenter/glossary.cpp
parent50001f1757f97510e80cb1990e2f2d5b00144c2a (diff)
downloadtdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.tar.gz
tdebase-495d08bc2db58ee7fc4ea55a7158f2f61b82fc56.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1211357 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khelpcenter/glossary.cpp')
-rw-r--r--khelpcenter/glossary.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/khelpcenter/glossary.cpp b/khelpcenter/glossary.cpp
index dc596372e..7aebdbea7 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" );
@@ -102,7 +102,7 @@ Glossary::Glossary( TQWidget *parent ) : KListView( parent )
void Glossary::show()
{
if ( !m_initialized ) {
- if ( cacheStatus() == NeedRebuild )
+ if ( cachetqStatus() == NeedRebuild )
rebuildGlossaryCache();
else
buildGlossaryTree();
@@ -122,7 +122,7 @@ const GlossaryEntry &Glossary::entry( const TQString &id ) const
return *m_glossEntries[ id ];
}
-Glossary::CacheStatus Glossary::cacheStatus() const
+Glossary::CachetqStatus Glossary::cachetqStatus() const
{
if ( !TQFile::exists( m_cacheFile ) ||
m_config->readPathEntry( "CachedGlossary" ) != m_sourceFile ||
@@ -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);
}