summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/docfolder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/treeviews/docfolder.cpp')
-rw-r--r--quanta/treeviews/docfolder.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/quanta/treeviews/docfolder.cpp b/quanta/treeviews/docfolder.cpp
index 02669a1e..0a1d941d 100644
--- a/quanta/treeviews/docfolder.cpp
+++ b/quanta/treeviews/docfolder.cpp
@@ -16,8 +16,8 @@
***************************************************************************/
// QT includes
-#include <qstrlist.h>
-#include <qpixmap.h>
+#include <tqstrlist.h>
+#include <tqpixmap.h>
// KDE includes
#include <kconfig.h>
@@ -28,14 +28,14 @@
#include "docfolder.h"
#include "docitem.h"
-DocFolder::DocFolder(QListViewItem *parent, const QString &_name, KConfig *config, const QString &basePath)
+DocFolder::DocFolder(TQListViewItem *parent, const TQString &_name, KConfig *config, const TQString &basePath)
: KListViewItem(parent)
{
name = _name;
topLevel = false;
url = "";
- QStrList list;
+ TQStrList list;
config->readListEntry( name, list );
@@ -43,14 +43,14 @@ DocFolder::DocFolder(QListViewItem *parent, const QString &_name, KConfig *confi
for ( list.last(); ( item = list.current() ) ; list.prev() ) {
if ( item[0] != '#' ) {
- QString url = config->readEntry( item );
- DocItem *el = new DocItem( this, QString(item), basePath+url);
+ TQString url = config->readEntry( item );
+ DocItem *el = new DocItem( this, TQString(item), basePath+url);
el->setPixmap( 0, SmallIcon("info") );
} else
if ( item[0] == '#' ) { // current item is folder
item++; // remove leading #
- QString l_url = config->readEntry( QString("folder_")+item, "" );
- DocFolder *el = new DocFolder(this, QString(item), config, basePath);
+ TQString l_url = config->readEntry( TQString("folder_")+item, "" );
+ DocFolder *el = new DocFolder(this, TQString(item), config, basePath);
if ( ! l_url.isEmpty() )
el->url = basePath+l_url;
el->setPixmap( 0, UserIcon("mini-book1") );
@@ -59,13 +59,13 @@ DocFolder::DocFolder(QListViewItem *parent, const QString &_name, KConfig *confi
}
}
-DocFolder::DocFolder(QListView *parent, const QString &_name, KConfig *config, const QString &basePath)
+DocFolder::DocFolder(TQListView *parent, const TQString &_name, KConfig *config, const TQString &basePath)
: KListViewItem(parent)
{
name = _name;
topLevel = false;
url = "";
- QStrList list;
+ TQStrList list;
config->readListEntry( name, list );
@@ -73,14 +73,14 @@ DocFolder::DocFolder(QListView *parent, const QString &_name, KConfig *config, c
for ( list.last(); ( item = list.current() ) ; list.prev() ) {
if ( item[0] != '#' ) {
- QString url = config->readEntry( item );
- DocItem *el = new DocItem( this, QString(item), basePath+url);
+ TQString url = config->readEntry( item );
+ DocItem *el = new DocItem( this, TQString(item), basePath+url);
el->setPixmap( 0, SmallIcon("info") );
} else
if ( item[0] == '#' ) { // current item is folder
item++; // remove leading #
- QString l_url = config->readEntry( QString("folder_")+item, "" );
- DocFolder *el = new DocFolder(this, QString(item), config, basePath);
+ TQString l_url = config->readEntry( TQString("folder_")+item, "" );
+ DocFolder *el = new DocFolder(this, TQString(item), config, basePath);
if ( ! l_url.isEmpty() )
el->url = basePath+l_url;
el->setPixmap( 0, UserIcon("mini-book1") );
@@ -95,7 +95,7 @@ DocFolder::~DocFolder(){
}
-QString DocFolder::text( int i) const
+TQString DocFolder::text( int i) const
{
if (i == 0)
return name;
@@ -106,12 +106,12 @@ QString DocFolder::text( int i) const
void DocFolder::setup()
{
setExpandable( true );
- QListViewItem::setup();
+ TQListViewItem::setup();
}
/** */
void DocFolder::setOpen( bool o)
{
- QListViewItem::setOpen( o );
+ TQListViewItem::setOpen( o );
if ( !topLevel ) {
if (o)
setPixmap( 0, UserIcon("mini-book2") );