summaryrefslogtreecommitdiffstats
path: root/quanta/treeviews/uploadtreeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/treeviews/uploadtreeview.cpp')
-rw-r--r--quanta/treeviews/uploadtreeview.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/quanta/treeviews/uploadtreeview.cpp b/quanta/treeviews/uploadtreeview.cpp
index 486a6156..250cc3a2 100644
--- a/quanta/treeviews/uploadtreeview.cpp
+++ b/quanta/treeviews/uploadtreeview.cpp
@@ -23,8 +23,8 @@
#include "uploadtreeview.h"
#include "quantacommon.h"
-UploadTreeView::UploadTreeView( TQWidget *parent, const char *name ) :
- KListView(parent, name)
+UploadTreeView::UploadTreeView( TQWidget *tqparent, const char *name ) :
+ KListView(tqparent, name)
{
setRootIsDecorated( true );
setSorting( 0 );
@@ -37,7 +37,7 @@ UploadTreeView::UploadTreeView( TQWidget *parent, const char *name ) :
addColumn( i18n("Size") );
addColumn( i18n("Date") );
- setFocusPolicy(TQWidget::ClickFocus);
+ setFocusPolicy(TQ_ClickFocus);
connect( this, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectFile()));
connect( this, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
@@ -52,12 +52,12 @@ UploadTreeView::~UploadTreeView()
int UploadTreeView::checkboxTree( TQListViewItem *it )
{
- parentWidget()->setCursor(KCursor::workingCursor());
+ tqparentWidget()->setCursor(KCursor::workingCursor());
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".
+ // bitFlag structure: (0/1)all tqchildren exist (0/1)no tqchildren exist.
+ // We don't need some tqchildren as a bit flag, because that's implied if the bits are "00".
int bitFlags = 3;
int retVal = 1;
@@ -73,17 +73,17 @@ int UploadTreeView::checkboxTree( TQListViewItem *it )
UploadTreeFolder *itF = static_cast<UploadTreeFolder *>(itIter);
if (hadCheckFlags == 2) {
- // All children exist.
+ // All tqchildren exist.
itF->setWhichPixmap( "check" );
itF->setSelected( true );
}
else if (hadCheckFlags == 1) {
- // No children exist.
+ // No tqchildren exist.
itF->setWhichPixmap( "check_clear" );
itF->setSelected( false );
}
else {
- // Some children exist.
+ // Some tqchildren exist.
itF->setWhichPixmap( "check_grey" );
itF->setSelected( true );
}
@@ -95,13 +95,13 @@ int UploadTreeView::checkboxTree( TQListViewItem *it )
if ( itF->isSelected() )
{
itF->setWhichPixmap("check");
- // Turn off "no children"
+ // Turn off "no tqchildren"
if ( bitFlags % 2 == 1 ) bitFlags -= 1;
}
else
{
itF->setWhichPixmap("check_clear");
- // Turn off "all children".
+ // Turn off "all tqchildren".
if (bitFlags >> 1 == 1) bitFlags -= 2;
}
@@ -127,7 +127,7 @@ int UploadTreeView::checkboxTree( TQListViewItem *it )
}
}
- parentWidget()->setCursor(KCursor::arrowCursor());
+ tqparentWidget()->setCursor(KCursor::arrowCursor());
return retVal;
}
@@ -162,22 +162,22 @@ void UploadTreeView::slotSelectFile( TQListViewItem *it )
if ( itF )
{
if (hadCheckFlags == 2) {
- // All children exist.
+ // All tqchildren exist.
itF->setWhichPixmap( "check" );
itF->setSelected( true );
}
else if (hadCheckFlags == 1) {
- // No children exist.
+ // No tqchildren exist.
itF->setWhichPixmap( "check_clear" );
itF->setSelected( false );
}
else {
- // Some children exist.
+ // Some tqchildren exist.
itF->setWhichPixmap( "check_grey" );
itF->setSelected( true );
}
- itF = itF->parentFolder;
+ itF = itF->tqparentFolder;
}
else
{
@@ -191,15 +191,15 @@ void UploadTreeView::slotSelectFile( TQListViewItem *it )
itFile->setWhichPixmap("check_clear");
itFile->setSelected(false);
}
- itF = itFile->parentFolder;
+ itF = itFile->tqparentFolder;
}
- //iterate through the item's parents and set the correct checkboxes for them
+ //iterate through the item's tqparents and set the correct checkboxes for them
while (itF)
{
bool hasSelected = false;
bool allSelected = true;
- //check if the item has any children's selected
+ //check if the item has any tqchildren's selected
TQListViewItemIterator iter(itF->firstChild());
while ( iter.current() && iter.current() != itF->nextSibling())
{
@@ -227,7 +227,7 @@ void UploadTreeView::slotSelectFile( TQListViewItem *it )
itF->setWhichPixmap( "check_clear" );
itF->setSelected( false );
}
- itF = itF->parentFolder;
+ itF = itF->tqparentFolder;
}
}
@@ -253,7 +253,7 @@ UploadTreeFolder* UploadTreeView::findFolder( UploadTreeFolder *it, const TQStri
return 0;
}
-UploadTreeFolder* UploadTreeView::printTree( UploadTreeFolder *it = 0,const TQString& indent = TQString::null )
+UploadTreeFolder* UploadTreeView::printTree( UploadTreeFolder *it = 0,const TQString& indent = TQString() )
{
TQListViewItem *itIter = 0;
if (it == 0) itIter = firstChild();
@@ -276,7 +276,7 @@ TQListViewItem* UploadTreeView::findItem(const TQString& path )
TQString item = path;
UploadTreeFolder *it = 0;
int i;
- while ( ( i = item.find('/') ) >= 0 )
+ while ( ( i = item.tqfind('/') ) >= 0 )
{
it = findFolder( it, item.left(i) );
if ( it == 0 )
@@ -306,7 +306,7 @@ UploadTreeFile* UploadTreeView::addItem(const KURL &a_url, const KFileItem& a_fi
uint col = 0;
UploadTreeFolder *it = 0;
KURL u;
- while ( ( i = item.find('/', col) ) >= 0 )
+ while ( ( i = item.tqfind('/', col) ) >= 0 )
{
if ( i!=0 )
{