summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/uploadtreeview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/treeviews/uploadtreeview.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/treeviews/uploadtreeview.cpp')
-rw-r--r--quanta/treeviews/uploadtreeview.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/quanta/treeviews/uploadtreeview.cpp b/quanta/treeviews/uploadtreeview.cpp
index 75d0fa0c..486a6156 100644
--- a/quanta/treeviews/uploadtreeview.cpp
+++ b/quanta/treeviews/uploadtreeview.cpp
@@ -13,7 +13,7 @@
* *
***************************************************************************/
-#include <qregexp.h>
+#include <tqregexp.h>
#include <kcursor.h>
#include <klocale.h>
@@ -23,7 +23,7 @@
#include "uploadtreeview.h"
#include "quantacommon.h"
-UploadTreeView::UploadTreeView( QWidget *parent, const char *name ) :
+UploadTreeView::UploadTreeView( TQWidget *parent, const char *name ) :
KListView(parent, name)
{
setRootIsDecorated( true );
@@ -37,24 +37,24 @@ UploadTreeView::UploadTreeView( QWidget *parent, const char *name ) :
addColumn( i18n("Size") );
addColumn( i18n("Date") );
- setFocusPolicy(QWidget::ClickFocus);
+ setFocusPolicy(TQWidget::ClickFocus);
- connect( this, SIGNAL(selectionChanged()), SLOT(slotSelectFile()));
- connect( this, SIGNAL(selectionChanged(QListViewItem *)),
- this, SLOT(slotSelectFile(QListViewItem *)));
+ connect( this, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectFile()));
+ connect( this, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ this, TQT_SLOT(slotSelectFile(TQListViewItem *)));
- connect(this, SIGNAL(doubleClicked(QListViewItem *, const QPoint &, int )), SLOT(slotDoubleClicked(QListViewItem *, const QPoint &, int )));
+ connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int )), TQT_SLOT(slotDoubleClicked(TQListViewItem *, const TQPoint &, int )));
}
UploadTreeView::~UploadTreeView()
{
}
-int UploadTreeView::checkboxTree( QListViewItem *it )
+int UploadTreeView::checkboxTree( TQListViewItem *it )
{
parentWidget()->setCursor(KCursor::workingCursor());
- QListViewItem *itIter = it ? it->firstChild() : firstChild();
+ TQListViewItem *itIter = it ? it->firstChild() : firstChild();
// bitFlag structure: (0/1)all children exist (0/1)no children exist.
// We don't need some children as a bit flag, because that's implied if the bits are "00".
@@ -132,9 +132,9 @@ int UploadTreeView::checkboxTree( QListViewItem *it )
return retVal;
}
-void UploadTreeView::selectAllUnderNode( QListViewItem* it, bool select )
+void UploadTreeView::selectAllUnderNode( TQListViewItem* it, bool select )
{
- QListViewItem *itIter = 0;
+ TQListViewItem *itIter = 0;
if (it == 0) itIter = firstChild();
else itIter = it->firstChild();
@@ -147,7 +147,7 @@ void UploadTreeView::selectAllUnderNode( QListViewItem* it, bool select )
}
}
-void UploadTreeView::slotSelectFile( QListViewItem *it )
+void UploadTreeView::slotSelectFile( TQListViewItem *it )
{
UploadTreeFolder *itF = dynamic_cast<UploadTreeFolder *>(it);
// This need a bit of special behavior for clicking on directories.
@@ -200,7 +200,7 @@ void UploadTreeView::slotSelectFile( QListViewItem *it )
bool hasSelected = false;
bool allSelected = true;
//check if the item has any children's selected
- QListViewItemIterator iter(itF->firstChild());
+ TQListViewItemIterator iter(itF->firstChild());
while ( iter.current() && iter.current() != itF->nextSibling())
{
if ( iter.current()->isSelected() )
@@ -237,9 +237,9 @@ void UploadTreeView::slotSelectFile( )
}
//TODO: This should search based on url's rather than on text(0)
-UploadTreeFolder* UploadTreeView::findFolder( UploadTreeFolder *it, const QString& folderName )
+UploadTreeFolder* UploadTreeView::findFolder( UploadTreeFolder *it, const TQString& folderName )
{
- QListViewItem *itIter = 0;
+ TQListViewItem *itIter = 0;
if (it == 0) itIter = firstChild();
else itIter = it->firstChild();
@@ -253,9 +253,9 @@ UploadTreeFolder* UploadTreeView::findFolder( UploadTreeFolder *it, const QStrin
return 0;
}
-UploadTreeFolder* UploadTreeView::printTree( UploadTreeFolder *it = 0,const QString& indent = QString::null )
+UploadTreeFolder* UploadTreeView::printTree( UploadTreeFolder *it = 0,const TQString& indent = TQString::null )
{
- QListViewItem *itIter = 0;
+ TQListViewItem *itIter = 0;
if (it == 0) itIter = firstChild();
else itIter = it->firstChild();
@@ -271,9 +271,9 @@ UploadTreeFolder* UploadTreeView::printTree( UploadTreeFolder *it = 0,const QStr
// :NOTE: AFAIK, safe to use only if you are sure the item searched for
// is already in here. It might be safe otherwise, but use at your own
// peril.
-QListViewItem* UploadTreeView::findItem(const QString& path )
+TQListViewItem* UploadTreeView::findItem(const TQString& path )
{
- QString item = path;
+ TQString item = path;
UploadTreeFolder *it = 0;
int i;
while ( ( i = item.find('/') ) >= 0 )
@@ -284,7 +284,7 @@ QListViewItem* UploadTreeView::findItem(const QString& path )
item.remove(0,i+1);
}
- QListViewItem *itIter = 0;
+ TQListViewItem *itIter = 0;
if ( it == 0 ) itIter = firstChild();
else itIter = it->firstChild();
@@ -300,8 +300,8 @@ QListViewItem* UploadTreeView::findItem(const QString& path )
UploadTreeFile* UploadTreeView::addItem(const KURL &a_url, const KFileItem& a_fileItem)
{
- QString item = a_url.path(); //TODO: do with real KURL's
- QString fname = item;
+ TQString item = a_url.path(); //TODO: do with real KURL's
+ TQString fname = item;
int i;
uint col = 0;
UploadTreeFolder *it = 0;
@@ -345,9 +345,9 @@ UploadTreeFile* UploadTreeView::addItem(const KURL &a_url, const KFileItem& a_fi
return file;
}
-void UploadTreeView::expandAll( QListViewItem *it )
+void UploadTreeView::expandAll( TQListViewItem *it )
{
- QListViewItem *itIter = it;
+ TQListViewItem *itIter = it;
if (it == 0) itIter = firstChild();
else itIter = it->firstChild();
@@ -361,9 +361,9 @@ void UploadTreeView::expandAll( QListViewItem *it )
}
}
-void UploadTreeView::collapseAll( QListViewItem *it )
+void UploadTreeView::collapseAll( TQListViewItem *it )
{
- QListViewItem *itIter = it;
+ TQListViewItem *itIter = it;
if (it == 0) itIter = firstChild();
else itIter = it->firstChild();
@@ -377,9 +377,9 @@ void UploadTreeView::collapseAll( QListViewItem *it )
}
}
-void UploadTreeView::invertAll( QListViewItem *it )
+void UploadTreeView::invertAll( TQListViewItem *it )
{
- QListViewItem *itIter = it;
+ TQListViewItem *itIter = it;
if (it == 0) itIter = firstChild();
else itIter = it->firstChild();
@@ -400,7 +400,7 @@ void UploadTreeView::invertAll( QListViewItem *it )
void UploadTreeView::selectAll( bool select )
{
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
for ( ; it.current(); ++it )
{
@@ -418,9 +418,9 @@ void UploadTreeView::selectAll( bool select )
/** No descriptions */
-QListViewItem* UploadTreeView::itemByUrl(const KURL& a_url)
+TQListViewItem* UploadTreeView::itemByUrl(const KURL& a_url)
{
- QListViewItemIterator it(this);
+ TQListViewItemIterator it(this);
UploadTreeFile *fileItem;
UploadTreeFolder *folderItem;
KURL url;
@@ -443,7 +443,7 @@ QListViewItem* UploadTreeView::itemByUrl(const KURL& a_url)
return 0L;
}
-void UploadTreeView::slotDoubleClicked(QListViewItem *item, const QPoint &, int )
+void UploadTreeView::slotDoubleClicked(TQListViewItem *item, const TQPoint &, int )
{
item->setOpen(!item->isOpen());
}