Revert "Rename a number of old tq methods that are no longer tq specific"

This reverts commit 5f20b2e679.
pull/1/head
Timothy Pearson 13 years ago
parent 5f20b2e679
commit 9b21afd056

@ -79,7 +79,7 @@ MainWindow::setupActions() //singleton function
m_combo = new KHistoryCombo( this, "history_combo" ); m_combo = new KHistoryCombo( this, "history_combo" );
m_combo->setCompletionObject( new KURLCompletion( KURLCompletion::DirCompletion ) ); m_combo->setCompletionObject( new KURLCompletion( KURLCompletion::DirCompletion ) );
m_combo->setAutoDeleteCompletionObject( true ); m_combo->setAutoDeleteCompletionObject( true );
m_combo->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); m_combo->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ) );
m_combo->setDuplicatesEnabled( false ); m_combo->setDuplicatesEnabled( false );
KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT(slotScanDirectory()), ac, "scan_directory" ); KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT(slotScanDirectory()), ac, "scan_directory" );
@ -260,7 +260,7 @@ void setActionMenuTextOnly( KAction *a, TQString const &suffix )
{ {
TQString const menu_text = suffix.isEmpty() TQString const menu_text = suffix.isEmpty()
? a->text() ? a->text()
: i18n( "&Up: /home/mxcl", "%1: %2" ).arg( a->text(), suffix ); : i18n( "&Up: /home/mxcl", "%1: %2" ).tqarg( a->text(), suffix );
for (int i = 0; i < a->containerCount(); ++i) { for (int i = 0; i < a->containerCount(); ++i) {
TQWidget *w = a->container( i ); TQWidget *w = a->container( i );

@ -72,7 +72,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout4</cstring> <cstring>tqlayout4</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -88,7 +88,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>180</width> <width>180</width>
<height>21</height> <height>21</height>
@ -129,7 +129,7 @@
<property name="name"> <property name="name">
<cstring>line1</cstring> <cstring>line1</cstring>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>15</height> <height>15</height>
@ -153,7 +153,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout7</cstring> <cstring>tqlayout7</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">
@ -169,7 +169,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>16</width> <width>16</width>
<height>50</height> <height>50</height>
@ -183,13 +183,13 @@
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="tqmaximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -277,7 +277,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout10</cstring> <cstring>tqlayout10</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -331,7 +331,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout10</cstring> <cstring>tqlayout10</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -356,7 +356,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout9</cstring> <cstring>tqlayout9</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -372,7 +372,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Fixed</enum> <enum>Fixed</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -414,7 +414,7 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="minimumSize"> <property name="tqminimumSize">
<size> <size>
<width>80</width> <width>80</width>
<height>0</height> <height>0</height>
@ -450,7 +450,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>layout6</cstring> <cstring>tqlayout6</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -480,7 +480,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="sizeHint"> <property name="tqsizeHint">
<size> <size>
<width>120</width> <width>120</width>
<height>30</height> <height>30</height>

@ -197,9 +197,9 @@ private:
class Directory : public Chain<File>, public File class Directory : public Chain<File>, public File
{ {
public: public:
Directory( const char *name ) : File( name, 0 ), m_children( 0 ) {} //DON'T pass the full path! Directory( const char *name ) : File( name, 0 ), m_tqchildren( 0 ) {} //DON'T pass the full path!
uint children() const { return m_children; } uint tqchildren() const { return m_tqchildren; }
virtual bool isDirectory() const { return true; } virtual bool isDirectory() const { return true; }
///appends a Directory ///appends a Directory
@ -209,7 +209,7 @@ public:
delete [] d->m_name; delete [] d->m_name;
d->m_name = qstrdup( name ); } //directories that had a fullpath copy just their names this way d->m_name = qstrdup( name ); } //directories that had a fullpath copy just their names this way
m_children += d->children(); //doesn't include the dir itself m_tqchildren += d->tqchildren(); //doesn't include the dir itself
d->m_parent = this; d->m_parent = this;
append( (File*)d ); //will add 1 to filecount for the dir itself append( (File*)d ); //will add 1 to filecount for the dir itself
} }
@ -223,12 +223,12 @@ public:
private: private:
void append( File *p ) void append( File *p )
{ {
m_children++; m_tqchildren++;
m_size += p->size(); m_size += p->size();
Chain<File>::append( p ); Chain<File>::append( p );
} }
uint m_children; uint m_tqchildren;
private: private:
Directory( const Directory& ); //undefined Directory( const Directory& ); //undefined

@ -216,7 +216,7 @@ namespace Filelight
{ {
debug() << "Tree pre-completed: " << (*it)->name() << "\n"; debug() << "Tree pre-completed: " << (*it)->name() << "\n";
d = it.remove(); d = it.remove();
ScanManager::s_files += d->children(); ScanManager::s_files += d->tqchildren();
//**** ideally don't have this redundant extra somehow //**** ideally don't have this redundant extra somehow
cwd->append( d, new_dirname ); cwd->append( d, new_dirname );
} }

@ -70,7 +70,7 @@ Part::Part( TQWidget *parentWidget, const char *widgetName, TQObject *parent, co
connect( m_map, TQT_SIGNAL(giveMeTreeFor( const KURL& )), TQT_SLOT(openURL( const KURL& )) ); connect( m_map, TQT_SIGNAL(giveMeTreeFor( const KURL& )), TQT_SLOT(openURL( const KURL& )) );
connect( m_manager, TQT_SIGNAL(completed( Directory* )), TQT_SLOT(scanCompleted( Directory* )) ); connect( m_manager, TQT_SIGNAL(completed( Directory* )), TQT_SLOT(scanCompleted( Directory* )) );
connect( m_manager, TQT_SIGNAL(aboutToEmptyCache()), m_map, TQT_SLOT(invalidate()) ); connect( m_manager, TQT_SIGNAL(aboutToEmptyCache()), m_map, TQT_SLOT(tqinvalidate()) );
TQTimer::singleShot( 0, this, TQT_SLOT(postInit()) ); TQTimer::singleShot( 0, this, TQT_SLOT(postInit()) );
} }
@ -119,15 +119,15 @@ Part::openURL( const KURL &u )
} }
else if( path[0] != '/' ) else if( path[0] != '/' )
{ {
KMSG( i18n( "Filelight only accepts absolute paths, eg. /%1" ).arg( path ) ); KMSG( i18n( "Filelight only accepts absolute paths, eg. /%1" ).tqarg( path ) );
} }
else if( isLocal && access( path8bit, F_OK ) != 0 ) //stat( path, &statbuf ) == 0 else if( isLocal && access( path8bit, F_OK ) != 0 ) //stat( path, &statbuf ) == 0
{ {
KMSG( i18n( "Directory not found: %1" ).arg( path ) ); KMSG( i18n( "Directory not found: %1" ).tqarg( path ) );
} }
else if( isLocal && access( path8bit, R_OK | X_OK ) != 0 ) else if( isLocal && access( path8bit, R_OK | X_OK ) != 0 )
{ {
KMSG( i18n( "Unable to enter: %1\nYou do not have access rights to this location." ).arg( path ) ); KMSG( i18n( "Unable to enter: %1\nYou do not have access rights to this location." ).tqarg( path ) );
} }
else else
{ {
@ -192,12 +192,12 @@ Part::start( const KURL &url )
if( m_manager->start( url ) ) { if( m_manager->start( url ) ) {
m_url = url; m_url = url;
const TQString s = i18n( "Scanning: %1" ).arg( prettyURL() ); const TQString s = i18n( "Scanning: %1" ).tqarg( prettyURL() );
stateChanged( "scan_started" ); stateChanged( "scan_started" );
emit started( 0 ); //as a Part, we have to do this emit started( 0 ); //as a Part, we have to do this
emit setWindowCaption( s ); emit setWindowCaption( s );
statusBar()->message( s ); statusBar()->message( s );
m_map->invalidate(); //to maintain ui consistency m_map->tqinvalidate(); //to maintain ui consistency
return true; return true;
} }
@ -209,7 +209,7 @@ void
Part::rescan() Part::rescan()
{ {
//FIXME we have to empty the cache because otherwise rescan picks up the old tree.. //FIXME we have to empty the cache because otherwise rescan picks up the old tree..
m_manager->emptyCache(); //causes canvas to invalidate m_manager->emptyCache(); //causes canvas to tqinvalidate
start( m_url ); start( m_url );
} }
@ -226,7 +226,7 @@ Part::scanCompleted( Directory *tree )
} }
else { else {
stateChanged( "scan_failed" ); stateChanged( "scan_failed" );
emit canceled( i18n( "Scan failed: %1" ).arg( prettyURL() ) ); emit canceled( i18n( "Scan failed: %1" ).tqarg( prettyURL() ) );
emit setWindowCaption( TQString() ); emit setWindowCaption( TQString() );
statusBar()->clear(); statusBar()->clear();
@ -246,7 +246,7 @@ Part::mapChanged( const Directory *tree )
ProgressBox *progress = static_cast<ProgressBox *>(TQT_TQWIDGET(statusBar()->child( "ProgressBox" ))); ProgressBox *progress = static_cast<ProgressBox *>(TQT_TQWIDGET(statusBar()->child( "ProgressBox" )));
if( progress ) if( progress )
progress->setText( tree->children() ); progress->setText( tree->tqchildren() );
} }
} //namespace Filelight } //namespace Filelight

@ -15,12 +15,12 @@ ProgressBox::ProgressBox( TQWidget *parent, TQObject *part )
{ {
hide(); hide();
setAlignment( TQt::AlignCenter ); tqsetAlignment( TQt::AlignCenter );
setFont( KGlobalSettings::fixedFont() ); setFont( KGlobalSettings::fixedFont() );
setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ); tqsetSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed );
setText( 999999 ); setText( 999999 );
setMinimumWidth( sizeHint().width() ); setMinimumWidth( tqsizeHint().width() );
connect( &m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(report()) ); connect( &m_timer, TQT_SIGNAL(timeout()), TQT_SLOT(report()) );
connect( part, TQT_SIGNAL(started( KIO::Job* )), TQT_SLOT(start()) ); connect( part, TQT_SIGNAL(started( KIO::Job* )), TQT_SLOT(start()) );

@ -40,7 +40,7 @@ RadialMap::Builder::Builder( RadialMap::Map *m, const Directory* const d, bool f
void void
RadialMap::Builder::findVisibleDepth( const Directory* const dir, const unsigned int depth ) RadialMap::Builder::findVisibleDepth( const Directory* const dir, const unsigned int depth )
{ {
//**** because I don't use the same minimumSize criteria as in the visual function //**** because I don't use the same tqminimumSize criteria as in the visual function
// this can lead to incorrect visual representation // this can lead to incorrect visual representation
//**** BUT, you can't set those limits until you know m_depth! //**** BUT, you can't set those limits until you know m_depth!
@ -84,7 +84,7 @@ RadialMap::Builder::build( const Directory* const dir, const unsigned int depth,
{ {
//first iteration: dir == m_root //first iteration: dir == m_root
if( dir->children() == 0 ) //we do fileCount rather than size to avoid chance of divide by zero later if( dir->tqchildren() == 0 ) //we do fileCount rather than size to avoid chance of divide by zero later
return false; return false;
uint hiddenSize = 0, hiddenFileCount = 0; uint hiddenSize = 0, hiddenFileCount = 0;
@ -116,13 +116,13 @@ RadialMap::Builder::build( const Directory* const dir, const unsigned int depth,
hiddenSize += (*it)->size(); hiddenSize += (*it)->size();
if( (*it)->isDirectory() ) //**** considered virtual, but dir wouldn't count itself! if( (*it)->isDirectory() ) //**** considered virtual, but dir wouldn't count itself!
hiddenFileCount += static_cast<const Directory*>(*it)->children(); //need to add one to count the dir as well hiddenFileCount += static_cast<const Directory*>(*it)->tqchildren(); //need to add one to count the dir as well
++hiddenFileCount; ++hiddenFileCount;
} }
} }
if( hiddenFileCount == dir->children() && !Config::showSmallFiles ) if( hiddenFileCount == dir->tqchildren() && !Config::showSmallFiles )
return true; return true;
else if( (Config::showSmallFiles && hiddenSize > m_limits[depth]) || (depth == 0 && (hiddenSize > dir->size()/8)) /*|| > size() * 0.75*/ ) else if( (Config::showSmallFiles && hiddenSize > m_limits[depth]) || (depth == 0 && (hiddenSize > dir->size()/8)) /*|| > size() * 0.75*/ )
@ -131,8 +131,8 @@ RadialMap::Builder::build( const Directory* const dir, const unsigned int depth,
// I dunno how to i18n this // I dunno how to i18n this
const TQString s = i18n( "There can't ever be only 1 file", "%1 files, each about %2" ) const TQString s = i18n( "There can't ever be only 1 file", "%1 files, each about %2" )
.arg( hiddenFileCount ) .tqarg( hiddenFileCount )
.arg( File::humanReadableSize( hiddenSize/hiddenFileCount ) ); .tqarg( File::humanReadableSize( hiddenSize/hiddenFileCount ) );
(m_signature + depth)->append( new Segment( new File( s.local8Bit(), hiddenSize ), a_start, a_end - a_start, true ) ); (m_signature + depth)->append( new Segment( new File( s.local8Bit(), hiddenSize ), a_start, a_end - a_start, true ) );
} }

@ -39,7 +39,7 @@ RadialMap::Map::~Map()
} }
void void
RadialMap::Map::invalidate( const bool desaturateTheImage ) RadialMap::Map::tqinvalidate( const bool desaturateTheImage )
{ {
DEBUG_ANNOUNCE DEBUG_ANNOUNCE
@ -193,7 +193,7 @@ RadialMap::Map::colorise()
case 2000: //HACK for summary view case 2000: //HACK for summary view
if( (*it)->file()->name() == "Used" ) { if( (*it)->file()->name() == "Used" ) {
cb = TQApplication::palette().active().color( TQColorGroup::Highlight ); cb = TQApplication::tqpalette().active().color( TQColorGroup::Highlight );
cb.getHsv( &h, &s1, &v1 ); cb.getHsv( &h, &s1, &v1 );
if( s1 > 80 ) if( s1 > 80 )

@ -113,7 +113,7 @@ SegmentTip::updateTip( const File* const file, const Directory* const root )
uint maxw = 0; uint maxw = 0;
uint h = fontMetrics().height()*2 + 2*MARGIN; uint h = fontMetrics().height()*2 + 2*MARGIN;
if( pc > 0 ) s2 += TQString( " (%1%)" ).arg( loc->formatNumber( pc, 0 ) ); if( pc > 0 ) s2 += TQString( " (%1%)" ).tqarg( loc->formatNumber( pc, 0 ) );
m_text = s1; m_text = s1;
m_text += '\n'; m_text += '\n';
@ -121,11 +121,11 @@ SegmentTip::updateTip( const File* const file, const Directory* const root )
if( file->isDirectory() ) if( file->isDirectory() )
{ {
double files = static_cast<const Directory*>(file)->children(); double files = static_cast<const Directory*>(file)->tqchildren();
const uint pc = uint((100 * files) / (double)root->children()); const uint pc = uint((100 * files) / (double)root->tqchildren());
TQString s3 = i18n( "Files: %1" ).arg( loc->formatNumber( files, 0 ) ); TQString s3 = i18n( "Files: %1" ).tqarg( loc->formatNumber( files, 0 ) );
if( pc > 0 ) s3 += TQString( " (%1%)" ).arg( loc->formatNumber( pc, 0 ) ); if( pc > 0 ) s3 += TQString( " (%1%)" ).tqarg( loc->formatNumber( pc, 0 ) );
maxw = fontMetrics().width( s3 ); maxw = fontMetrics().width( s3 );
h += fontMetrics().height(); h += fontMetrics().height();

@ -46,11 +46,11 @@ RadialMap::Widget::url( File const * const file ) const
} }
void void
RadialMap::Widget::invalidate( const bool b ) RadialMap::Widget::tqinvalidate( const bool b )
{ {
if( isValid() ) if( isValid() )
{ {
//**** have to check that only way to invalidate is this function frankly //**** have to check that only way to tqinvalidate is this function frankly
//**** otherwise you may get bugs.. //**** otherwise you may get bugs..
//disable mouse tracking //disable mouse tracking
@ -65,7 +65,7 @@ RadialMap::Widget::invalidate( const bool b )
//FIXME move this disablement thing no? //FIXME move this disablement thing no?
// it is confusing in other areas, like the whole createFromCache() thing // it is confusing in other areas, like the whole createFromCache() thing
m_map.invalidate( b ); //b signifies whether the pixmap is made to look disabled or not m_map.tqinvalidate( b ); //b signifies whether the pixmap is made to look disabled or not
if( b ) if( b )
update(); update();
@ -77,10 +77,10 @@ RadialMap::Widget::invalidate( const bool b )
void void
RadialMap::Widget::create( const Directory *tree ) RadialMap::Widget::create( const Directory *tree )
{ {
//it is not the responsibility of create() to invalidate first //it is not the responsibility of create() to tqinvalidate first
//skip invalidation at your own risk //skip invalidation at your own risk
//FIXME make it the responsibility of create to invalidate first //FIXME make it the responsibility of create to tqinvalidate first
if( tree ) if( tree )
{ {
@ -102,8 +102,8 @@ RadialMap::Widget::create( const Directory *tree )
void void
RadialMap::Widget::createFromCache( const Directory *tree ) RadialMap::Widget::createFromCache( const Directory *tree )
{ {
//no scan was necessary, use cached tree, however we MUST still emit invalidate //no scan was necessary, use cached tree, however we MUST still emit tqinvalidate
invalidate( false ); tqinvalidate( false );
create( tree ); create( tree );
} }

@ -28,7 +28,7 @@ namespace RadialMap
bool resize( const TQRect& ); bool resize( const TQRect& );
bool isNull() const { return ( m_signature == 0 ); } bool isNull() const { return ( m_signature == 0 ); }
void invalidate( const bool ); void tqinvalidate( const bool );
friend class Builder; friend class Builder;
friend class Widget; friend class Widget;
@ -70,7 +70,7 @@ namespace RadialMap
void zoomIn(); void zoomIn();
void zoomOut(); void zoomOut();
void create( const Directory* ); void create( const Directory* );
void invalidate( const bool = true ); void tqinvalidate( const bool = true );
void refresh( int ); void refresh( int );
private slots: private slots:

@ -16,7 +16,7 @@
#include <krun.h> //::mousePressEvent() #include <krun.h> //::mousePressEvent()
#include <kurldrag.h> #include <kurldrag.h>
#include <tqapplication.h>//TQApplication::setOverrideCursor() #include <tqapplication.h>//TQApplication::setOverrideCursor()
#include <clipboard.h> #include <tqclipboard.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqtimer.h> //::resizeEvent() #include <tqtimer.h> //::resizeEvent()
@ -127,8 +127,8 @@ RadialMap::Widget::mouseMoveEvent( TQMouseEvent *e )
m_tip->updateTip( m_focus->file(), m_tree ); m_tip->updateTip( m_focus->file(), m_tree );
emit mouseHover( m_focus->file()->fullPath() ); emit mouseHover( m_focus->file()->fullPath() );
//repaint required to update labels now before transparency is generated //tqrepaint required to update labels now before transparency is generated
repaint( false ); tqrepaint( false );
} }
m_tip->moveTo( e->globalPos(), *this, ( p.y() < 0 ) ); //updates tooltip psuedo-tranparent background m_tip->moveTo( e->globalPos(), *this, ( p.y() < 0 ) ); //updates tooltip psuedo-tranparent background
@ -184,12 +184,12 @@ RadialMap::Widget::mousePressEvent( TQMouseEvent *e )
switch (popup.exec( e->globalPos(), 1 )) { switch (popup.exec( e->globalPos(), 1 )) {
case Konqueror: case Konqueror:
//KRun::runCommand will show an error message if there was trouble //KRun::runCommand will show an error message if there was trouble
KRun::runCommand( TQString( "kfmclient openURL \"%1\"" ).arg( url.url() ) ); KRun::runCommand( TQString( "kfmclient openURL \"%1\"" ).tqarg( url.url() ) );
break; break;
case Konsole: case Konsole:
// --workdir only works for local file paths // --workdir only works for local file paths
KRun::runCommand( TQString( "konsole --workdir \"%1\"" ).arg( url.path() ) ); KRun::runCommand( TQString( "konsole --workdir \"%1\"" ).tqarg( url.path() ) );
break; break;
case Center: case Center:
@ -197,7 +197,7 @@ RadialMap::Widget::mousePressEvent( TQMouseEvent *e )
goto section_two; goto section_two;
case Copy: case Copy:
TQApplication::clipboard()->setData( new KURLDrag( KURL::List( url ) ) ); TQApplication::tqclipboard()->setData( new KURLDrag( KURL::List( url ) ) );
break; break;
case Delete: case Delete:
@ -207,7 +207,7 @@ RadialMap::Widget::mousePressEvent( TQMouseEvent *e )
? i18n( "<qt>The directory at <i>'%1'</i> will be <b>recursively</b> and <b>permanently</b> deleted." ) ? i18n( "<qt>The directory at <i>'%1'</i> will be <b>recursively</b> and <b>permanently</b> deleted." )
: i18n( "<qt><i>'%1'</i> will be <b>permanently</b> deleted." ); : i18n( "<qt><i>'%1'</i> will be <b>permanently</b> deleted." );
const int userIntention = KMessageBox::warningContinueCancel( const int userIntention = KMessageBox::warningContinueCancel(
this, message.arg( url.prettyURL() ), this, message.tqarg( url.prettyURL() ),
TQString(), KGuiItem( i18n("&Delete"), "editdelete" ) ); TQString(), KGuiItem( i18n("&Delete"), "editdelete" ) );
if (userIntention == KMessageBox::Continue) { if (userIntention == KMessageBox::Continue) {
@ -250,7 +250,7 @@ RadialMap::Widget::deleteJobFinished( KIO::Job *job )
{ {
TQApplication::restoreOverrideCursor(); TQApplication::restoreOverrideCursor();
if( !job->error() ) if( !job->error() )
invalidate(); tqinvalidate();
else else
job->showErrorDialog( this ); job->showErrorDialog( this );
} }

@ -9,8 +9,8 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <klocale.h> #include <klocale.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <textstream.h> #include <tqtextstream.h>
#include <tqvbox.h> #include <tqvbox.h>
#include "radialMap/radialMap.h" #include "radialMap/radialMap.h"
#include "radialMap/widget.h" #include "radialMap/widget.h"
@ -123,10 +123,10 @@ SummaryWidget::createDiskMaps()
<< "<i>(" << disk.device << ")</i>"; << "<i>(" << disk.device << ")</i>";
TQLabel *label = new TQLabel( text, box ); TQLabel *label = new TQLabel( text, box );
label->setAlignment( TQt::AlignCenter ); label->tqsetAlignment( TQt::AlignCenter );
label->setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Maximum ); label->tqsetSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Maximum );
box->show(); // will show its children too box->show(); // will show its tqchildren too
Directory *tree = new Directory( disk.mount.local8Bit() ); Directory *tree = new Directory( disk.mount.local8Bit() );
tree->append( free, disk.free ); tree->append( free, disk.free );

Loading…
Cancel
Save