Rename old tq methods that no longer need a unique name

feat/lzip-support
Timothy Pearson 13 years ago
parent 644e85d451
commit 02c9636ebc

@ -150,7 +150,7 @@ bool kio_isoProtocol::checkNewFile( TQString fullPath, TQString & path, int star
path.truncate( len - 1 ); path.truncate( len - 1 );
} }
else else
path = TQString::tqfromLatin1("/"); path = TQString::fromLatin1("/");
kdDebug() << "Found. isoFile=" << isoFile << " path=" << path << endl; kdDebug() << "Found. isoFile=" << isoFile << " path=" << path << endl;
break; break;
} }
@ -259,10 +259,10 @@ void kio_isoProtocol::listDir( const KURL & url )
if ( path.isEmpty() ) if ( path.isEmpty() )
{ {
KURL redir( TQString::tqfromLatin1( "iso:/") ); KURL redir( TQString::fromLatin1( "iso:/") );
kdDebug() << "url.path()==" << url.path() << endl; kdDebug() << "url.path()==" << url.path() << endl;
if (url.hasRef()) redir.setRef(url.htmlRef()); if (url.hasRef()) redir.setRef(url.htmlRef());
redir.setPath( url.path() + TQString::tqfromLatin1("/") ); redir.setPath( url.path() + TQString::fromLatin1("/") );
kdDebug() << "kio_isoProtocol::listDir: redirection " << redir.url() << endl; kdDebug() << "kio_isoProtocol::listDir: redirection " << redir.url() << endl;
redirection( redir ); redirection( redir );
finished(); finished();
@ -356,7 +356,7 @@ void kio_isoProtocol::stat( const KURL & url )
const KArchiveEntry* isoEntry; const KArchiveEntry* isoEntry;
if ( path.isEmpty() ) if ( path.isEmpty() )
{ {
path = TQString::tqfromLatin1( "/" ); path = TQString::fromLatin1( "/" );
isoEntry = root; isoEntry = root;
} else { } else {
isoEntry = root->entry( path ); isoEntry = root->entry( path );

@ -86,7 +86,7 @@ kio_krarcProtocol::kio_krarcProtocol(const TQCString &pool_socket, const TQCStri
dirDict.setAutoDelete(true); dirDict.setAutoDelete(true);
arcTempDir = locateLocal("tmp",TQString()); arcTempDir = locateLocal("tmp",TQString());
TQString dirName = "krArc"+TQDateTime::tqcurrentDateTime().toString(Qt::ISODate); TQString dirName = "krArc"+TQDateTime::currentDateTime().toString(Qt::ISODate);
dirName.replace(TQRegExp(":"),"_"); dirName.replace(TQRegExp(":"),"_");
TQDir(arcTempDir).mkdir(dirName); TQDir(arcTempDir).mkdir(dirName);
arcTempDir = arcTempDir+dirName+"/"; arcTempDir = arcTempDir+dirName+"/";
@ -161,7 +161,7 @@ void kio_krarcProtocol::mkdir(const KURL& url,int permissions){
// delete the temp directory // delete the temp directory
TQDir().rmdir(arcTempDir); TQDir().rmdir(arcTempDir);
if( !proc.normalExit() || !checktqStatus( proc.exitStatus() ) ) { if( !proc.normalExit() || !checkStatus( proc.exitStatus() ) ) {
error(ERR_COULD_NOT_WRITE,url.path() + "\n\n" + proc.getErrorMsg() ); error(ERR_COULD_NOT_WRITE,url.path() + "\n\n" + proc.getErrorMsg() );
return; return;
} }
@ -231,7 +231,7 @@ void kio_krarcProtocol::put(const KURL& url,int permissions,bool overwrite,bool
// remove the file // remove the file
TQFile::remove(tmpFile); TQFile::remove(tmpFile);
if( !proc.normalExit() || !checktqStatus( proc.exitStatus() ) ) { if( !proc.normalExit() || !checkStatus( proc.exitStatus() ) ) {
error(ERR_COULD_NOT_WRITE,url.path() + "\n\n" + proc.getErrorMsg() ); error(ERR_COULD_NOT_WRITE,url.path() + "\n\n" + proc.getErrorMsg() );
return; return;
} }
@ -323,7 +323,7 @@ void kio_krarcProtocol::get(const KURL& url, int tries ){
proc.start(KProcess::Block,KProcess::AllOutput); proc.start(KProcess::Block,KProcess::AllOutput);
if( !extArcReady && !decompressToFile ) { if( !extArcReady && !decompressToFile ) {
if( !proc.normalExit() || !checktqStatus( proc.exitStatus() ) || ( arcType != "bzip2" && expectedSize != decompressedLen ) ) { if( !proc.normalExit() || !checkStatus( proc.exitStatus() ) || ( arcType != "bzip2" && expectedSize != decompressedLen ) ) {
if( encrypted && tries ) { if( encrypted && tries ) {
invalidatePassword(); invalidatePassword();
get( url, tries - 1 ); get( url, tries - 1 );
@ -334,7 +334,7 @@ void kio_krarcProtocol::get(const KURL& url, int tries ){
} }
} }
else{ else{
if( !proc.normalExit() || !checktqStatus( proc.exitStatus() ) || !TQFileInfo( arcTempDir+file ).exists() ) { if( !proc.normalExit() || !checkStatus( proc.exitStatus() ) || !TQFileInfo( arcTempDir+file ).exists() ) {
if( decompressToFile ) if( decompressToFile )
TQFile(arcTempDir+file).remove(); TQFile(arcTempDir+file).remove();
if( encrypted && tries ) { if( encrypted && tries ) {
@ -457,7 +457,7 @@ void kio_krarcProtocol::del(KURL const & url, bool isFile){
proc << delCmd << convertName( arcFile->url().path() )+" " << convertFileName( file ); proc << delCmd << convertName( arcFile->url().path() )+" " << convertFileName( file );
infoMessage(i18n("Deleting %1 ...").tqarg( url.fileName() ) ); infoMessage(i18n("Deleting %1 ...").tqarg( url.fileName() ) );
proc.start(KProcess::Block, KProcess::AllOutput); proc.start(KProcess::Block, KProcess::AllOutput);
if( !proc.normalExit() || !checktqStatus( proc.exitStatus() ) ) { if( !proc.normalExit() || !checkStatus( proc.exitStatus() ) ) {
error(ERR_COULD_NOT_WRITE,url.path() + "\n\n" + proc.getErrorMsg() ); error(ERR_COULD_NOT_WRITE,url.path() + "\n\n" + proc.getErrorMsg() );
return; return;
} }
@ -553,7 +553,7 @@ void kio_krarcProtocol::copy (const KURL &url, const KURL &dest, int, bool overw
infoMessage(i18n("Unpacking %1 ...").tqarg( url.fileName() ) ); infoMessage(i18n("Unpacking %1 ...").tqarg( url.fileName() ) );
proc.start(KProcess::Block, KProcess::AllOutput); proc.start(KProcess::Block, KProcess::AllOutput);
if( !proc.normalExit() || !checktqStatus( proc.exitStatus() ) ) { if( !proc.normalExit() || !checkStatus( proc.exitStatus() ) ) {
error(KIO::ERR_COULD_NOT_WRITE, dest.path(-1) + "\n\n" + proc.getErrorMsg() ); error(KIO::ERR_COULD_NOT_WRITE, dest.path(-1) + "\n\n" + proc.getErrorMsg() );
return; return;
} }
@ -712,7 +712,7 @@ bool kio_krarcProtocol::initDirDict(const KURL&url, bool forced){
if( arcType == "ace" && TQFile( "/dev/ptmx" ).exists() ) // Don't remove, unace crashes if missing!!! if( arcType == "ace" && TQFile( "/dev/ptmx" ).exists() ) // Don't remove, unace crashes if missing!!!
proc << "<" << "/dev/ptmx"; proc << "<" << "/dev/ptmx";
proc.start(KProcess::Block,KProcess::AllOutput); proc.start(KProcess::Block,KProcess::AllOutput);
if( !proc.normalExit() || !checktqStatus( proc.exitStatus() ) ) return false; if( !proc.normalExit() || !checkStatus( proc.exitStatus() ) ) return false;
} }
// clear the dir dictionary // clear the dir dictionary
dirDict.clear(); dirDict.clear();
@ -1073,7 +1073,7 @@ void kio_krarcProtocol::parseLine(int lineNo, TQString line, TQFile*) {
// date & time // date & time
int month = (TQStringList::split(',', "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec")).findIndex( nextWord(line) ) + 1; int month = (TQStringList::split(',', "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec")).findIndex( nextWord(line) ) + 1;
int day = nextWord(line).toInt(); int day = nextWord(line).toInt();
int year = TQDate::tqcurrentDate().year(); int year = TQDate::currentDate().year();
TQString third = nextWord(line); TQString third = nextWord(line);
TQTime qtime; TQTime qtime;
@ -1376,7 +1376,7 @@ bool kio_krarcProtocol::initArcParameters() {
return true; return true;
} }
bool kio_krarcProtocol::checktqStatus( int exitCode ) { bool kio_krarcProtocol::checkStatus( int exitCode ) {
KRDEBUG( exitCode ); KRDEBUG( exitCode );
if( arcType == "zip" || arcType == "rar" || arcType == "7z" ) if( arcType == "zip" || arcType == "rar" || arcType == "7z" )

@ -70,7 +70,7 @@ protected:
private: private:
void get(const KURL& url, int tries); void get(const KURL& url, int tries);
/** checks if the exit code is OK. */ /** checks if the exit code is OK. */
bool checktqStatus( int exitCode ); bool checkStatus( int exitCode );
/** service function for parseLine. */ /** service function for parseLine. */
TQString nextWord(TQString &s,char d=' '); TQString nextWord(TQString &s,char d=' ');
/** translate permittion string to mode_t. */ /** translate permittion string to mode_t. */

@ -57,17 +57,17 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout->addWidget( ButtonAddStartpath, 8, 3 ); tabLayout->addWidget( ButtonAddStartpath, 8, 3 );
LabelDescription = new TQLabel( tab, "LabelDescription" ); LabelDescription = new TQLabel( tab, "LabelDescription" );
LabelDescription->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, LabelDescription->sizePolicy().hasHeightForWidth() ) ); LabelDescription->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, LabelDescription->sizePolicy().hasHeightForWidth() ) );
tabLayout->addWidget( LabelDescription, 4, 0 ); tabLayout->addWidget( LabelDescription, 4, 0 );
bgAccept = new TQButtonGroup( tab, "bgAccept" ); bgAccept = new TQButtonGroup( tab, "bgAccept" );
bgAccept->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, bgAccept->sizePolicy().hasHeightForWidth() ) ); bgAccept->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, bgAccept->sizePolicy().hasHeightForWidth() ) );
bgAccept->setColumnLayout(0, Qt::Vertical ); bgAccept->setColumnLayout(0, Qt::Vertical );
bgAccept->tqlayout()->setSpacing( 6 ); bgAccept->tqlayout()->setSpacing( 6 );
bgAccept->tqlayout()->setMargin( 11 ); bgAccept->tqlayout()->setMargin( 11 );
bgAcceptLayout = new TQGridLayout( bgAccept->tqlayout() ); bgAcceptLayout = new TQGridLayout( bgAccept->tqlayout() );
bgAcceptLayout->tqsetAlignment( TQt::AlignTop ); bgAcceptLayout->setAlignment( TQt::AlignTop );
radioLocal = new TQRadioButton( bgAccept, "radioLocal" ); radioLocal = new TQRadioButton( bgAccept, "radioLocal" );
radioLocal->setChecked( TRUE ); radioLocal->setChecked( TRUE );
@ -85,7 +85,7 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout->addMultiCellWidget( leTitle, 2, 2, 1, 3 ); tabLayout->addMultiCellWidget( leTitle, 2, 2, 1, 3 );
LabelTitle = new TQLabel( tab, "LabelTitle" ); LabelTitle = new TQLabel( tab, "LabelTitle" );
LabelTitle->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelTitle->sizePolicy().hasHeightForWidth() ) ); LabelTitle->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelTitle->sizePolicy().hasHeightForWidth() ) );
tabLayout->addWidget( LabelTitle, 2, 0 ); tabLayout->addWidget( LabelTitle, 2, 0 );
@ -102,7 +102,7 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tqlayout3->addLayout( tqlayout2 ); tqlayout3->addLayout( tqlayout2 );
ButtonIcon = new KIconButton( tab, "ButtonIcon" ); ButtonIcon = new KIconButton( tab, "ButtonIcon" );
ButtonIcon->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, ButtonIcon->sizePolicy().hasHeightForWidth() ) ); ButtonIcon->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, ButtonIcon->sizePolicy().hasHeightForWidth() ) );
ButtonIcon->setMinimumSize( TQSize( 50, 50 ) ); ButtonIcon->setMinimumSize( TQSize( 50, 50 ) );
ButtonIcon->setMaximumSize( TQSize( 50, 50 ) ); ButtonIcon->setMaximumSize( TQSize( 50, 50 ) );
tqlayout3->addWidget( ButtonIcon ); tqlayout3->addWidget( ButtonIcon );
@ -110,12 +110,12 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout->addMultiCellLayout( tqlayout3, 0, 1, 1, 3 ); tabLayout->addMultiCellLayout( tqlayout3, 0, 1, 1, 3 );
LabelDistinctName = new TQLabel( tab, "LabelDistinctName" ); LabelDistinctName = new TQLabel( tab, "LabelDistinctName" );
LabelDistinctName->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelDistinctName->sizePolicy().hasHeightForWidth() ) ); LabelDistinctName->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelDistinctName->sizePolicy().hasHeightForWidth() ) );
tabLayout->addWidget( LabelDistinctName, 0, 0 ); tabLayout->addWidget( LabelDistinctName, 0, 0 );
LabelCommandline = new TQLabel( tab, "LabelCommandline" ); LabelCommandline = new TQLabel( tab, "LabelCommandline" );
LabelCommandline->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, LabelCommandline->sizePolicy().hasHeightForWidth() ) ); LabelCommandline->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, LabelCommandline->sizePolicy().hasHeightForWidth() ) );
tabLayout->addWidget( LabelCommandline, 7, 0 ); tabLayout->addWidget( LabelCommandline, 7, 0 );
@ -128,7 +128,7 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout->addMultiCellWidget( leStartpath, 8, 8, 1, 2 ); tabLayout->addMultiCellWidget( leStartpath, 8, 8, 1, 2 );
LabelTooltip = new TQLabel( tab, "LabelTooltip" ); LabelTooltip = new TQLabel( tab, "LabelTooltip" );
LabelTooltip->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelTooltip->sizePolicy().hasHeightForWidth() ) ); LabelTooltip->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelTooltip->sizePolicy().hasHeightForWidth() ) );
tabLayout->addWidget( LabelTooltip, 3, 0 ); tabLayout->addWidget( LabelTooltip, 3, 0 );
@ -137,12 +137,12 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout->addMultiCellWidget( leCommandline, 7, 7, 1, 2 ); tabLayout->addMultiCellWidget( leCommandline, 7, 7, 1, 2 );
LabelCategory = new TQLabel( tab, "LabelCategory" ); LabelCategory = new TQLabel( tab, "LabelCategory" );
LabelCategory->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelCategory->sizePolicy().hasHeightForWidth() ) ); LabelCategory->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, LabelCategory->sizePolicy().hasHeightForWidth() ) );
tabLayout->addWidget( LabelCategory, 1, 0 ); tabLayout->addWidget( LabelCategory, 1, 0 );
ButtonAddPlaceholder = new TQToolButton( tab, "ButtonAddPlaceholder" ); ButtonAddPlaceholder = new TQToolButton( tab, "ButtonAddPlaceholder" );
ButtonAddPlaceholder->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, ButtonAddPlaceholder->sizePolicy().hasHeightForWidth() ) ); ButtonAddPlaceholder->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, ButtonAddPlaceholder->sizePolicy().hasHeightForWidth() ) );
ButtonAddPlaceholder->setMinimumSize( TQSize( 0, 0 ) ); ButtonAddPlaceholder->setMinimumSize( TQSize( 0, 0 ) );
tabLayout->addWidget( ButtonAddPlaceholder, 7, 3 ); tabLayout->addWidget( ButtonAddPlaceholder, 7, 3 );
@ -153,7 +153,7 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout->addMultiCellWidget( textDescription, 4, 6, 1, 3 ); tabLayout->addMultiCellWidget( textDescription, 4, 6, 1, 3 );
LabelStartpath = new TQLabel( tab, "LabelStartpath" ); LabelStartpath = new TQLabel( tab, "LabelStartpath" );
LabelStartpath->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, LabelStartpath->sizePolicy().hasHeightForWidth() ) ); LabelStartpath->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, LabelStartpath->sizePolicy().hasHeightForWidth() ) );
tabLayout->addWidget( LabelStartpath, 8, 0 ); tabLayout->addWidget( LabelStartpath, 8, 0 );
spacer = new TQSpacerItem( 80, 19, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); spacer = new TQSpacerItem( 80, 19, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
@ -172,12 +172,12 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout->addMultiCellLayout( tqlayout4, 10, 10, 2, 3 ); tabLayout->addMultiCellLayout( tqlayout4, 10, 10, 2, 3 );
bgExecType = new TQButtonGroup( tab, "bgExecType" ); bgExecType = new TQButtonGroup( tab, "bgExecType" );
bgExecType->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, bgExecType->sizePolicy().hasHeightForWidth() ) ); bgExecType->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, 0, 0, bgExecType->sizePolicy().hasHeightForWidth() ) );
bgExecType->setColumnLayout(0, Qt::Vertical ); bgExecType->setColumnLayout(0, Qt::Vertical );
bgExecType->tqlayout()->setSpacing( 6 ); bgExecType->tqlayout()->setSpacing( 6 );
bgExecType->tqlayout()->setMargin( 11 ); bgExecType->tqlayout()->setMargin( 11 );
bgExecTypeLayout = new TQGridLayout( bgExecType->tqlayout() ); bgExecTypeLayout = new TQGridLayout( bgExecType->tqlayout() );
bgExecTypeLayout->tqsetAlignment( TQt::AlignTop ); bgExecTypeLayout->setAlignment( TQt::AlignTop );
radioCollectOutput = new TQRadioButton( bgExecType, "radioCollectOutput" ); radioCollectOutput = new TQRadioButton( bgExecType, "radioCollectOutput" );
@ -198,18 +198,18 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
bgExecTypeLayout->addWidget( radioTerminal, 1, 0 ); bgExecTypeLayout->addWidget( radioTerminal, 1, 0 );
tabLayout->addMultiCellWidget( bgExecType, 9, 10, 0, 1 ); tabLayout->addMultiCellWidget( bgExecType, 9, 10, 0, 1 );
tabWidget3->insertTab( tab, TQString::tqfromLatin1("") ); tabWidget3->insertTab( tab, TQString::fromLatin1("") );
tab_2 = new TQWidget( tabWidget3, "tab_2" ); tab_2 = new TQWidget( tabWidget3, "tab_2" );
tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2"); tabLayout_2 = new TQGridLayout( tab_2, 1, 1, 11, 6, "tabLayout_2");
gbShowonly = new TQGroupBox( tab_2, "gbShowonly" ); gbShowonly = new TQGroupBox( tab_2, "gbShowonly" );
gbShowonly->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, gbShowonly->sizePolicy().hasHeightForWidth() ) ); gbShowonly->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, gbShowonly->sizePolicy().hasHeightForWidth() ) );
gbShowonly->setColumnLayout(0, Qt::Vertical ); gbShowonly->setColumnLayout(0, Qt::Vertical );
gbShowonly->tqlayout()->setSpacing( 6 ); gbShowonly->tqlayout()->setSpacing( 6 );
gbShowonly->tqlayout()->setMargin( 11 ); gbShowonly->tqlayout()->setMargin( 11 );
gbShowonlyLayout = new TQGridLayout( gbShowonly->tqlayout() ); gbShowonlyLayout = new TQGridLayout( gbShowonly->tqlayout() );
gbShowonlyLayout->tqsetAlignment( TQt::AlignTop ); gbShowonlyLayout->setAlignment( TQt::AlignTop );
tabShowonly = new TQTabWidget( gbShowonly, "tabShowonly" ); tabShowonly = new TQTabWidget( gbShowonly, "tabShowonly" );
tabShowonly->setTabPosition( TQTabWidget::Top ); tabShowonly->setTabPosition( TQTabWidget::Top );
@ -219,14 +219,14 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
TabPageLayout = new TQGridLayout( TabPage, 1, 1, 11, 6, "TabPageLayout"); TabPageLayout = new TQGridLayout( TabPage, 1, 1, 11, 6, "TabPageLayout");
ButtonNewProtocol = new TQToolButton( TabPage, "ButtonNewProtocol" ); ButtonNewProtocol = new TQToolButton( TabPage, "ButtonNewProtocol" );
ButtonNewProtocol->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonNewProtocol->sizePolicy().hasHeightForWidth() ) ); ButtonNewProtocol->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonNewProtocol->sizePolicy().hasHeightForWidth() ) );
ButtonNewProtocol->setMinimumSize( TQSize( 0, 0 ) ); ButtonNewProtocol->setMinimumSize( TQSize( 0, 0 ) );
ButtonNewProtocol->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonNewProtocol->setMaximumSize( TQSize( 32767, 32767 ) );
TabPageLayout->addWidget( ButtonNewProtocol, 0, 1 ); TabPageLayout->addWidget( ButtonNewProtocol, 0, 1 );
ButtonEditProtocol = new TQToolButton( TabPage, "ButtonEditProtocol" ); ButtonEditProtocol = new TQToolButton( TabPage, "ButtonEditProtocol" );
ButtonEditProtocol->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditProtocol->sizePolicy().hasHeightForWidth() ) ); ButtonEditProtocol->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditProtocol->sizePolicy().hasHeightForWidth() ) );
ButtonEditProtocol->setMinimumSize( TQSize( 0, 0 ) ); ButtonEditProtocol->setMinimumSize( TQSize( 0, 0 ) );
ButtonEditProtocol->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonEditProtocol->setMaximumSize( TQSize( 32767, 32767 ) );
@ -235,7 +235,7 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
TabPageLayout->addItem( spacer6_3, 3, 1 ); TabPageLayout->addItem( spacer6_3, 3, 1 );
ButtonRemoveProtocol = new TQToolButton( TabPage, "ButtonRemoveProtocol" ); ButtonRemoveProtocol = new TQToolButton( TabPage, "ButtonRemoveProtocol" );
ButtonRemoveProtocol->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemoveProtocol->sizePolicy().hasHeightForWidth() ) ); ButtonRemoveProtocol->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemoveProtocol->sizePolicy().hasHeightForWidth() ) );
ButtonRemoveProtocol->setMinimumSize( TQSize( 0, 0 ) ); ButtonRemoveProtocol->setMinimumSize( TQSize( 0, 0 ) );
ButtonRemoveProtocol->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonRemoveProtocol->setMaximumSize( TQSize( 32767, 32767 ) );
@ -244,7 +244,7 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
lbShowonlyProtocol = new KListBox( TabPage, "lbShowonlyProtocol" ); lbShowonlyProtocol = new KListBox( TabPage, "lbShowonlyProtocol" );
TabPageLayout->addMultiCellWidget( lbShowonlyProtocol, 0, 3, 0, 0 ); TabPageLayout->addMultiCellWidget( lbShowonlyProtocol, 0, 3, 0, 0 );
tabShowonly->insertTab( TabPage, TQString::tqfromLatin1("") ); tabShowonly->insertTab( TabPage, TQString::fromLatin1("") );
tab_3 = new TQWidget( tabShowonly, "tab_3" ); tab_3 = new TQWidget( tabShowonly, "tab_3" );
tabLayout_3 = new TQGridLayout( tab_3, 1, 1, 11, 6, "tabLayout_3"); tabLayout_3 = new TQGridLayout( tab_3, 1, 1, 11, 6, "tabLayout_3");
@ -254,28 +254,28 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout_3->addMultiCellWidget( lbShowonlyPath, 0, 3, 0, 0 ); tabLayout_3->addMultiCellWidget( lbShowonlyPath, 0, 3, 0, 0 );
ButtonAddPath = new TQToolButton( tab_3, "ButtonAddPath" ); ButtonAddPath = new TQToolButton( tab_3, "ButtonAddPath" );
ButtonAddPath->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonAddPath->sizePolicy().hasHeightForWidth() ) ); ButtonAddPath->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonAddPath->sizePolicy().hasHeightForWidth() ) );
ButtonAddPath->setMinimumSize( TQSize( 0, 0 ) ); ButtonAddPath->setMinimumSize( TQSize( 0, 0 ) );
ButtonAddPath->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonAddPath->setMaximumSize( TQSize( 32767, 32767 ) );
tabLayout_3->addWidget( ButtonAddPath, 0, 1 ); tabLayout_3->addWidget( ButtonAddPath, 0, 1 );
ButtonEditPath = new TQToolButton( tab_3, "ButtonEditPath" ); ButtonEditPath = new TQToolButton( tab_3, "ButtonEditPath" );
ButtonEditPath->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditPath->sizePolicy().hasHeightForWidth() ) ); ButtonEditPath->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditPath->sizePolicy().hasHeightForWidth() ) );
ButtonEditPath->setMinimumSize( TQSize( 0, 0 ) ); ButtonEditPath->setMinimumSize( TQSize( 0, 0 ) );
ButtonEditPath->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonEditPath->setMaximumSize( TQSize( 32767, 32767 ) );
tabLayout_3->addWidget( ButtonEditPath, 1, 1 ); tabLayout_3->addWidget( ButtonEditPath, 1, 1 );
ButtonRemovePath = new TQToolButton( tab_3, "ButtonRemovePath" ); ButtonRemovePath = new TQToolButton( tab_3, "ButtonRemovePath" );
ButtonRemovePath->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemovePath->sizePolicy().hasHeightForWidth() ) ); ButtonRemovePath->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemovePath->sizePolicy().hasHeightForWidth() ) );
ButtonRemovePath->setMinimumSize( TQSize( 0, 0 ) ); ButtonRemovePath->setMinimumSize( TQSize( 0, 0 ) );
ButtonRemovePath->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonRemovePath->setMaximumSize( TQSize( 32767, 32767 ) );
tabLayout_3->addWidget( ButtonRemovePath, 2, 1 ); tabLayout_3->addWidget( ButtonRemovePath, 2, 1 );
spacer4 = new TQSpacerItem( 21, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); spacer4 = new TQSpacerItem( 21, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_3->addItem( spacer4, 3, 1 ); tabLayout_3->addItem( spacer4, 3, 1 );
tabShowonly->insertTab( tab_3, TQString::tqfromLatin1("") ); tabShowonly->insertTab( tab_3, TQString::fromLatin1("") );
tab_4 = new TQWidget( tabShowonly, "tab_4" ); tab_4 = new TQWidget( tabShowonly, "tab_4" );
tabLayout_4 = new TQGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4"); tabLayout_4 = new TQGridLayout( tab_4, 1, 1, 11, 6, "tabLayout_4");
@ -285,28 +285,28 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout_4->addMultiCellWidget( lbShowonlyMime, 0, 3, 0, 0 ); tabLayout_4->addMultiCellWidget( lbShowonlyMime, 0, 3, 0, 0 );
ButtonAddMime = new TQToolButton( tab_4, "ButtonAddMime" ); ButtonAddMime = new TQToolButton( tab_4, "ButtonAddMime" );
ButtonAddMime->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonAddMime->sizePolicy().hasHeightForWidth() ) ); ButtonAddMime->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonAddMime->sizePolicy().hasHeightForWidth() ) );
ButtonAddMime->setMinimumSize( TQSize( 0, 0 ) ); ButtonAddMime->setMinimumSize( TQSize( 0, 0 ) );
ButtonAddMime->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonAddMime->setMaximumSize( TQSize( 32767, 32767 ) );
tabLayout_4->addWidget( ButtonAddMime, 0, 1 ); tabLayout_4->addWidget( ButtonAddMime, 0, 1 );
ButtonEditMime = new TQToolButton( tab_4, "ButtonEditMime" ); ButtonEditMime = new TQToolButton( tab_4, "ButtonEditMime" );
ButtonEditMime->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditMime->sizePolicy().hasHeightForWidth() ) ); ButtonEditMime->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditMime->sizePolicy().hasHeightForWidth() ) );
ButtonEditMime->setMinimumSize( TQSize( 0, 0 ) ); ButtonEditMime->setMinimumSize( TQSize( 0, 0 ) );
ButtonEditMime->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonEditMime->setMaximumSize( TQSize( 32767, 32767 ) );
tabLayout_4->addWidget( ButtonEditMime, 1, 1 ); tabLayout_4->addWidget( ButtonEditMime, 1, 1 );
ButtonRemoveMime = new TQToolButton( tab_4, "ButtonRemoveMime" ); ButtonRemoveMime = new TQToolButton( tab_4, "ButtonRemoveMime" );
ButtonRemoveMime->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemoveMime->sizePolicy().hasHeightForWidth() ) ); ButtonRemoveMime->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemoveMime->sizePolicy().hasHeightForWidth() ) );
ButtonRemoveMime->setMinimumSize( TQSize( 0, 0 ) ); ButtonRemoveMime->setMinimumSize( TQSize( 0, 0 ) );
ButtonRemoveMime->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonRemoveMime->setMaximumSize( TQSize( 32767, 32767 ) );
tabLayout_4->addWidget( ButtonRemoveMime, 2, 1 ); tabLayout_4->addWidget( ButtonRemoveMime, 2, 1 );
spacer5 = new TQSpacerItem( 21, 41, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); spacer5 = new TQSpacerItem( 21, 41, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_4->addItem( spacer5, 3, 1 ); tabLayout_4->addItem( spacer5, 3, 1 );
tabShowonly->insertTab( tab_4, TQString::tqfromLatin1("") ); tabShowonly->insertTab( tab_4, TQString::fromLatin1("") );
TabPage_2 = new TQWidget( tabShowonly, "TabPage_2" ); TabPage_2 = new TQWidget( tabShowonly, "TabPage_2" );
TabPageLayout_2 = new TQGridLayout( TabPage_2, 1, 1, 11, 6, "TabPageLayout_2"); TabPageLayout_2 = new TQGridLayout( TabPage_2, 1, 1, 11, 6, "TabPageLayout_2");
@ -316,28 +316,28 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
TabPageLayout_2->addMultiCellWidget( lbShowonlyFile, 0, 3, 0, 0 ); TabPageLayout_2->addMultiCellWidget( lbShowonlyFile, 0, 3, 0, 0 );
ButtonNewFile = new TQToolButton( TabPage_2, "ButtonNewFile" ); ButtonNewFile = new TQToolButton( TabPage_2, "ButtonNewFile" );
ButtonNewFile->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonNewFile->sizePolicy().hasHeightForWidth() ) ); ButtonNewFile->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonNewFile->sizePolicy().hasHeightForWidth() ) );
ButtonNewFile->setMinimumSize( TQSize( 0, 0 ) ); ButtonNewFile->setMinimumSize( TQSize( 0, 0 ) );
ButtonNewFile->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonNewFile->setMaximumSize( TQSize( 32767, 32767 ) );
TabPageLayout_2->addWidget( ButtonNewFile, 0, 1 ); TabPageLayout_2->addWidget( ButtonNewFile, 0, 1 );
ButtonEditFile = new TQToolButton( TabPage_2, "ButtonEditFile" ); ButtonEditFile = new TQToolButton( TabPage_2, "ButtonEditFile" );
ButtonEditFile->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditFile->sizePolicy().hasHeightForWidth() ) ); ButtonEditFile->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonEditFile->sizePolicy().hasHeightForWidth() ) );
ButtonEditFile->setMinimumSize( TQSize( 0, 0 ) ); ButtonEditFile->setMinimumSize( TQSize( 0, 0 ) );
ButtonEditFile->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonEditFile->setMaximumSize( TQSize( 32767, 32767 ) );
TabPageLayout_2->addWidget( ButtonEditFile, 1, 1 ); TabPageLayout_2->addWidget( ButtonEditFile, 1, 1 );
ButtonRemoveFile = new TQToolButton( TabPage_2, "ButtonRemoveFile" ); ButtonRemoveFile = new TQToolButton( TabPage_2, "ButtonRemoveFile" );
ButtonRemoveFile->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemoveFile->sizePolicy().hasHeightForWidth() ) ); ButtonRemoveFile->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, ButtonRemoveFile->sizePolicy().hasHeightForWidth() ) );
ButtonRemoveFile->setMinimumSize( TQSize( 0, 0 ) ); ButtonRemoveFile->setMinimumSize( TQSize( 0, 0 ) );
ButtonRemoveFile->setMaximumSize( TQSize( 32767, 32767 ) ); ButtonRemoveFile->setMaximumSize( TQSize( 32767, 32767 ) );
TabPageLayout_2->addWidget( ButtonRemoveFile, 2, 1 ); TabPageLayout_2->addWidget( ButtonRemoveFile, 2, 1 );
spacer6 = new TQSpacerItem( 21, 41, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); spacer6 = new TQSpacerItem( 21, 41, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
TabPageLayout_2->addItem( spacer6, 3, 1 ); TabPageLayout_2->addItem( spacer6, 3, 1 );
tabShowonly->insertTab( TabPage_2, TQString::tqfromLatin1("") ); tabShowonly->insertTab( TabPage_2, TQString::fromLatin1("") );
gbShowonlyLayout->addWidget( tabShowonly, 0, 0 ); gbShowonlyLayout->addWidget( tabShowonly, 0, 0 );
@ -357,11 +357,11 @@ ActionPropertyBase::ActionPropertyBase( TQWidget* parent, const char* name, WFla
tabLayout_2->addWidget( leDifferentUser, 2, 1 ); tabLayout_2->addWidget( leDifferentUser, 2, 1 );
spacer3 = new TQSpacerItem( 161, 102, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); spacer3 = new TQSpacerItem( 161, 102, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
tabLayout_2->addMultiCell( spacer3, 3, 3, 0, 1 ); tabLayout_2->addMultiCell( spacer3, 3, 3, 0, 1 );
tabWidget3->insertTab( tab_2, TQString::tqfromLatin1("") ); tabWidget3->insertTab( tab_2, TQString::fromLatin1("") );
ActionPropertyBaseLayout->addWidget( tabWidget3, 0, 0 ); ActionPropertyBaseLayout->addWidget( tabWidget3, 0, 0 );
languageChange(); languageChange();
resize( TQSize(485, 470).expandedTo(tqminimumSizeHint()) ); resize( TQSize(485, 470).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished ); clearWState( WState_Polished );
// signals and slots connections // signals and slots connections

@ -189,13 +189,13 @@
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>50</width> <width>50</width>
<height>50</height> <height>50</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>50</width> <width>50</width>
<height>50</height> <height>50</height>
@ -328,7 +328,7 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
@ -381,7 +381,7 @@ Please consult the handbook to learn more about the syntax.</string>
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>80</width> <width>80</width>
<height>19</height> <height>19</height>
@ -414,7 +414,7 @@ Please consult the handbook to learn more about the syntax.</string>
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>161</width> <width>161</width>
<height>21</height> <height>21</height>
@ -567,13 +567,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -595,13 +595,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -621,7 +621,7 @@ Please consult the handbook to learn more about the syntax.</string>
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>58</height> <height>58</height>
@ -640,13 +640,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -697,13 +697,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -725,13 +725,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -753,13 +753,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -779,7 +779,7 @@ Please consult the handbook to learn more about the syntax.</string>
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>61</height> <height>61</height>
@ -819,13 +819,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -847,13 +847,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -875,13 +875,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -901,7 +901,7 @@ Please consult the handbook to learn more about the syntax.</string>
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>41</height> <height>41</height>
@ -941,13 +941,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -969,13 +969,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -997,13 +997,13 @@ Please consult the handbook to learn more about the syntax.</string>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="tqminimumSize"> <property name="minimumSize">
<size> <size>
<width>0</width> <width>0</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
<property name="tqmaximumSize"> <property name="maximumSize">
<size> <size>
<width>32767</width> <width>32767</width>
<height>32767</height> <height>32767</height>
@ -1023,7 +1023,7 @@ Please consult the handbook to learn more about the syntax.</string>
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>21</width> <width>21</width>
<height>41</height> <height>41</height>
@ -1078,7 +1078,7 @@ Please consult the handbook to learn more about the syntax.</string>
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>161</width> <width>161</width>
<height>102</height> <height>102</height>

@ -46,7 +46,7 @@ UserActionListView::~UserActionListView()
{ {
} }
TQSize UserActionListView::tqsizeHint() const { TQSize UserActionListView::sizeHint() const {
return TQSize(200, 400); return TQSize(200, 400);
} }

@ -26,7 +26,7 @@ class UserActionListView : public KListView {
public: public:
UserActionListView( TQWidget* parent = 0, const char* name = 0 ); UserActionListView( TQWidget* parent = 0, const char* name = 0 );
~UserActionListView(); ~UserActionListView();
virtual TQSize tqsizeHint() const; virtual TQSize sizeHint() const;
void update(); void update();
void update( KrAction* action ); void update( KrAction* action );

@ -141,7 +141,7 @@ KURLRequesterDlgForCopy::KURLRequesterDlgForCopy( const TQString& urlName, const
topLayout->addWidget( label ); topLayout->addWidget( label );
urlRequester_ = new KURLRequester( urlName, plainPage(), "urlRequester" ); urlRequester_ = new KURLRequester( urlName, plainPage(), "urlRequester" );
urlRequester_->setMinimumWidth( urlRequester_->tqsizeHint().width() * 3 ); urlRequester_->setMinimumWidth( urlRequester_->sizeHint().width() * 3 );
topLayout->addWidget( urlRequester_ ); topLayout->addWidget( urlRequester_ );
preserveAttrsCB = new TQCheckBox(i18n("Preserve attributes (only for local targets)"), plainPage()); preserveAttrsCB = new TQCheckBox(i18n("Preserve attributes (only for local targets)"), plainPage());
preserveAttrsCB->setChecked( presAttrs ); preserveAttrsCB->setChecked( presAttrs );
@ -158,7 +158,7 @@ KURLRequesterDlgForCopy::KURLRequesterDlgForCopy( const TQString& urlName, const
new TQLabel( i18n("Base URL:"), hbox, "baseURLLabel" ); new TQLabel( i18n("Base URL:"), hbox, "baseURLLabel" );
baseUrlCombo = new TQComboBox( hbox, "baseUrlRequester" ); baseUrlCombo = new TQComboBox( hbox, "baseUrlRequester" );
baseUrlCombo->setMinimumWidth( baseUrlCombo->tqsizeHint().width() * 3 ); baseUrlCombo->setMinimumWidth( baseUrlCombo->sizeHint().width() * 3 );
baseUrlCombo->setEnabled( copyDirStructureCB->isChecked() ); baseUrlCombo->setEnabled( copyDirStructureCB->isChecked() );
KURL temp = baseURL, tempOld; KURL temp = baseURL, tempOld;
do { do {
@ -230,10 +230,10 @@ KURL KURLRequesterDlgForCopy::baseURL() const {
KRGetDate::KRGetDate(TQDate date, TQWidget *parent, const char *name) : KDialog(parent, name,true,WStyle_DialogBorder) { KRGetDate::KRGetDate(TQDate date, TQWidget *parent, const char *name) : KDialog(parent, name,true,WStyle_DialogBorder) {
dateWidget = new KDatePicker(this, date); dateWidget = new KDatePicker(this, date);
dateWidget->resize(dateWidget->tqsizeHint()); dateWidget->resize(dateWidget->sizeHint());
setMinimumSize(dateWidget->tqsizeHint()); setMinimumSize(dateWidget->sizeHint());
setMaximumSize(dateWidget->tqsizeHint()); setMaximumSize(dateWidget->sizeHint());
resize(tqminimumSize()); resize(minimumSize());
connect(dateWidget, TQT_SIGNAL(dateSelected(TQDate)), this, TQT_SLOT(setDate(TQDate))); connect(dateWidget, TQT_SIGNAL(dateSelected(TQDate)), this, TQT_SLOT(setDate(TQDate)));
connect(dateWidget, TQT_SIGNAL(dateEntered(TQDate)), this, TQT_SLOT(setDate(TQDate))); connect(dateWidget, TQT_SIGNAL(dateEntered(TQDate)), this, TQT_SLOT(setDate(TQDate)));

@ -103,7 +103,7 @@ class KRGetDate : public KDialog {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KRGetDate(TQDate date=TQDate::tqcurrentDate(), TQWidget *parent = 0, const char *name = 0); KRGetDate(TQDate date=TQDate::currentDate(), TQWidget *parent = 0, const char *name = 0);
TQDate getDate(); TQDate getDate();
private slots: private slots:

@ -56,7 +56,7 @@ KRMaskChoice::KRMaskChoice( TQWidget* parent, const char* name, bool modal, WFl
setName( "KRMaskChoice" ); setName( "KRMaskChoice" );
resize( 401, 314 ); resize( 401, 314 );
setCaption( i18n( "Choose Files" ) ); setCaption( i18n( "Choose Files" ) );
tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5 ) ); setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5 ) );
selection = new TQComboBox( FALSE, this, "selection" ); selection = new TQComboBox( FALSE, this, "selection" );
int height = TQFontMetrics( selection->font() ).height(); int height = TQFontMetrics( selection->font() ).height();

@ -81,9 +81,9 @@ KrProgress::KrProgress( KIO::Job* job )
hBox->addWidget(resumeLabel); hBox->addWidget(resumeLabel);
progressLabel = new TQLabel( this ); progressLabel = new TQLabel( this );
/* progressLabel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding, /* progressLabel->setSizePolicy( TQSizePolicy( TQSizePolicy::MinimumExpanding,
TQSizePolicy::Preferred ) );*/ TQSizePolicy::Preferred ) );*/
progressLabel->tqsetAlignment( TQLabel::AlignRight ); progressLabel->setAlignment( TQLabel::AlignRight );
hBox->addWidget( progressLabel ); hBox->addWidget( progressLabel );
hBox = new TQHBoxLayout(); hBox = new TQHBoxLayout();
@ -106,8 +106,8 @@ KrProgress::KrProgress( KIO::Job* job )
connect( pb, TQT_SIGNAL( clicked() ), TQT_SLOT( slotStop() ) ); connect( pb, TQT_SIGNAL( clicked() ), TQT_SLOT( slotStop() ) );
hBox->addWidget( pb ); hBox->addWidget( pb );
resize( tqsizeHint() ); resize( sizeHint() );
setMaximumHeight(tqsizeHint().height()); setMaximumHeight(sizeHint().height());
setCaption(i18n("Krusader Progress")); // show something better than kio_uiserver setCaption(i18n("Krusader Progress")); // show something better than kio_uiserver
@ -180,7 +180,7 @@ void KrProgress::slotPercent( KIO::Job*, unsigned long percent ){
void KrProgress::slotInfoMessage( KIO::Job*, const TQString & msg ) void KrProgress::slotInfoMessage( KIO::Job*, const TQString & msg )
{ {
speedLabel->setText( msg ); speedLabel->setText( msg );
speedLabel->tqsetAlignment( speedLabel->tqalignment() & ~TQt::WordBreak ); speedLabel->setAlignment( speedLabel->tqalignment() & ~TQt::WordBreak );
} }

@ -48,7 +48,7 @@ newFTPGUI::newFTPGUI( TQWidget* parent, const char* name, bool modal, WFlags fl
resize( 342, 261 ); resize( 342, 261 );
setCaption( i18n( "New Network Connection" ) ); setCaption( i18n( "New Network Connection" ) );
// setSizeGripEnabled( TRUE ); // setSizeGripEnabled( TRUE );
tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) ); setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, sizePolicy().hasHeightForWidth() ) );
setMinimumSize( TQSize( 342, 261 ) ); setMinimumSize( TQSize( 342, 261 ) );
@ -57,7 +57,7 @@ newFTPGUI::newFTPGUI( TQWidget* parent, const char* name, bool modal, WFlags fl
PixmapLabel1 = new TQLabel( hbox_image, "PixmapLabel1" ); PixmapLabel1 = new TQLabel( hbox_image, "PixmapLabel1" );
PixmapLabel1->setPixmap( krLoader->loadIcon("network", KIcon::Desktop, 32) ); PixmapLabel1->setPixmap( krLoader->loadIcon("network", KIcon::Desktop, 32) );
PixmapLabel1->tqsetSizePolicy( SIZE_MINIMUM ); PixmapLabel1->setSizePolicy( SIZE_MINIMUM );
TextLabel3 = new TQLabel( i18n( "About to connect to..." ), hbox_image, "TextLabel3" ); TextLabel3 = new TQLabel( i18n( "About to connect to..." ), hbox_image, "TextLabel3" );
TQFont TextLabel3_font( TextLabel3->font() ); TQFont TextLabel3_font( TextLabel3->font() );
@ -84,7 +84,7 @@ newFTPGUI::newFTPGUI( TQWidget* parent, const char* name, bool modal, WFlags fl
prefix->insertItem( i18n( "sftp://" )); prefix->insertItem( i18n( "sftp://" ));
prefix->setAcceptDrops( FALSE ); prefix->setAcceptDrops( FALSE );
prefix->setEnabled( TRUE ); prefix->setEnabled( TRUE );
prefix->tqsetSizePolicy( SIZE_MINIMUM ); prefix->setSizePolicy( SIZE_MINIMUM );
connect( prefix,TQT_SIGNAL(activated(const TQString& )), connect( prefix,TQT_SIGNAL(activated(const TQString& )),
this,TQT_SLOT(slotTextChanged(const TQString& ))); this,TQT_SLOT(slotTextChanged(const TQString& )));
@ -104,7 +104,7 @@ newFTPGUI::newFTPGUI( TQWidget* parent, const char* name, bool modal, WFlags fl
port = new TQSpinBox( grid_host, "port" ); port = new TQSpinBox( grid_host, "port" );
port->setMaxValue( 65535 ); port->setMaxValue( 65535 );
port->setValue( 21 ); port->setValue( 21 );
port->tqsetSizePolicy( SIZE_MINIMUM ); port->setSizePolicy( SIZE_MINIMUM );
TextLabel1_2 = new TQLabel( i18n( "Username:" ), this, "TextLabel1_2" ); TextLabel1_2 = new TQLabel( i18n( "Username:" ), this, "TextLabel1_2" );

@ -82,7 +82,7 @@ PackGUIBase::PackGUIBase( TQWidget* parent, const char* name, bool modal, WFlag
hbox->addWidget( nameData ); hbox->addWidget( nameData );
typeData = new TQComboBox( FALSE, this, "typeData" ); typeData = new TQComboBox( FALSE, this, "typeData" );
typeData->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0 ) ); typeData->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0 ) );
connect( typeData, TQT_SIGNAL( activated( const TQString & ) ), this, TQT_SLOT( checkConsistency() ) ); connect( typeData, TQT_SIGNAL( activated( const TQString & ) ), this, TQT_SLOT( checkConsistency() ) );
connect( typeData, TQT_SIGNAL( highlighted( const TQString & ) ), this, TQT_SLOT( checkConsistency() ) ); connect( typeData, TQT_SIGNAL( highlighted( const TQString & ) ), this, TQT_SLOT( checkConsistency() ) );
hbox->addWidget( typeData ); hbox->addWidget( typeData );
@ -115,7 +115,7 @@ PackGUIBase::PackGUIBase( TQWidget* parent, const char* name, bool modal, WFlag
PixmapLabel1 = new TQLabel( this, "PixmapLabel1" ); PixmapLabel1 = new TQLabel( this, "PixmapLabel1" );
PixmapLabel1->setPixmap( krLoader->loadIcon("package", KIcon::Desktop, 32) ); PixmapLabel1->setPixmap( krLoader->loadIcon("package", KIcon::Desktop, 32) );
PixmapLabel1->setScaledContents( TRUE ); PixmapLabel1->setScaledContents( TRUE );
PixmapLabel1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0 ) ); PixmapLabel1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0 ) );
hbox_3->addWidget( PixmapLabel1 ); hbox_3->addWidget( PixmapLabel1 );
TextLabel1 = new TQLabel( this, "TextLabel1" ); TextLabel1 = new TQLabel( this, "TextLabel1" );
@ -188,7 +188,7 @@ PackGUIBase::PackGUIBase( TQWidget* parent, const char* name, bool modal, WFlag
TQHBox * minmaxHBox = new TQHBox( sliderVBox ); TQHBox * minmaxHBox = new TQHBox( sliderVBox );
minLabel = new TQLabel( i18n("MIN"), minmaxHBox ); minLabel = new TQLabel( i18n("MIN"), minmaxHBox );
maxLabel = new TQLabel( i18n("MAX"), minmaxHBox ); maxLabel = new TQLabel( i18n("MAX"), minmaxHBox );
maxLabel->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); maxLabel->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
sliderHbox->addWidget( sliderVBox ); sliderHbox->addWidget( sliderVBox );
@ -249,7 +249,7 @@ PackGUIBase::PackGUIBase( TQWidget* parent, const char* name, bool modal, WFlag
hbox_7->setMargin( 0 ); hbox_7->setMargin( 0 );
TextLabel8 = new TQLabel( i18n( "Command line switches:" ), advancedWidget, "TextLabel8" ); TextLabel8 = new TQLabel( i18n( "Command line switches:" ), advancedWidget, "TextLabel8" );
TextLabel8->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); TextLabel8->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
hbox_7->addWidget( TextLabel8 ); hbox_7->addWidget( TextLabel8 );
commandLineSwitches = new KHistoryCombo( advancedWidget, "commandLineSwitches" ); commandLineSwitches = new KHistoryCombo( advancedWidget, "commandLineSwitches" );
@ -321,7 +321,7 @@ void PackGUIBase::expand() {
else { else {
advancedWidget->hide(); advancedWidget->hide();
tqlayout()->activate(); tqlayout()->activate();
TQSize minSize = tqminimumSize(); TQSize minSize = minimumSize();
resize( width(), minSize.height() ); resize( width(), minSize.height() );
} }
show(); show();

@ -136,7 +136,7 @@ void PercentalSplitter::setRubberband ( int p ) {
label->setAutoMask( FALSE ); label->setAutoMask( FALSE );
label->setFrameStyle( TQFrame::Plain | TQFrame::Box ); label->setFrameStyle( TQFrame::Plain | TQFrame::Box );
label->setLineWidth( 1 ); label->setLineWidth( 1 );
label->tqsetAlignment( AlignAuto | AlignTop ); label->setAlignment( AlignAuto | AlignTop );
label->setIndent(0); label->setIndent(0);
TQFontMetrics fm = label->fontMetrics(); TQFontMetrics fm = label->fontMetrics();

@ -296,7 +296,7 @@ void PopularUrlsDlg::run(KURL::List list) {
} }
//urls->setCurrentItem(urls->firstChild()); //urls->setCurrentItem(urls->firstChild());
//urls->setSelected(urls->firstChild(), true); //urls->setSelected(urls->firstChild(), true);
setMinimumSize(urls->tqsizeHint().width()+45, 400); setMinimumSize(urls->sizeHint().width()+45, 400);
search->clear(); search->clear();
search->setFocus(); search->setFocus();

@ -91,7 +91,7 @@ LoaderWidget::LoaderWidget( TQWidget *parent, const char *name ) : TQScrollView(
loaderBox->setColumnLayout(0, Qt::Vertical ); loaderBox->setColumnLayout(0, Qt::Vertical );
loaderBox->tqlayout()->setSpacing( 0 ); loaderBox->tqlayout()->setSpacing( 0 );
loaderBox->tqlayout()->setMargin( 0 ); loaderBox->tqlayout()->setMargin( 0 );
loaderBox->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); loaderBox->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
loaderBox->setFrameStyle( TQFrame::Panel + TQFrame::Raised ); loaderBox->setFrameStyle( TQFrame::Panel + TQFrame::Raised );
loaderBox->setLineWidth( 2 ); loaderBox->setLineWidth( 2 );
@ -100,7 +100,7 @@ LoaderWidget::LoaderWidget( TQWidget *parent, const char *name ) : TQScrollView(
synchGrid->setMargin( 11 ); synchGrid->setMargin( 11 );
TQLabel *titleLabel = new TQLabel( i18n( "Loading Usage Information" ), loaderBox, "titleLabel" ); TQLabel *titleLabel = new TQLabel( i18n( "Loading Usage Information" ), loaderBox, "titleLabel" );
titleLabel->tqsetAlignment( TQt::AlignHCenter ); titleLabel->setAlignment( TQt::AlignHCenter );
synchGrid->addMultiCellWidget( titleLabel, 0, 0, 0, 1 ); synchGrid->addMultiCellWidget( titleLabel, 0, 0, 0, 1 );
TQLabel *filesLabel = new TQLabel( i18n( "Files:" ), loaderBox, "filesLabel" ); TQLabel *filesLabel = new TQLabel( i18n( "Files:" ), loaderBox, "filesLabel" );
@ -121,19 +121,19 @@ LoaderWidget::LoaderWidget( TQWidget *parent, const char *name ) : TQScrollView(
files = new TQLabel( loaderBox, "files" ); files = new TQLabel( loaderBox, "files" );
files->setFrameShape( TQLabel::StyledPanel ); files->setFrameShape( TQLabel::StyledPanel );
files->setFrameShadow( TQLabel::Sunken ); files->setFrameShadow( TQLabel::Sunken );
files->tqsetAlignment( TQt::AlignRight ); files->setAlignment( TQt::AlignRight );
synchGrid->addWidget( files, 1, 1 ); synchGrid->addWidget( files, 1, 1 );
directories = new TQLabel( loaderBox, "directories" ); directories = new TQLabel( loaderBox, "directories" );
directories->setFrameShape( TQLabel::StyledPanel ); directories->setFrameShape( TQLabel::StyledPanel );
directories->setFrameShadow( TQLabel::Sunken ); directories->setFrameShadow( TQLabel::Sunken );
directories->tqsetAlignment( TQt::AlignRight ); directories->setAlignment( TQt::AlignRight );
synchGrid->addWidget( directories, 2, 1 ); synchGrid->addWidget( directories, 2, 1 );
totalSize = new TQLabel( loaderBox, "totalSize" ); totalSize = new TQLabel( loaderBox, "totalSize" );
totalSize->setFrameShape( TQLabel::StyledPanel ); totalSize->setFrameShape( TQLabel::StyledPanel );
totalSize->setFrameShadow( TQLabel::Sunken ); totalSize->setFrameShadow( TQLabel::Sunken );
totalSize->tqsetAlignment( TQt::AlignRight ); totalSize->setAlignment( TQt::AlignRight );
synchGrid->addWidget( totalSize, 3, 1 ); synchGrid->addWidget( totalSize, 3, 1 );
int width; int width;
@ -530,7 +530,7 @@ int DiskUsage::exclude( File *file, bool calcPercents, int depth )
{ {
calculateSizes( root, true ); calculateSizes( root, true );
calculatePercents( true ); calculatePercents( true );
createtqStatus(); createStatus();
} }
if( depth == 0 && changeNr != 0 ) if( depth == 0 && changeNr != 0 )
@ -572,7 +572,7 @@ void DiskUsage::includeAll()
include( root ); include( root );
calculateSizes( root, true ); calculateSizes( root, true );
calculatePercents( true ); calculatePercents( true );
createtqStatus(); createStatus();
} }
int DiskUsage::del( File *file, bool calcPercents, int depth ) int DiskUsage::del( File *file, bool calcPercents, int depth )
@ -668,13 +668,13 @@ int DiskUsage::del( File *file, bool calcPercents, int depth )
delete file; delete file;
if( depth == 0 ) if( depth == 0 )
createtqStatus(); createStatus();
if( calcPercents ) if( calcPercents )
{ {
calculateSizes( root, true ); calculateSizes( root, true );
calculatePercents( true ); calculatePercents( true );
createtqStatus(); createStatus();
emit enteringDirectory( currentDirectory ); emit enteringDirectory( currentDirectory );
} }
@ -713,7 +713,7 @@ void DiskUsage::removeProperty( File *item, TQString key )
propertyMap.remove( item ); propertyMap.remove( item );
} }
void DiskUsage::createtqStatus() void DiskUsage::createStatus()
{ {
Directory *dirEntry = currentDirectory; Directory *dirEntry = currentDirectory;
@ -737,7 +737,7 @@ void DiskUsage::changeDirectory( Directory *dir )
currentSize = dir->size(); currentSize = dir->size();
calculatePercents( true, dir ); calculatePercents( true, dir );
createtqStatus(); createStatus();
emit enteringDirectory( dir ); emit enteringDirectory( dir );
} }

@ -136,7 +136,7 @@ protected:
int calculateSizes( Directory *dir = 0, bool emitSig = false, int depth = 0 ); int calculateSizes( Directory *dir = 0, bool emitSig = false, int depth = 0 );
int calculatePercents( bool emitSig = false, Directory *dir = 0 , int depth = 0 ); int calculatePercents( bool emitSig = false, Directory *dir = 0 , int depth = 0 );
int include( Directory *dir, int depth = 0 ); int include( Directory *dir, int depth = 0 );
void createtqStatus(); void createStatus();
void executeAction( int, File * = 0 ); void executeAction( int, File * = 0 );
KURL baseURL; //< the base URL of loading KURL baseURL; //< the base URL of loading

@ -53,7 +53,7 @@ DiskUsageGUI::DiskUsageGUI( KURL openDir, TQWidget* parent, const char *name )
duGrid->setMargin( 11 ); duGrid->setMargin( 11 );
TQHBox *duTools = new TQHBox( this, "duTools" ); TQHBox *duTools = new TQHBox( this, "duTools" );
duTools->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); duTools->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
btnNewSearch = new TQToolButton( duTools, "btnNewSearch" ); btnNewSearch = new TQToolButton( duTools, "btnNewSearch" );
btnNewSearch->setIconSet( TQIconSet(krLoader->loadIcon("fileopen",KIcon::Desktop)) ); btnNewSearch->setIconSet( TQIconSet(krLoader->loadIcon("fileopen",KIcon::Desktop)) );
@ -100,7 +100,7 @@ DiskUsageGUI::DiskUsageGUI( KURL openDir, TQWidget* parent, const char *name )
status->setFrameShadow( TQLabel::Sunken ); status->setFrameShadow( TQLabel::Sunken );
duGrid->addWidget( status, 2, 0 ); duGrid->addWidget( status, 2, 0 );
connect( diskUsage, TQT_SIGNAL( status( TQString ) ), this, TQT_SLOT( settqStatus( TQString ) ) ); connect( diskUsage, TQT_SIGNAL( status( TQString ) ), this, TQT_SLOT( setStatus( TQString ) ) );
connect( diskUsage, TQT_SIGNAL( viewChanged( int ) ), this, TQT_SLOT( slotViewChanged( int ) ) ); connect( diskUsage, TQT_SIGNAL( viewChanged( int ) ), this, TQT_SLOT( slotViewChanged( int ) ) );
connect( diskUsage, TQT_SIGNAL( newSearch() ), this, TQT_SLOT( newSearch() ) ); connect( diskUsage, TQT_SIGNAL( newSearch() ), this, TQT_SLOT( newSearch() ) );
connect( diskUsage, TQT_SIGNAL( loadFinished( bool ) ), this, TQT_SLOT( slotLoadFinished( bool ) ) ); connect( diskUsage, TQT_SIGNAL( loadFinished( bool ) ), this, TQT_SLOT( slotLoadFinished( bool ) ) );
@ -178,7 +178,7 @@ void DiskUsageGUI::loadUsageInfo()
diskUsage->load( baseDirectory ); diskUsage->load( baseDirectory );
} }
void DiskUsageGUI::settqStatus( TQString stat ) void DiskUsageGUI::setStatus( TQString stat )
{ {
status->setText( stat ); status->setText( stat );
} }

@ -52,7 +52,7 @@ public:
public slots: public slots:
void loadUsageInfo(); void loadUsageInfo();
bool newSearch(); bool newSearch();
void settqStatus( TQString ); void setStatus( TQString );
void selectLinesView() { diskUsage->setView( VIEW_LINES ); } void selectLinesView() { diskUsage->setView( VIEW_LINES ); }
void selectListView() { diskUsage->setView( VIEW_DETAILED ); } void selectListView() { diskUsage->setView( VIEW_DETAILED ); }

@ -201,7 +201,7 @@ void DULinesToolTip::maybeTip( const TQPoint &pos )
int width = item->width( TQFontMetrics( view->font() ), view, col ); int width = item->width( TQFontMetrics( view->font() ), view, col );
TQRect r = view->tqitemRect( item ); TQRect r = view->itemRect( item );
int headerPos = view->header()->sectionPos( col ); int headerPos = view->header()->sectionPos( col );
r.setLeft( headerPos ); r.setLeft( headerPos );
r.setRight( headerPos + view->header()->sectionSize( col ) ); r.setRight( headerPos + view->header()->sectionSize( col ) );

@ -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 tqminimumSize criteria as in the visual function //**** because I don't use the same minimumSize 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!

@ -55,13 +55,13 @@ AdvancedFilter::AdvancedFilter( FilterTabs *tabs, TQWidget *parent, const char *
// Options for size // Options for size
TQGroupBox *sizeGroup = new TQGroupBox( this, "sizeGroup" ); TQGroupBox *sizeGroup = new TQGroupBox( this, "sizeGroup" );
sizeGroup->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, sizeGroup->sizePolicy().hasHeightForWidth() ) ); sizeGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)1, sizeGroup->sizePolicy().hasHeightForWidth() ) );
sizeGroup->setTitle( i18n( "Size" ) ); sizeGroup->setTitle( i18n( "Size" ) );
sizeGroup->setColumnLayout(0, Qt::Vertical ); sizeGroup->setColumnLayout(0, Qt::Vertical );
sizeGroup->tqlayout()->setSpacing( 0 ); sizeGroup->tqlayout()->setSpacing( 0 );
sizeGroup->tqlayout()->setMargin( 0 ); sizeGroup->tqlayout()->setMargin( 0 );
TQGridLayout *sizeLayout = new TQGridLayout( sizeGroup->tqlayout() ); TQGridLayout *sizeLayout = new TQGridLayout( sizeGroup->tqlayout() );
sizeLayout->tqsetAlignment( TQt::AlignTop ); sizeLayout->setAlignment( TQt::AlignTop );
sizeLayout->setSpacing( 6 ); sizeLayout->setSpacing( 6 );
sizeLayout->setMargin( 11 ); sizeLayout->setMargin( 11 );
@ -71,7 +71,7 @@ AdvancedFilter::AdvancedFilter( FilterTabs *tabs, TQWidget *parent, const char *
biggerThanAmount = new TQLineEdit( sizeGroup, "biggerThanAmount" ); biggerThanAmount = new TQLineEdit( sizeGroup, "biggerThanAmount" );
biggerThanAmount->setEnabled( false ); biggerThanAmount->setEnabled( false );
biggerThanAmount->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, biggerThanAmount->sizePolicy().hasHeightForWidth() ) ); biggerThanAmount->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, biggerThanAmount->sizePolicy().hasHeightForWidth() ) );
sizeLayout->addWidget( biggerThanAmount, 0, 1 ); sizeLayout->addWidget( biggerThanAmount, 0, 1 );
biggerThanType = new KComboBox( false, sizeGroup, "biggerThanType" ); biggerThanType = new KComboBox( false, sizeGroup, "biggerThanType" );
@ -87,7 +87,7 @@ AdvancedFilter::AdvancedFilter( FilterTabs *tabs, TQWidget *parent, const char *
smallerThanAmount = new TQLineEdit( sizeGroup, "smallerThanAmount" ); smallerThanAmount = new TQLineEdit( sizeGroup, "smallerThanAmount" );
smallerThanAmount->setEnabled( false ); smallerThanAmount->setEnabled( false );
smallerThanAmount->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, smallerThanAmount->sizePolicy().hasHeightForWidth() ) ); smallerThanAmount->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed, smallerThanAmount->sizePolicy().hasHeightForWidth() ) );
sizeLayout->addWidget( smallerThanAmount, 0, 4 ); sizeLayout->addWidget( smallerThanAmount, 0, 4 );
smallerThanType = new KComboBox( false, sizeGroup, "smallerThanType" ); smallerThanType = new KComboBox( false, sizeGroup, "smallerThanType" );
@ -116,7 +116,7 @@ AdvancedFilter::AdvancedFilter( FilterTabs *tabs, TQWidget *parent, const char *
dateGroup->tqlayout()->setSpacing( 0 ); dateGroup->tqlayout()->setSpacing( 0 );
dateGroup->tqlayout()->setMargin( 0 ); dateGroup->tqlayout()->setMargin( 0 );
TQGridLayout *dateLayout = new TQGridLayout( dateGroup->tqlayout() ); TQGridLayout *dateLayout = new TQGridLayout( dateGroup->tqlayout() );
dateLayout->tqsetAlignment( TQt::AlignTop ); dateLayout->setAlignment( TQt::AlignTop );
dateLayout->setSpacing( 6 ); dateLayout->setSpacing( 6 );
dateLayout->setMargin( 11 ); dateLayout->setMargin( 11 );
@ -215,7 +215,7 @@ AdvancedFilter::AdvancedFilter( FilterTabs *tabs, TQWidget *parent, const char *
ownershipGroup->tqlayout()->setSpacing( 0 ); ownershipGroup->tqlayout()->setSpacing( 0 );
ownershipGroup->tqlayout()->setMargin( 0 ); ownershipGroup->tqlayout()->setMargin( 0 );
TQGridLayout *ownershipLayout = new TQGridLayout( ownershipGroup->tqlayout() ); TQGridLayout *ownershipLayout = new TQGridLayout( ownershipGroup->tqlayout() );
ownershipLayout->tqsetAlignment( TQt::AlignTop ); ownershipLayout->setAlignment( TQt::AlignTop );
ownershipLayout->setSpacing( 6 ); ownershipLayout->setSpacing( 6 );
ownershipLayout->setMargin( 11 ); ownershipLayout->setMargin( 11 );
@ -423,7 +423,7 @@ void AdvancedFilter::notModifiedAfterSetDate()
void AdvancedFilter::changeDate(TQLineEdit *p) { void AdvancedFilter::changeDate(TQLineEdit *p) {
// check if the current date is valid // check if the current date is valid
TQDate d = KGlobal::locale()->readDate(p->text()); TQDate d = KGlobal::locale()->readDate(p->text());
if (!d.isValid()) d = TQDate::tqcurrentDate(); if (!d.isValid()) d = TQDate::currentDate();
KRGetDate *gd = new KRGetDate(d, this); KRGetDate *gd = new KRGetDate(d, this);
d = gd->getDate(); d = gd->getDate();
@ -547,7 +547,7 @@ bool AdvancedFilter::fillQuery( KRQuery *query )
} else if (modifiedInTheLastEnabled->isChecked()) { } else if (modifiedInTheLastEnabled->isChecked()) {
if ( !(modifiedInTheLastData->text().simplifyWhiteSpace().isEmpty() && if ( !(modifiedInTheLastData->text().simplifyWhiteSpace().isEmpty() &&
notModifiedInTheLastData->text().simplifyWhiteSpace().isEmpty()) ) { notModifiedInTheLastData->text().simplifyWhiteSpace().isEmpty()) ) {
TQDate d1 = TQDate::tqcurrentDate(); TQDate d2 = TQDate::tqcurrentDate(); TQDate d1 = TQDate::currentDate(); TQDate d2 = TQDate::currentDate();
if (!modifiedInTheLastData->text().simplifyWhiteSpace().isEmpty()) { if (!modifiedInTheLastData->text().simplifyWhiteSpace().isEmpty()) {
int tmp1 = modifiedInTheLastData->text().simplifyWhiteSpace().toInt(); int tmp1 = modifiedInTheLastData->text().simplifyWhiteSpace().toInt();
switch (modifiedInTheLastType->currentItem()) { switch (modifiedInTheLastType->currentItem()) {

@ -57,7 +57,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
nameGroup->tqlayout()->setSpacing( 0 ); nameGroup->tqlayout()->setSpacing( 0 );
nameGroup->tqlayout()->setMargin( 0 ); nameGroup->tqlayout()->setMargin( 0 );
TQGridLayout *nameGroupLayout = new TQGridLayout( nameGroup->tqlayout() ); TQGridLayout *nameGroupLayout = new TQGridLayout( nameGroup->tqlayout() );
nameGroupLayout->tqsetAlignment( TQt::AlignTop ); nameGroupLayout->setAlignment( TQt::AlignTop );
nameGroupLayout->setSpacing( 6 ); nameGroupLayout->setSpacing( 6 );
nameGroupLayout->setMargin( 11 ); nameGroupLayout->setMargin( 11 );
@ -71,7 +71,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
nameGroupLayout->addWidget( searchForLabel, 0, 0 ); nameGroupLayout->addWidget( searchForLabel, 0, 0 );
searchFor = new KHistoryCombo( false, nameGroup, "searchFor" ); searchFor = new KHistoryCombo( false, nameGroup, "searchFor" );
searchFor->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, searchFor->sizePolicy().hasHeightForWidth() ) ); searchFor->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, searchFor->sizePolicy().hasHeightForWidth() ) );
searchFor->setEditable( true ); searchFor->setEditable( true );
searchFor->setDuplicatesEnabled( false ); searchFor->setDuplicatesEnabled( false );
searchFor->setMaxCount( 25 ); searchFor->setMaxCount( 25 );
@ -87,7 +87,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
nameGroupLayout->addWidget( searchType, 1, 0 ); nameGroupLayout->addWidget( searchType, 1, 0 );
ofType = new KComboBox( false, nameGroup, "ofType" ); ofType = new KComboBox( false, nameGroup, "ofType" );
ofType->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, ofType->sizePolicy().hasHeightForWidth() ) ); ofType->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, ofType->sizePolicy().hasHeightForWidth() ) );
ofType->setEditable( false ); ofType->setEditable( false );
searchType->setBuddy(ofType); searchType->setBuddy(ofType);
ofType->insertItem(i18n("All Files")); ofType->insertItem(i18n("All Files"));
@ -117,7 +117,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
profileHandler->tqlayout()->setSpacing( 0 ); profileHandler->tqlayout()->setSpacing( 0 );
profileHandler->tqlayout()->setMargin( 0 ); profileHandler->tqlayout()->setMargin( 0 );
TQGridLayout *profileLayout = new TQGridLayout( profileHandler->tqlayout() ); TQGridLayout *profileLayout = new TQGridLayout( profileHandler->tqlayout() );
profileLayout->tqsetAlignment( TQt::AlignTop ); profileLayout->setAlignment( TQt::AlignTop );
profileLayout->setSpacing( 6 ); profileLayout->setSpacing( 6 );
profileLayout->setMargin( 11 ); profileLayout->setMargin( 11 );
@ -157,7 +157,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
searchInGroup->tqlayout()->setSpacing( 0 ); searchInGroup->tqlayout()->setSpacing( 0 );
searchInGroup->tqlayout()->setMargin( 0 ); searchInGroup->tqlayout()->setMargin( 0 );
TQGridLayout *searchInLayout = new TQGridLayout( searchInGroup->tqlayout() ); TQGridLayout *searchInLayout = new TQGridLayout( searchInGroup->tqlayout() );
searchInLayout->tqsetAlignment( TQt::AlignTop ); searchInLayout->setAlignment( TQt::AlignTop );
searchInLayout->setSpacing( 6 ); searchInLayout->setSpacing( 6 );
searchInLayout->setMargin( 11 ); searchInLayout->setMargin( 11 );
@ -177,7 +177,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
dontSearchInGroup->tqlayout()->setSpacing( 0 ); dontSearchInGroup->tqlayout()->setSpacing( 0 );
dontSearchInGroup->tqlayout()->setMargin( 0 ); dontSearchInGroup->tqlayout()->setMargin( 0 );
TQGridLayout *dontSearchInLayout = new TQGridLayout( dontSearchInGroup->tqlayout() ); TQGridLayout *dontSearchInLayout = new TQGridLayout( dontSearchInGroup->tqlayout() );
dontSearchInLayout->tqsetAlignment( TQt::AlignTop ); dontSearchInLayout->setAlignment( TQt::AlignTop );
dontSearchInLayout->setSpacing( 6 ); dontSearchInLayout->setSpacing( 6 );
dontSearchInLayout->setMargin( 11 ); dontSearchInLayout->setMargin( 11 );
@ -197,7 +197,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
containsGroup->tqlayout()->setSpacing( 0 ); containsGroup->tqlayout()->setSpacing( 0 );
containsGroup->tqlayout()->setMargin( 0 ); containsGroup->tqlayout()->setMargin( 0 );
TQGridLayout *containsLayout = new TQGridLayout( containsGroup->tqlayout() ); TQGridLayout *containsLayout = new TQGridLayout( containsGroup->tqlayout() );
containsLayout->tqsetAlignment( TQt::AlignTop ); containsLayout->setAlignment( TQt::AlignTop );
containsLayout->setSpacing( 6 ); containsLayout->setSpacing( 6 );
containsLayout->setMargin( 11 ); containsLayout->setMargin( 11 );
@ -206,12 +206,12 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
containsTextLayout->setMargin( 0 ); containsTextLayout->setMargin( 0 );
TQLabel *containsLabel = new TQLabel( containsGroup, "containsLabel" ); TQLabel *containsLabel = new TQLabel( containsGroup, "containsLabel" );
containsLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)1, containsLabel->sizePolicy().hasHeightForWidth() ) ); containsLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)1, containsLabel->sizePolicy().hasHeightForWidth() ) );
containsLabel->setText( i18n( "&Text:" ) ); containsLabel->setText( i18n( "&Text:" ) );
containsTextLayout->addWidget( containsLabel ); containsTextLayout->addWidget( containsLabel );
containsText = new KHistoryCombo( false, containsGroup, "containsText" ); containsText = new KHistoryCombo( false, containsGroup, "containsText" );
containsText->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, containsText->sizePolicy().hasHeightForWidth() ) ); containsText->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, containsText->sizePolicy().hasHeightForWidth() ) );
containsText->setDuplicatesEnabled( false ); containsText->setDuplicatesEnabled( false );
containsText->setMaxCount( 25 ); containsText->setMaxCount( 25 );
containsTextLayout->addWidget( containsText ); containsTextLayout->addWidget( containsText );
@ -226,7 +226,7 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
containsCbsLayout->addItem( cbSpacer ); containsCbsLayout->addItem( cbSpacer );
remoteContentSearch = new TQCheckBox( containsGroup, "remoteContentSearch" ); remoteContentSearch = new TQCheckBox( containsGroup, "remoteContentSearch" );
remoteContentSearch->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, remoteContentSearch->sizePolicy().hasHeightForWidth() ) ); remoteContentSearch->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, remoteContentSearch->sizePolicy().hasHeightForWidth() ) );
remoteContentSearch->setText( i18n( "&Remote content search" ) ); remoteContentSearch->setText( i18n( "&Remote content search" ) );
remoteContentSearch->setChecked( false ); remoteContentSearch->setChecked( false );
containsCbsLayout->addWidget( remoteContentSearch ); containsCbsLayout->addWidget( remoteContentSearch );
@ -234,13 +234,13 @@ GeneralFilter::GeneralFilter( FilterTabs *tabs, int properties, TQWidget *parent
remoteContentSearch->hide(); remoteContentSearch->hide();
containsWholeWord = new TQCheckBox( containsGroup, "containsWholeWord" ); containsWholeWord = new TQCheckBox( containsGroup, "containsWholeWord" );
containsWholeWord->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, containsWholeWord->sizePolicy().hasHeightForWidth() ) ); containsWholeWord->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, containsWholeWord->sizePolicy().hasHeightForWidth() ) );
containsWholeWord->setText( i18n( "&Match whole word only" ) ); containsWholeWord->setText( i18n( "&Match whole word only" ) );
containsWholeWord->setChecked( false ); containsWholeWord->setChecked( false );
containsCbsLayout->addWidget( containsWholeWord ); containsCbsLayout->addWidget( containsWholeWord );
containsTextCase = new TQCheckBox( containsGroup, "containsTextCase" ); containsTextCase = new TQCheckBox( containsGroup, "containsTextCase" );
containsTextCase->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, containsTextCase->sizePolicy().hasHeightForWidth() ) ); containsTextCase->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, containsTextCase->sizePolicy().hasHeightForWidth() ) );
containsTextCase->setText( i18n( "Cas&e sensitive" ) ); containsTextCase->setText( i18n( "Cas&e sensitive" ) );
containsTextCase->setChecked( true ); containsTextCase->setChecked( true );
containsCbsLayout->addWidget( containsTextCase ); containsCbsLayout->addWidget( containsTextCase );

@ -62,14 +62,14 @@ KCMDLine::KCMDLine( TQWidget *parent, const char *name ) : TQWidget( parent, nam
path = new TQLabel( this ); path = new TQLabel( this );
TQWhatsThis::add TQWhatsThis::add
( path, i18n( "Name of directory where command will be processed." ) ); ( path, i18n( "Name of directory where command will be processed." ) );
path->tqsetAlignment( TQt::AlignRight ); path->setAlignment( TQt::AlignRight );
path->setFrameStyle( TQFrame::Box | TQFrame::Sunken ); path->setFrameStyle( TQFrame::Box | TQFrame::Sunken );
path->setLineWidth( 1 ); path->setLineWidth( 1 );
path->setFont( KGlobalSettings::generalFont() ); path->setFont( KGlobalSettings::generalFont() );
int height = TQFontMetrics( KGlobalSettings::generalFont() ).height(); int height = TQFontMetrics( KGlobalSettings::generalFont() ).height();
height = height + 5*(height > 14) + 6; height = height + 5*(height > 14) + 6;
path->setMaximumHeight( height ); path->setMaximumHeight( height );
path->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred)); path->setSizePolicy(TQSizePolicy(TQSizePolicy::Maximum, TQSizePolicy::Preferred));
tqlayout->addWidget( path, 0, 0 ); tqlayout->addWidget( path, 0, 0 );
// and editable command line // and editable command line
@ -80,7 +80,7 @@ KCMDLine::KCMDLine( TQWidget *parent, const char *name ) : TQWidget( parent, nam
cmdLine->setFont( KGlobalSettings::generalFont() ); cmdLine->setFont( KGlobalSettings::generalFont() );
cmdLine->setMaximumHeight( height ); cmdLine->setMaximumHeight( height );
cmdLine->setCompletionObject( &completion ); cmdLine->setCompletionObject( &completion );
cmdLine->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed)); cmdLine->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed));
// load the history // load the history
KConfigGroupSaver grpSvr( krConfig, "Private" ); KConfigGroupSaver grpSvr( krConfig, "Private" );
TQStringList list = krConfig->readListEntry( "cmdline history" ); TQStringList list = krConfig->readListEntry( "cmdline history" );

@ -41,7 +41,7 @@
#include "krremoteencodingmenu.h" #include "krremoteencodingmenu.h"
#define DATA_KEY TQString::tqfromLatin1("Charset") #define DATA_KEY TQString::fromLatin1("Charset")
KrRemoteEncodingMenu::KrRemoteEncodingMenu(const TQString &text, const TQString &icon, TQObject *parent, const char *name) : KrRemoteEncodingMenu::KrRemoteEncodingMenu(const TQString &text, const TQString &icon, TQObject *parent, const char *name) :
KActionMenu( text, icon, parent, name ), settingsLoaded( false ) KActionMenu( text, icon, parent, name ), settingsLoaded( false )

@ -34,13 +34,13 @@
#include "../resources.h" #include "../resources.h"
KrusadertqStatus::KrusadertqStatus(TQWidget *parent, const char *name ): KrusaderStatus::KrusaderStatus(TQWidget *parent, const char *name ):
KStatusBar(parent,name){ KStatusBar(parent,name){
insertItem(i18n("Ready."), S_READY_ID); insertItem(i18n("Ready."), S_READY_ID);
setMaximumHeight(TQFontMetrics(font()).height()+2); setMaximumHeight(TQFontMetrics(font()).height()+2);
} }
KrusadertqStatus::~KrusadertqStatus(){ KrusaderStatus::~KrusaderStatus(){
} }
#include "krusaderstatus.moc" #include "krusaderstatus.moc"

@ -42,12 +42,12 @@
#include <kstatusbar.h> #include <kstatusbar.h>
#include <klocale.h> #include <klocale.h>
class KrusadertqStatus : public KStatusBar { class KrusaderStatus : public KStatusBar {
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KrusadertqStatus(TQWidget *parent=0, const char *name=0); KrusaderStatus(TQWidget *parent=0, const char *name=0);
~KrusadertqStatus(); ~KrusaderStatus();
private: private:
TQLabel *mess; TQLabel *mess;

@ -56,8 +56,8 @@ void DiskUsageViewer::openURL( KURL url )
{ {
diskUsage = new DiskUsage( "DiskUsageViewer", this ); diskUsage = new DiskUsage( "DiskUsageViewer", this );
connect( diskUsage, TQT_SIGNAL( enteringDirectory( Directory * ) ), this, TQT_SLOT( slotUpdatetqStatus() ) ); connect( diskUsage, TQT_SIGNAL( enteringDirectory( Directory * ) ), this, TQT_SLOT( slotUpdateStatus() ) );
connect( diskUsage, TQT_SIGNAL( status( TQString ) ), this, TQT_SLOT( slotUpdatetqStatus( TQString ) ) ); connect( diskUsage, TQT_SIGNAL( status( TQString ) ), this, TQT_SLOT( slotUpdateStatus( TQString ) ) );
connect( diskUsage, TQT_SIGNAL( newSearch() ), this, TQT_SLOT( slotNewSearch() ) ); connect( diskUsage, TQT_SIGNAL( newSearch() ), this, TQT_SLOT( slotNewSearch() ) );
tqlayout->addWidget( diskUsage, 0, 0 ); tqlayout->addWidget( diskUsage, 0, 0 );
this->show(); this->show();
@ -109,7 +109,7 @@ void DiskUsageViewer::setStatusLabel( TQLabel *statLabel, TQString pref )
prefix = pref; prefix = pref;
} }
void DiskUsageViewer::slotUpdatetqStatus( TQString status ) void DiskUsageViewer::slotUpdateStatus( TQString status )
{ {
if( statusLabel ) { if( statusLabel ) {
if( status.isEmpty() ) { if( status.isEmpty() ) {

@ -55,7 +55,7 @@ signals:
void openURLRequest(const KURL &); void openURLRequest(const KURL &);
protected slots: protected slots:
void slotUpdatetqStatus( TQString status = TQString() ); void slotUpdateStatus( TQString status = TQString() );
void slotNewSearch(); void slotNewSearch();
protected: protected:

@ -36,8 +36,8 @@ m_job( 0L ) {
imageLabel = new TQLabel( this ); imageLabel = new TQLabel( this );
imageLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); imageLabel->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
imageLabel->tqsetAlignment( TQt::AlignHCenter | TQt::AlignVCenter ); imageLabel->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter );
imageLabel->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored ) ); imageLabel->setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored ) );
vb->addWidget( imageLabel, 1 ); vb->addWidget( imageLabel, 1 );
timer = new TQTimer( this ); timer = new TQTimer( this );
@ -91,7 +91,7 @@ void KrusaderImageFilePreview::resizeEvent( TQResizeEvent * ) {
timer->start( 100, true ); // forces a new preview timer->start( 100, true ); // forces a new preview
} }
TQSize KrusaderImageFilePreview::tqsizeHint() const { TQSize KrusaderImageFilePreview::sizeHint() const {
return TQSize( 20, 200 ); // otherwise it ends up huge??? return TQSize( 20, 200 ); // otherwise it ends up huge???
} }

@ -34,7 +34,7 @@ class KrusaderImageFilePreview : public KPreviewWidgetBase {
KrusaderImageFilePreview( TQWidget *parent ); KrusaderImageFilePreview( TQWidget *parent );
~KrusaderImageFilePreview(); ~KrusaderImageFilePreview();
virtual TQSize tqsizeHint() const; virtual TQSize sizeHint() const;
public slots: public slots:
virtual void showPreview( const KURL &url ); virtual void showPreview( const KURL &url );

@ -25,13 +25,13 @@
PanelViewerBase::PanelViewerBase( TQWidget *parent ) : PanelViewerBase::PanelViewerBase( TQWidget *parent ) :
TQWidgetStack( parent ), mimes( 0 ), cpart( 0 ) { TQWidgetStack( parent ), mimes( 0 ), cpart( 0 ) {
tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Ignored ) );
mimes = new TQDict<KParts::ReadOnlyPart>( DICTSIZE, false ); mimes = new TQDict<KParts::ReadOnlyPart>( DICTSIZE, false );
mimes->setAutoDelete( true ); mimes->setAutoDelete( true );
cpart = 0; cpart = 0;
fallback = new TQLabel( i18n( "No file selected or selected file can't be displayed." ), this ); fallback = new TQLabel( i18n( "No file selected or selected file can't be displayed." ), this );
fallback->tqsetAlignment( AlignCenter | ExpandTabs | WordBreak ); fallback->setAlignment( AlignCenter | ExpandTabs | WordBreak );
addWidget( fallback ); addWidget( fallback );
raiseWidget( fallback ); raiseWidget( fallback );
} }

@ -111,7 +111,7 @@ KgAdvanced::KgAdvanced( bool first, TQWidget* parent, const char* name ) :
TQGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), parent, "kgFineTuneGrp" ); TQGroupBox *fineTuneGrp = createFrame( i18n( "Fine-Tuning" ), parent, "kgFineTuneGrp" );
TQGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp->tqlayout() ); TQGridLayout *fineTuneGrid = createGridLayout( fineTuneGrp->tqlayout() );
fineTuneGrid->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop ); fineTuneGrid->setAlignment( TQt::AlignLeft | TQt::AlignTop );
TQLabel *label = new TQLabel( i18n( "Icon cache size (KB):" ), fineTuneGrp, "iconCacheLabel" ); TQLabel *label = new TQLabel( i18n( "Icon cache size (KB):" ), fineTuneGrp, "iconCacheLabel" );
TQWhatsThis::add( label, i18n( "The icon cache size influences how fast the contents of a panel can be displayed. However, too large a cache might consume your memory." ) ); TQWhatsThis::add( label, i18n( "The icon cache size influences how fast the contents of a panel can be displayed. However, too large a cache might consume your memory." ) );
@ -119,7 +119,7 @@ KgAdvanced::KgAdvanced( bool first, TQWidget* parent, const char* name ) :
KonfiguratorSpinBox *spinBox = createSpinBox( "Advanced", "Icon Cache Size", _IconCacheSize, KonfiguratorSpinBox *spinBox = createSpinBox( "Advanced", "Icon Cache Size", _IconCacheSize,
1, 8192, fineTuneGrp, false ); 1, 8192, fineTuneGrp, false );
TQWhatsThis::add( spinBox, i18n( "The icon cache size influences how fast the contents of a panel can be displayed. However, too large a cache might consume your memory." ) ); TQWhatsThis::add( spinBox, i18n( "The icon cache size influences how fast the contents of a panel can be displayed. However, too large a cache might consume your memory." ) );
spinBox->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed); spinBox->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed);
fineTuneGrid->addWidget( spinBox, 0, 1 ); fineTuneGrid->addWidget( spinBox, 0, 1 );
addLabel( fineTuneGrid, 1, 0, i18n( "Arguments of updatedb:" ), addLabel( fineTuneGrid, 1, 0, i18n( "Arguments of updatedb:" ),

@ -170,7 +170,7 @@ KgColors::KgColors( bool first, TQWidget* parent, const char* name ) :
int index = itemList.count() - offset; int index = itemList.count() - offset;
labelList.append( addLabel( colorsGrid, index, 0, i18n("Dim factor:"), colorsGrp, TQString( "ColorsLabel%1" ).tqarg( index ).ascii() ) ); labelList.append( addLabel( colorsGrid, index, 0, i18n("Dim factor:"), colorsGrp, TQString( "ColorsLabel%1" ).tqarg( index ).ascii() ) );
dimFactor = createSpinBox("Colors", "Dim Factor", 100, 0, 100, colorsGrp); dimFactor = createSpinBox("Colors", "Dim Factor", 100, 0, 100, colorsGrp);
dimFactor->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ); dimFactor->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
connect( dimFactor, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( generatePreview() ) ); connect( dimFactor, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( generatePreview() ) );
colorsGrid->addWidget( dimFactor, index++, 1 ); colorsGrid->addWidget( dimFactor, index++, 1 );
@ -243,7 +243,7 @@ int KgColors::addColorSelector( TQString cfgName, TQString name, TQColor dflt, T
labelList.append( addLabel( colorsGrid, index, 0, name, colorsGrp, TQString( "ColorsLabel%1" ).tqarg( index ).ascii() ) ); labelList.append( addLabel( colorsGrid, index, 0, name, colorsGrp, TQString( "ColorsLabel%1" ).tqarg( index ).ascii() ) );
KonfiguratorColorChooser *chooser = createColorChooser( "Colors", cfgName, dflt, colorsGrp, false, addColor, addColNum ); KonfiguratorColorChooser *chooser = createColorChooser( "Colors", cfgName, dflt, colorsGrp, false, addColor, addColNum );
chooser->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed ); chooser->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed );
if( !dfltName.isEmpty() ) if( !dfltName.isEmpty() )
chooser->setDefaultText( dfltName ); chooser->setDefaultText( dfltName );

@ -55,7 +55,7 @@ KgDependencies::KgDependencies( bool first, TQWidget* parent, const char* name
TQGridLayout *pathsGrid = new TQGridLayout( general_tab ); TQGridLayout *pathsGrid = new TQGridLayout( general_tab );
pathsGrid->setSpacing( 6 ); pathsGrid->setSpacing( 6 );
pathsGrid->setMargin( 11 ); pathsGrid->setMargin( 11 );
pathsGrid->tqsetAlignment( TQt::AlignTop ); pathsGrid->setAlignment( TQt::AlignTop );
addApplication( "df", pathsGrid, 0, general_tab, PAGE_GENERAL ); addApplication( "df", pathsGrid, 0, general_tab, PAGE_GENERAL );
addApplication( "eject", pathsGrid, 1, general_tab, PAGE_GENERAL ); addApplication( "eject", pathsGrid, 1, general_tab, PAGE_GENERAL );
@ -77,7 +77,7 @@ KgDependencies::KgDependencies( bool first, TQWidget* parent, const char* name
TQGridLayout *archGrid1 = new TQGridLayout( packers_tab ); TQGridLayout *archGrid1 = new TQGridLayout( packers_tab );
archGrid1->setSpacing( 6 ); archGrid1->setSpacing( 6 );
archGrid1->setMargin( 11 ); archGrid1->setMargin( 11 );
archGrid1->tqsetAlignment( TQt::AlignTop ); archGrid1->setAlignment( TQt::AlignTop );
addApplication( "7z", archGrid1, 0, packers_tab, PAGE_PACKERS, "7za" ); addApplication( "7z", archGrid1, 0, packers_tab, PAGE_PACKERS, "7za" );
addApplication( "arj", archGrid1, 1, packers_tab, PAGE_PACKERS ); addApplication( "arj", archGrid1, 1, packers_tab, PAGE_PACKERS );
@ -101,7 +101,7 @@ KgDependencies::KgDependencies( bool first, TQWidget* parent, const char* name
TQGridLayout *archGrid2 = new TQGridLayout( checksum_tab ); TQGridLayout *archGrid2 = new TQGridLayout( checksum_tab );
archGrid2->setSpacing( 6 ); archGrid2->setSpacing( 6 );
archGrid2->setMargin( 11 ); archGrid2->setMargin( 11 );
archGrid2->tqsetAlignment( TQt::AlignTop ); archGrid2->setAlignment( TQt::AlignTop );
addApplication( "md5sum", archGrid2, 0, checksum_tab, PAGE_CHECKSUM ); addApplication( "md5sum", archGrid2, 0, checksum_tab, PAGE_CHECKSUM );
addApplication( "sha1sum", archGrid2, 1, checksum_tab, PAGE_CHECKSUM ); addApplication( "sha1sum", archGrid2, 1, checksum_tab, PAGE_CHECKSUM );

@ -61,7 +61,7 @@ KgStartup::KgStartup( bool first, TQWidget* parent, const char* name ) :
comboItems[ 0 ].value = ""; comboItems[ 0 ].value = "";
profileCombo = createComboBox( "Startup", "Starter Profile Name", comboItems[ 0 ].value, comboItems, profileList.count(), panelsGrp, false, false ); profileCombo = createComboBox( "Startup", "Starter Profile Name", comboItems[ 0 ].value, comboItems, profileList.count(), panelsGrp, false, false );
profileCombo->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed); profileCombo->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed);
panelsGrid->addWidget( profileCombo, 0, 1 ); panelsGrid->addWidget( profileCombo, 0, 1 );
//------------------------------------------------ //------------------------------------------------

@ -164,7 +164,7 @@ TQGroupBox* KonfiguratorPage::createFrame( TQString text, TQWidget *parent,
TQGridLayout* KonfiguratorPage::createGridLayout( TQLayout *parent ) TQGridLayout* KonfiguratorPage::createGridLayout( TQLayout *parent )
{ {
TQGridLayout *gridLayout = new TQGridLayout( parent ); TQGridLayout *gridLayout = new TQGridLayout( parent );
gridLayout->tqsetAlignment( TQt::AlignTop ); gridLayout->setAlignment( TQt::AlignTop );
gridLayout->setSpacing( 6 ); gridLayout->setSpacing( 6 );
gridLayout->setMargin( 11 ); gridLayout->setMargin( 11 );
return gridLayout; return gridLayout;
@ -235,7 +235,7 @@ KonfiguratorRadioButtons* KonfiguratorPage::createRadioButtonGroup( TQString cls
radioWidget->setColumnLayout(0, Qt::Vertical ); radioWidget->setColumnLayout(0, Qt::Vertical );
TQGridLayout *tqlayout = new TQGridLayout( radioWidget->tqlayout() ); TQGridLayout *tqlayout = new TQGridLayout( radioWidget->tqlayout() );
tqlayout->tqsetAlignment( TQt::AlignTop ); tqlayout->setAlignment( TQt::AlignTop );
tqlayout->setSpacing( 6 ); tqlayout->setSpacing( 6 );
tqlayout->setMargin( 0 ); tqlayout->setMargin( 0 );

@ -80,7 +80,7 @@ void KrResultTable::adjustRow(TQGridLayout* grid)
while( (child = it.current()) != 0 ) while( (child = it.current()) != 0 )
{ {
// Add some space between columns // Add some space between columns
child->widget()->setMinimumWidth( child->widget()->tqsizeHint().width() + 15 ); child->widget()->setMinimumWidth( child->widget()->sizeHint().width() + 15 );
// Paint uneven rows in alternate color // Paint uneven rows in alternate color
if( ((col/_numColumns)%2) ) if( ((col/_numColumns)%2) )
@ -178,7 +178,7 @@ bool KrArchiverResultTable::addRow(SearchObject* search, TQGridLayout* grid)
// Name column // Name column
_label = new KURLLabel(arch->getWebsite(), arch->getSearchName(), this); _label = new KURLLabel(arch->getWebsite(), arch->getSearchName(), this);
_label->setMargin(5); _label->setMargin(5);
_label->tqsetAlignment(TQt::AlignTop); _label->setAlignment(TQt::AlignTop);
grid->addWidget(_label, _numRows, 0); grid->addWidget(_label, _numRows, 0);
connect(_label, TQT_SIGNAL(leftClickedURL(const TQString&)), connect(_label, TQT_SIGNAL(leftClickedURL(const TQString&)),
TQT_SLOT(website(const TQString&))); TQT_SLOT(website(const TQString&)));
@ -191,7 +191,7 @@ bool KrArchiverResultTable::addRow(SearchObject* search, TQGridLayout* grid)
// Packing column // Packing column
_label = new TQLabel(this); _label = new TQLabel(this);
_label->setMargin(5); _label->setMargin(5);
_label->tqsetAlignment( TQt::AlignTop ); _label->setAlignment( TQt::AlignTop );
if( arch->getIsPacker() && arch->getFound() ) { if( arch->getIsPacker() && arch->getFound() ) {
_label->setText( i18n("enabled") ); _label->setText( i18n("enabled") );
_label->setPaletteForegroundColor("darkgreen"); _label->setPaletteForegroundColor("darkgreen");
@ -205,7 +205,7 @@ bool KrArchiverResultTable::addRow(SearchObject* search, TQGridLayout* grid)
// Unpacking column // Unpacking column
_label = new TQLabel(this); _label = new TQLabel(this);
_label->setMargin(5); _label->setMargin(5);
_label->tqsetAlignment( TQt::AlignTop ); _label->setAlignment( TQt::AlignTop );
if( arch->getIsUnpacker() && arch->getFound() ) { if( arch->getIsUnpacker() && arch->getFound() ) {
_label->setText( i18n("enabled") ); _label->setText( i18n("enabled") );
_label->setPaletteForegroundColor("darkgreen"); _label->setPaletteForegroundColor("darkgreen");
@ -219,7 +219,7 @@ bool KrArchiverResultTable::addRow(SearchObject* search, TQGridLayout* grid)
// Note column // Note column
_label = new TQLabel(arch->getNote(), this); _label = new TQLabel(arch->getNote(), this);
_label->setMargin(5); _label->setMargin(5);
_label->tqsetAlignment( TQt::AlignTop | TQt::WordBreak ); // wrap words _label->setAlignment( TQt::AlignTop | TQt::WordBreak ); // wrap words
grid->addWidget(_label, _numRows, 4); grid->addWidget(_label, _numRows, 4);
// Apply shared design elements // Apply shared design elements
@ -323,7 +323,7 @@ bool KrToolResultTable::addRow(SearchObject* search, TQGridLayout* grid)
// Name column // Name column
_label = new TQLabel(appGroup->getSearchName(), this); _label = new TQLabel(appGroup->getSearchName(), this);
_label->setMargin(5); _label->setMargin(5);
_label->tqsetAlignment( TQt::AlignTop ); _label->setAlignment( TQt::AlignTop );
grid->addWidget(_label, _numRows, 0); grid->addWidget(_label, _numRows, 0);
// Tool column // Tool column
@ -331,7 +331,7 @@ bool KrToolResultTable::addRow(SearchObject* search, TQGridLayout* grid)
for( TQValueVector<Application*>::Iterator it=_apps.begin(); it!=_apps.end(); it++ ) for( TQValueVector<Application*>::Iterator it=_apps.begin(); it!=_apps.end(); it++ )
{ {
KURLLabel* l = new KURLLabel( (*it)->getWebsite(), (*it)->getAppName(), toolBox); KURLLabel* l = new KURLLabel( (*it)->getWebsite(), (*it)->getAppName(), toolBox);
l->tqsetAlignment(TQt::AlignLeft | TQt::AlignTop); l->setAlignment(TQt::AlignLeft | TQt::AlignTop);
l->setMargin(5); l->setMargin(5);
connect(l, TQT_SIGNAL(leftClickedURL(const TQString&)), connect(l, TQT_SIGNAL(leftClickedURL(const TQString&)),
TQT_SLOT(website(const TQString&))); TQT_SLOT(website(const TQString&)));
@ -344,14 +344,14 @@ bool KrToolResultTable::addRow(SearchObject* search, TQGridLayout* grid)
{ {
_label = new TQLabel( (*it)->getPath(), vbox); _label = new TQLabel( (*it)->getPath(), vbox);
_label->setMargin(5); _label->setMargin(5);
_label->tqsetAlignment( TQt::AlignTop ); _label->setAlignment( TQt::AlignTop );
} }
grid->addWidget(vbox, _numRows, 2); grid->addWidget(vbox, _numRows, 2);
// tqStatus column // Status column
_label = new TQLabel(this); _label = new TQLabel(this);
_label->setMargin(5); _label->setMargin(5);
_label->tqsetAlignment( TQt::AlignTop ); _label->setAlignment( TQt::AlignTop );
if( appGroup->getFoundGroup() ) { if( appGroup->getFoundGroup() ) {
_label->setText( i18n("enabled") ); _label->setText( i18n("enabled") );
_label->setPaletteForegroundColor("darkgreen"); _label->setPaletteForegroundColor("darkgreen");

@ -40,7 +40,7 @@ KrResultTableDialog::KrResultTableDialog( TQWidget *parent, DialogType type,
_page = new TQWidget(this); _page = new TQWidget(this);
setMainWidget(_page); setMainWidget(_page);
_topLayout = new TQVBoxLayout(_page, 0, spacingHint()); _topLayout = new TQVBoxLayout(_page, 0, spacingHint());
_topLayout->tqsetAlignment( TQt::AlignTop ); _topLayout->setAlignment( TQt::AlignTop );
// +++ Heading +++ // +++ Heading +++
// prepare the icon // prepare the icon
@ -48,8 +48,8 @@ KrResultTableDialog::KrResultTableDialog( TQWidget *parent, DialogType type,
_iconLabel = new TQLabel(_iconBox, "iconLabel"); _iconLabel = new TQLabel(_iconBox, "iconLabel");
_iconLabel->setPixmap(krLoader->loadIcon(headerIcon, KIcon::Desktop, 32)); _iconLabel->setPixmap(krLoader->loadIcon(headerIcon, KIcon::Desktop, 32));
_iconLabel->setMinimumWidth(fontMetrics().maxWidth()*20); _iconLabel->setMinimumWidth(fontMetrics().maxWidth()*20);
_iconLabel->tqsetAlignment( TQt::AlignLeft | TQt::AlignVCenter ); _iconLabel->setAlignment( TQt::AlignLeft | TQt::AlignVCenter );
_iconLabel->setFixedSize( _iconLabel->tqsizeHint() ); _iconLabel->setFixedSize( _iconLabel->sizeHint() );
_headingLabel = new TQLabel(heading, _iconBox); _headingLabel = new TQLabel(heading, _iconBox);
TQFont defFont = KGlobalSettings::generalFont(); TQFont defFont = KGlobalSettings::generalFont();
defFont.setBold(true); defFont.setBold(true);
@ -85,11 +85,11 @@ KrResultTableDialog::KrResultTableDialog( TQWidget *parent, DialogType type,
if(hint != TQString()) { if(hint != TQString()) {
_hintLabel = new TQLabel(hint, _page); _hintLabel = new TQLabel(hint, _page);
_hintLabel->setIndent(5); _hintLabel->setIndent(5);
_hintLabel->tqsetAlignment(TQt::AlignRight); _hintLabel->setAlignment(TQt::AlignRight);
_topLayout->addWidget(_hintLabel); _topLayout->addWidget(_hintLabel);
} }
this->setFixedSize( this->tqsizeHint() ); // make non-resizeable this->setFixedSize( this->sizeHint() ); // make non-resizeable
} }
KrResultTableDialog::~KrResultTableDialog() KrResultTableDialog::~KrResultTableDialog()

@ -117,7 +117,7 @@ LocateDlg::LocateDlg() : KDialogBase(0,0,false,"Locate", KDialogBase::User1 | KD
locateSearchFor->setHistoryItems(list); locateSearchFor->setHistoryItems(list);
locateSearchFor->setEditable( true ); locateSearchFor->setEditable( true );
locateSearchFor->setDuplicatesEnabled( false ); locateSearchFor->setDuplicatesEnabled( false );
locateSearchFor->tqsetSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Fixed); locateSearchFor->setSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Fixed);
locateSearchFor->lineEdit()->setFocus(); locateSearchFor->lineEdit()->setFocus();
grid->addWidget( hbox, 0, 0 ); grid->addWidget( hbox, 0, 0 );

@ -99,7 +99,7 @@ void KDiskFreeSp::dfDone()
TQTextStream t (dfStringErrOut, IO_ReadOnly); TQTextStream t (dfStringErrOut, IO_ReadOnly);
TQString s=t.readLine(); TQString s=t.readLine();
if ( (s.isEmpty()) || ( s.left(10) != TQString::tqfromLatin1("Filesystem") ) ) if ( (s.isEmpty()) || ( s.left(10) != TQString::fromLatin1("Filesystem") ) )
kdError() << "Error running df command... got [" << s << "]" << endl; kdError() << "Error running df command... got [" << s << "]" << endl;
while ( !t.eof() ) { while ( !t.eof() ) {
TQString u,v; TQString u,v;

@ -148,7 +148,7 @@ void KMountMan::unmount( TQString mntPoint, bool blocking ) {
} }
} }
KMountMan::mnttqStatus KMountMan::gettqStatus( TQString mntPoint ) { KMountMan::mntStatus KMountMan::getStatus( TQString mntPoint ) {
KMountPoint::List::iterator it; KMountPoint::List::iterator it;
KMountPoint *m; KMountPoint *m;
@ -170,7 +170,7 @@ KMountMan::mnttqStatus KMountMan::gettqStatus( TQString mntPoint ) {
void KMountMan::toggleMount( TQString mntPoint ) { void KMountMan::toggleMount( TQString mntPoint ) {
mnttqStatus status = gettqStatus(mntPoint); mntStatus status = getStatus(mntPoint);
switch (status) { switch (status) {
case MOUNTED: case MOUNTED:
unmount(mntPoint); unmount(mntPoint);
@ -185,7 +185,7 @@ void KMountMan::toggleMount( TQString mntPoint ) {
} }
void KMountMan::autoMount( TQString path ) { void KMountMan::autoMount( TQString path ) {
if ( gettqStatus( path ) == NOT_MOUNTED ) if ( getStatus( path ) == NOT_MOUNTED )
mount( path ); mount( path );
} }

@ -53,7 +53,7 @@ class KMountMan : public TQObject {
friend class KMountManGUI; friend class KMountManGUI;
public: public:
enum mnttqStatus {DOESNT_EXIST, NOT_MOUNTED, MOUNTED}; enum mntStatus {DOESNT_EXIST, NOT_MOUNTED, MOUNTED};
inline bool operational() { inline bool operational() {
return Operational; return Operational;
@ -62,7 +62,7 @@ public:
void mainWindow(); // opens up the GUI void mainWindow(); // opens up the GUI
void mount( TQString mntPoint, bool blocking=true ); // this is probably what you need for mount void mount( TQString mntPoint, bool blocking=true ); // this is probably what you need for mount
void unmount( TQString mntPoint, bool blocking=true ); // this is probably what you need for unmount void unmount( TQString mntPoint, bool blocking=true ); // this is probably what you need for unmount
mnttqStatus gettqStatus( TQString mntPoint ); // return the status of a mntPoint (if any) mntStatus getStatus( TQString mntPoint ); // return the status of a mntPoint (if any)
void autoMount( TQString path ); // just call it before refreshing into a dir void autoMount( TQString path ); // just call it before refreshing into a dir
static void eject( TQString mntPoint ); static void eject( TQString mntPoint );
bool ejectable( TQString path ); bool ejectable( TQString path );

@ -73,10 +73,10 @@ info( 0 ), mountList( 0 ) {
widget = new KJanusWidget( this, 0, KJanusWidget::Tabbed ); widget = new KJanusWidget( this, 0, KJanusWidget::Tabbed );
createLayout(); createLayout();
setMainWidget( widget ); setMainWidget( widget );
widget->setMinimumSize( widget->tqsizeHint().width() + mountList->columnWidth( 5 ), widget->setMinimumSize( widget->sizeHint().width() + mountList->columnWidth( 5 ),
widget->tqsizeHint().height() ); widget->sizeHint().height() );
setMinimumSize( widget->tqminimumSize().width(), widget->tqminimumSize().height() ); setMinimumSize( widget->minimumSize().width(), widget->minimumSize().height() );
resize( tqminimumSize() ); resize( minimumSize() );
// connections // connections
connect( mountList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ), this, connect( mountList, TQT_SIGNAL( doubleClicked( TQListViewItem * ) ), this,
@ -139,7 +139,7 @@ void KMountManGUI::createMainPage() {
// now the list is created, time to fill it with data. // now the list is created, time to fill it with data.
//=>krMtMan.forceUpdate(); //=>krMtMan.forceUpdate();
TQGroupBox *box = new TQGroupBox( "MountMan.Info", mainPage ); TQGroupBox *box = new TQGroupBox( "MountMan.Info", mainPage );
box->tqsetAlignment( TQt::AlignHCenter ); box->setAlignment( TQt::AlignHCenter );
info = new KRFSDisplay( box ); info = new KRFSDisplay( box );
info->resize( info->width(), height() ); info->resize( info->width(), height() );
tqlayout->addWidget( box, 0, 0 ); tqlayout->addWidget( box, 0, 0 );

@ -832,11 +832,11 @@ TQRect KrDetailedView::drawItemHighlighter(TQPainter *painter, TQListViewItem *i
{ {
TQRect r; TQRect r;
if( _currDragItem && item ) { if( _currDragItem && item ) {
r = tqitemRect(item); r = itemRect(item);
if (painter) if (painter)
tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, painter, r, tqcolorGroup(), tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, painter, r, colorGroup(),
TQStyle::Style_FocusAtBorder, tqcolorGroup().highlight()); TQStyle::Style_FocusAtBorder, colorGroup().highlight());
} }
return r; return r;
} }
@ -938,7 +938,7 @@ void KrDetailedView::keyPressEvent( TQKeyEvent * e ) {
case Key_Next: if (!KrSelectionMode::getSelectionHandler()->useTQTSelection()){ case Key_Next: if (!KrSelectionMode::getSelectionHandler()->useTQTSelection()){
TQListViewItem * i = currentItem(), *j; TQListViewItem * i = currentItem(), *j;
if ( !i ) break; if ( !i ) break;
TQRect r( tqitemRect( i ) ); TQRect r( itemRect( i ) );
if ( !r.height() ) break; if ( !r.height() ) break;
for ( int page = visibleHeight() / r.height() - 1; page > 0 && ( j = i->itemBelow() ); --page ) for ( int page = visibleHeight() / r.height() - 1; page > 0 && ( j = i->itemBelow() ); --page )
i = j; i = j;
@ -948,7 +948,7 @@ void KrDetailedView::keyPressEvent( TQKeyEvent * e ) {
case Key_Prior: if (!KrSelectionMode::getSelectionHandler()->useTQTSelection()){ case Key_Prior: if (!KrSelectionMode::getSelectionHandler()->useTQTSelection()){
TQListViewItem * i = currentItem(), *j; TQListViewItem * i = currentItem(), *j;
if ( !i ) break; if ( !i ) break;
TQRect r( tqitemRect( i ) ); TQRect r( itemRect( i ) );
if ( !r.height() ) break; if ( !r.height() ) break;
for ( int page = visibleHeight() / r.height() - 1; page > 0 && ( j = i->itemAbove() ); --page ) for ( int page = visibleHeight() / r.height() - 1; page > 0 && ( j = i->itemAbove() ); --page )
i = j; i = j;

@ -60,12 +60,12 @@ const char* KRDrag::format( int i ) const
else return 0; else return 0;
} }
TQByteArray KRDrag::tqencodedData( const char* mime ) const TQByteArray KRDrag::encodedData( const char* mime ) const
{ {
TQByteArray a; TQByteArray a;
TQCString mimetype( mime ); TQCString mimetype( mime );
if ( mimetype == "text/uri-list" ) if ( mimetype == "text/uri-list" )
return TQUriDrag::tqencodedData( mime ); return TQUriDrag::encodedData( mime );
else if ( mimetype == "application/x-kde-cutselection" ) { else if ( mimetype == "application/x-kde-cutselection" ) {
TQCString s ( m_bCutSelection ? "1" : "0" ); TQCString s ( m_bCutSelection ? "1" : "0" );
a.resize( s.length() + 1 ); // trailing zero a.resize( s.length() + 1 ); // trailing zero
@ -91,7 +91,7 @@ TQByteArray KRDrag::tqencodedData( const char* mime ) const
bool KRDrag::decodeIsCutSelection( const TQMimeSource *e ) bool KRDrag::decodeIsCutSelection( const TQMimeSource *e )
{ {
TQByteArray a = e->tqencodedData( "application/x-kde-cutselection" ); TQByteArray a = e->encodedData( "application/x-kde-cutselection" );
if ( a.isEmpty() ) if ( a.isEmpty() )
return false; return false;
else else

@ -48,7 +48,7 @@ public:
virtual ~KRDrag() {} virtual ~KRDrag() {}
virtual const char* format( int i ) const; virtual const char* format( int i ) const;
virtual TQByteArray tqencodedData( const char* mime ) const; virtual TQByteArray encodedData( const char* mime ) const;
void setMoveSelection( bool move ) { m_bCutSelection = move; } void setMoveSelection( bool move ) { m_bCutSelection = move; }

@ -168,9 +168,9 @@ KrPopupMenu::KrPopupMenu(ListPanel *thePanel, TQWidget *parent) : KPopupMenu(par
// ---------- mount/umount/eject // ---------- mount/umount/eject
if ( panel->func->files() ->vfs_getType() == vfs::NORMAL && vf->vfile_isDir() && !multipleSelections ) { if ( panel->func->files() ->vfs_getType() == vfs::NORMAL && vf->vfile_isDir() && !multipleSelections ) {
if ( krMtMan.gettqStatus( panel->func->files() ->vfs_getFile( item->name() ).path( -1 ) ) == KMountMan::MOUNTED ) if ( krMtMan.getStatus( panel->func->files() ->vfs_getFile( item->name() ).path( -1 ) ) == KMountMan::MOUNTED )
insertItem( i18n( "Unmount" ), UNMOUNT_ID ); insertItem( i18n( "Unmount" ), UNMOUNT_ID );
else if ( krMtMan.gettqStatus( panel->func->files() ->vfs_getFile( item->name() ).path( -1 ) ) == KMountMan::NOT_MOUNTED ) else if ( krMtMan.getStatus( panel->func->files() ->vfs_getFile( item->name() ).path( -1 ) ) == KMountMan::NOT_MOUNTED )
insertItem( i18n( "Mount" ), MOUNT_ID ); insertItem( i18n( "Mount" ), MOUNT_ID );
if ( krMtMan.ejectable( panel->func->files() ->vfs_getFile( item->name() ).path( -1 ) ) ) if ( krMtMan.ejectable( panel->func->files() ->vfs_getFile( item->name() ).path( -1 ) ) )
insertItem( i18n( "Eject" ), EJECT_ID ); insertItem( i18n( "Eject" ), EJECT_ID );

@ -134,7 +134,7 @@ ListPanel::ListPanel( TQString typeIn, TQWidget *parent, bool &left, const char
"which holds your current directory: Total size, free space, " "which holds your current directory: Total size, free space, "
"type of filesystem, etc." ) ); "type of filesystem, etc." ) );
connect( status, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotFocusOnMe() ) ); connect( status, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotFocusOnMe() ) );
connect( status, TQT_SIGNAL( dropped( TQDropEvent *) ), this, TQT_SLOT( handleDropOntqStatus(TQDropEvent *) ) ); connect( status, TQT_SIGNAL( dropped( TQDropEvent *) ), this, TQT_SLOT( handleDropOnStatus(TQDropEvent *) ) );
// ... create the history button // ... create the history button
dirHistoryQueue = new DirHistoryQueue( this ); dirHistoryQueue = new DirHistoryQueue( this );
@ -770,7 +770,7 @@ void ListPanel::handleDropOnTotals( TQDropEvent *e ) {
handleDropOnView( e, totals ); handleDropOnView( e, totals );
} }
void ListPanel::handleDropOntqStatus( TQDropEvent *e ) { void ListPanel::handleDropOnStatus( TQDropEvent *e ) {
handleDropOnView( e, status ); handleDropOnView( e, status );
} }

@ -150,7 +150,7 @@ protected:
protected slots: protected slots:
void handleDropOnView(TQDropEvent *, TQWidget *destWidget=0); // handles drops on the view only void handleDropOnView(TQDropEvent *, TQWidget *destWidget=0); // handles drops on the view only
void handleDropOnTotals( TQDropEvent * ); // handles drops on the totals line void handleDropOnTotals( TQDropEvent * ); // handles drops on the totals line
void handleDropOntqStatus( TQDropEvent * ); // handles drops on the status line void handleDropOnStatus( TQDropEvent * ); // handles drops on the status line
void startDragging( TQStringList, TQPixmap ); void startDragging( TQStringList, TQPixmap );
// those handle the in-panel refresh notifications // those handle the in-panel refresh notifications
void slotJobStarted(KIO::Job* job); void slotJobStarted(KIO::Job* job);
@ -160,7 +160,7 @@ protected slots:
void inlineRefreshCancel(); void inlineRefreshCancel();
signals: signals:
void signaltqStatus( TQString msg ); // emmited when we need to update the status bar void signalStatus( TQString msg ); // emmited when we need to update the status bar
void cmdLineUpdate( TQString p ); // emitted when we need to update the command line void cmdLineUpdate( TQString p ); // emitted when we need to update the command line
void pathChanged( ListPanel *panel ); void pathChanged( ListPanel *panel );
void activePanelChanged( ListPanel *p ); // emitted when the user changes panels void activePanelChanged( ListPanel *p ); // emitted when the user changes panels

@ -162,7 +162,7 @@ PanelPopup::PanelPopup( TQSplitter *parent, bool left ) : TQWidget( parent ),
if ( i > 0 ) if ( i > 0 )
quickSelectCombo->insertStrList( lst ); quickSelectCombo->insertStrList( lst );
quickSelectCombo->setCurrentText( "*" ); quickSelectCombo->setCurrentText( "*" );
quickSelectCombo->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ) ); quickSelectCombo->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Preferred ) );
connect(quickSelectCombo, TQT_SIGNAL(returnPressed(const TQString& )), connect(quickSelectCombo, TQT_SIGNAL(returnPressed(const TQString& )),
this, TQT_SLOT(quickSelect(const TQString& ))); this, TQT_SLOT(quickSelect(const TQString& )));

@ -205,12 +205,12 @@ remoteManBase::remoteManBase( TQWidget* parent, const char* name, bool modal, W
protocol->insertItem( i18n( "fish://" )); protocol->insertItem( i18n( "fish://" ));
if( protocols.contains("sftp") ) if( protocols.contains("sftp") )
protocol->insertItem( i18n( "sftp://" )); protocol->insertItem( i18n( "sftp://" ));
protocol->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, protocol->sizePolicy().hasHeightForWidth() ) ); protocol->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, protocol->sizePolicy().hasHeightForWidth() ) );
Layout11->addWidget( protocol, 1, 0 ); Layout11->addWidget( protocol, 1, 0 );
hostName = new TQLineEdit( this, "hostName" ); hostName = new TQLineEdit( this, "hostName" );
hostName->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, hostName->sizePolicy().hasHeightForWidth() ) ); hostName->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, hostName->sizePolicy().hasHeightForWidth() ) );
hostName->setMinimumSize( TQSize( 0, 0 ) ); hostName->setMinimumSize( TQSize( 0, 0 ) );
Layout11->addWidget( hostName, 1, 1 ); Layout11->addWidget( hostName, 1, 1 );
@ -233,7 +233,7 @@ remoteManBase::remoteManBase( TQWidget* parent, const char* name, bool modal, W
TextLabel1_4_font.setPointSize( 10 ); TextLabel1_4_font.setPointSize( 10 );
TextLabel1_4->setFont( TextLabel1_4_font ); TextLabel1_4->setFont( TextLabel1_4_font );
TextLabel1_4->setText( i18n( "* Warning: Storing your password is not secure !!!" ) ); TextLabel1_4->setText( i18n( "* Warning: Storing your password is not secure !!!" ) );
TextLabel1_4->tqsetAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); TextLabel1_4->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) );
remoteManBaseLayout->addWidget( TextLabel1_4, 3, 1 ); remoteManBaseLayout->addWidget( TextLabel1_4, 3, 1 );

@ -160,7 +160,7 @@ KrSearchDialog::KrSearchDialog( TQString profile, TQWidget* parent, const char*
resultLabelLayout->setMargin( 0 ); resultLabelLayout->setMargin( 0 );
foundLabel = new TQLabel( resultTab, "foundLabel" ); foundLabel = new TQLabel( resultTab, "foundLabel" );
foundLabel->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, foundLabel->sizePolicy().hasHeightForWidth() ) ); foundLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, foundLabel->sizePolicy().hasHeightForWidth() ) );
foundLabel->setFrameShape( TQLabel::StyledPanel ); foundLabel->setFrameShape( TQLabel::StyledPanel );
foundLabel->setFrameShadow( TQLabel::Sunken ); foundLabel->setFrameShadow( TQLabel::Sunken );
foundLabel->setText( i18n( "Found 0 matches." ) ); foundLabel->setText( i18n( "Found 0 matches." ) );
@ -216,7 +216,7 @@ KrSearchDialog::KrSearchDialog( TQString profile, TQWidget* parent, const char*
foundTextLayout->setMargin( 0 ); foundTextLayout->setMargin( 0 );
TQLabel *l1 = new TQLabel(resultTab); TQLabel *l1 = new TQLabel(resultTab);
l1->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, l1->sizePolicy().hasHeightForWidth() ) ); l1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, l1->sizePolicy().hasHeightForWidth() ) );
l1->setFrameShape( TQLabel::StyledPanel ); l1->setFrameShape( TQLabel::StyledPanel );
l1->setFrameShadow( TQLabel::Sunken ); l1->setFrameShadow( TQLabel::Sunken );
l1->setText(i18n("Text found:")); l1->setText(i18n("Text found:"));

@ -75,7 +75,7 @@ SplitterGUI::SplitterGUI( TQWidget* parent, KURL fileURL, KURL defaultDir ) :
TQLabel *spacer = new TQLabel( splitSizeLine ); TQLabel *spacer = new TQLabel( splitSizeLine );
spacer->setText( " " ); spacer->setText( " " );
spacer->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum ); spacer->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum );
TQLabel *bytesPerFile = new TQLabel( splitSizeLine, "BytesPerFile" ); TQLabel *bytesPerFile = new TQLabel( splitSizeLine, "BytesPerFile" );
bytesPerFile->setText( i18n( "Max file size:" ) ); bytesPerFile->setText( i18n( "Max file size:" ) );
@ -94,7 +94,7 @@ SplitterGUI::SplitterGUI( TQWidget* parent, KURL fileURL, KURL defaultDir ) :
TQFrame *separator = new TQFrame( this, "separatorLine" ); TQFrame *separator = new TQFrame( this, "separatorLine" );
separator->setFrameStyle( TQFrame::HLine | TQFrame::Sunken ); separator->setFrameStyle( TQFrame::HLine | TQFrame::Sunken );
separator->setFixedHeight( separator->tqsizeHint().height() ); separator->setFixedHeight( separator->sizeHint().height() );
grid->addWidget( separator,3 ,0 ); grid->addWidget( separator,3 ,0 );

@ -118,10 +118,10 @@ FeedToListBoxDialog::FeedToListBoxDialog(TQWidget *parent, const char *name, Sy
TQHBox *hbox = new TQHBox( widget, "fbHBox" ); TQHBox *hbox = new TQHBox( widget, "fbHBox" );
TQLabel *label2 = new TQLabel( i18n( "Side to feed:" ), hbox, "fbSideLabel" ); TQLabel *label2 = new TQLabel( i18n( "Side to feed:" ), hbox, "fbSideLabel" );
label2->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); label2->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
sideCombo = new TQComboBox( hbox, "fbSideCombo" ); sideCombo = new TQComboBox( hbox, "fbSideCombo" );
sideCombo->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); sideCombo->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
sideCombo->insertItem( i18n( "Left" ) ); sideCombo->insertItem( i18n( "Left" ) );
sideCombo->insertItem( i18n( "Right" ) ); sideCombo->insertItem( i18n( "Right" ) );
sideCombo->insertItem( i18n( "Both" ) ); sideCombo->insertItem( i18n( "Both" ) );
@ -136,10 +136,10 @@ FeedToListBoxDialog::FeedToListBoxDialog(TQWidget *parent, const char *name, Sy
TQFrame *line = new TQFrame( hbox, "fbVLine" ); TQFrame *line = new TQFrame( hbox, "fbVLine" );
line->setFrameStyle( TQFrame::VLine | TQFrame::Sunken ); line->setFrameStyle( TQFrame::VLine | TQFrame::Sunken );
line->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ); line->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
cbSelected = new TQCheckBox( i18n( "Selected files only" ), hbox, "cbSelected" ); cbSelected = new TQCheckBox( i18n( "Selected files only" ), hbox, "cbSelected" );
cbSelected->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ); cbSelected->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed );
cbSelected->setEnabled( selectedNum != 0 ); cbSelected->setEnabled( selectedNum != 0 );
cbSelected->setChecked( selectedNum != 0 ); cbSelected->setChecked( selectedNum != 0 );

@ -1108,7 +1108,7 @@ void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL
synchronizerGrid->setMargin( 11 ); synchronizerGrid->setMargin( 11 );
TQGroupBox *compareDirs = new TQGroupBox( synchronizerTab, "SyncCompareDirectories" ); TQGroupBox *compareDirs = new TQGroupBox( synchronizerTab, "SyncCompareDirectories" );
compareDirs->tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed); compareDirs->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Fixed);
compareDirs->setTitle( i18n( "Directory Comparison" ) ); compareDirs->setTitle( i18n( "Directory Comparison" ) );
compareDirs->setColumnLayout(0, Qt::Vertical ); compareDirs->setColumnLayout(0, Qt::Vertical );
compareDirs->tqlayout()->setSpacing( 0 ); compareDirs->tqlayout()->setSpacing( 0 );
@ -1119,16 +1119,16 @@ void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL
grid->setMargin( 11 ); grid->setMargin( 11 );
leftDirLabel = new TQLabel( compareDirs, "leftDirLabel" ); leftDirLabel = new TQLabel( compareDirs, "leftDirLabel" );
leftDirLabel->tqsetAlignment( TQt::AlignHCenter ); leftDirLabel->setAlignment( TQt::AlignHCenter );
grid->addWidget( leftDirLabel, 0 ,0 ); grid->addWidget( leftDirLabel, 0 ,0 );
TQLabel *filterLabel = new TQLabel( compareDirs, "filterLabel" ); TQLabel *filterLabel = new TQLabel( compareDirs, "filterLabel" );
filterLabel->setText( i18n( "File &Filter:" ) ); filterLabel->setText( i18n( "File &Filter:" ) );
filterLabel->tqsetAlignment( TQt::AlignHCenter ); filterLabel->setAlignment( TQt::AlignHCenter );
grid->addWidget( filterLabel, 0 ,1 ); grid->addWidget( filterLabel, 0 ,1 );
rightDirLabel = new TQLabel( compareDirs, "rightDirLabel" ); rightDirLabel = new TQLabel( compareDirs, "rightDirLabel" );
rightDirLabel->tqsetAlignment( TQt::AlignHCenter ); rightDirLabel->setAlignment( TQt::AlignHCenter );
grid->addWidget( rightDirLabel, 0 ,2 ); grid->addWidget( rightDirLabel, 0 ,2 );
krConfig->setGroup("Synchronize"); krConfig->setGroup("Synchronize");
@ -1137,7 +1137,7 @@ void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL
leftLocation->setMaxCount(25); // remember 25 items leftLocation->setMaxCount(25); // remember 25 items
leftLocation->setDuplicatesEnabled( false ); leftLocation->setDuplicatesEnabled( false );
leftLocation->setEditable( true ); leftLocation->setEditable( true );
leftLocation->tqsetSizePolicy(TQSizePolicy::Ignored,TQSizePolicy::Fixed); leftLocation->setSizePolicy(TQSizePolicy::Ignored,TQSizePolicy::Fixed);
TQStringList list = krConfig->readListEntry("Left Directory History"); TQStringList list = krConfig->readListEntry("Left Directory History");
leftLocation->setHistoryItems(list); leftLocation->setHistoryItems(list);
KURLRequester *leftUrlReq = new KURLRequester( leftLocation, compareDirs, "LeftDirectory" ); KURLRequester *leftUrlReq = new KURLRequester( leftLocation, compareDirs, "LeftDirectory" );
@ -1155,7 +1155,7 @@ void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL
fileFilter->setDuplicatesEnabled( false ); fileFilter->setDuplicatesEnabled( false );
fileFilter->setMinimumWidth( 100 ); fileFilter->setMinimumWidth( 100 );
fileFilter->setMaximumWidth( 100 ); fileFilter->setMaximumWidth( 100 );
fileFilter->tqsetSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed); fileFilter->setSizePolicy(TQSizePolicy::Fixed,TQSizePolicy::Fixed);
list = krConfig->readListEntry("File Filter"); list = krConfig->readListEntry("File Filter");
fileFilter->setHistoryItems(list); fileFilter->setHistoryItems(list);
fileFilter->setEditText("*"); fileFilter->setEditText("*");
@ -1170,7 +1170,7 @@ void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL
rightLocation->setMaxCount(25); // remember 25 items rightLocation->setMaxCount(25); // remember 25 items
rightLocation->setDuplicatesEnabled( false ); rightLocation->setDuplicatesEnabled( false );
rightLocation->setEditable( true ); rightLocation->setEditable( true );
rightLocation->tqsetSizePolicy(TQSizePolicy::Ignored,TQSizePolicy::Fixed); rightLocation->setSizePolicy(TQSizePolicy::Ignored,TQSizePolicy::Fixed);
list = krConfig->readListEntry("Right Directory History"); list = krConfig->readListEntry("Right Directory History");
rightLocation->setHistoryItems(list); rightLocation->setHistoryItems(list);
KURLRequester *rightUrlReq = new KURLRequester( rightLocation, compareDirs, "RightDirectory" ); KURLRequester *rightUrlReq = new KURLRequester( rightLocation, compareDirs, "RightDirectory" );
@ -1209,7 +1209,7 @@ void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL
TQGroupBox *showOptions = new TQGroupBox( optionBox, "SyncOptionBox" ); TQGroupBox *showOptions = new TQGroupBox( optionBox, "SyncOptionBox" );
showOptions->setTitle( i18n( "S&how options" ) ); showOptions->setTitle( i18n( "S&how options" ) );
showOptions->tqsetSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed); showOptions->setSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed);
showOptions->setColumnLayout(0, Qt::Vertical ); showOptions->setColumnLayout(0, Qt::Vertical );
showOptions->tqlayout()->setSpacing( 0 ); showOptions->tqlayout()->setSpacing( 0 );
showOptions->tqlayout()->setMargin( 0 ); showOptions->tqlayout()->setMargin( 0 );
@ -1357,7 +1357,7 @@ void SynchronizerGUI::initGUI(TQWidget* /* parent */, TQString profileName, KURL
optionsGroup->tqlayout()->setSpacing( 0 ); optionsGroup->tqlayout()->setSpacing( 0 );
optionsGroup->tqlayout()->setMargin( 0 ); optionsGroup->tqlayout()->setMargin( 0 );
TQGridLayout *optionsLayout = new TQGridLayout( optionsGroup->tqlayout() ); TQGridLayout *optionsLayout = new TQGridLayout( optionsGroup->tqlayout() );
optionsLayout->tqsetAlignment( TQt::AlignTop ); optionsLayout->setAlignment( TQt::AlignTop );
optionsLayout->setSpacing( 6 ); optionsLayout->setSpacing( 6 );
optionsLayout->setMargin( 11 ); optionsLayout->setMargin( 11 );

@ -103,16 +103,16 @@ _stdout(0), _stderr(0), _currentTextEdit(0) {
void KrActionProcDlg::addStderr( KProcess *, char *buffer, int buflen ) { void KrActionProcDlg::addStderr( KProcess *, char *buffer, int buflen ) {
if (_stderr) if (_stderr)
_stderr->append( TQString::tqfromLatin1( buffer, buflen ) ); _stderr->append( TQString::fromLatin1( buffer, buflen ) );
else { else {
_stdout->setItalic(true); _stdout->setItalic(true);
_stdout->append( TQString::tqfromLatin1( buffer, buflen ) ); _stdout->append( TQString::fromLatin1( buffer, buflen ) );
_stdout->setItalic(false); _stdout->setItalic(false);
} }
} }
void KrActionProcDlg::addStdout( KProcess *, char *buffer, int buflen ) { void KrActionProcDlg::addStdout( KProcess *, char *buffer, int buflen ) {
_stdout->append( TQString::tqfromLatin1( buffer, buflen ) ); _stdout->append( TQString::fromLatin1( buffer, buflen ) );
} }
void KrActionProcDlg::toggleFixedFont( bool state ) { void KrActionProcDlg::toggleFixedFont( bool state ) {

@ -201,7 +201,7 @@ long KRarcHandler::arcFileCount( TQString archive, TQString type, TQString passw
krApp->stopWait(); krApp->stopWait();
if( !list.normalExit() || !checktqStatus( type, list.exitStatus() ) ) { if( !list.normalExit() || !checkStatus( type, list.exitStatus() ) ) {
KMessageBox::detailedError (krApp, i18n( "Failed to list the content of the archive (%1)!" ).tqarg( archive ), KMessageBox::detailedError (krApp, i18n( "Failed to list the content of the archive (%1)!" ).tqarg( archive ),
list.getErrorMsg(), i18n("Error" ) ); list.getErrorMsg(), i18n("Error" ) );
return 0; return 0;
@ -258,7 +258,7 @@ bool KRarcHandler::unpack( TQString archive, TQString type, TQString password, T
KrShellProcess cpio; KrShellProcess cpio;
cpio << KrServices::fullPathName( "rpm2cpio" ) << " " + KrServices::quote( archive ) << " > " << cpioName; cpio << KrServices::fullPathName( "rpm2cpio" ) << " " + KrServices::quote( archive ) << " > " << cpioName;
cpio.start(KProcess::Block, KProcess::AllOutput ); cpio.start(KProcess::Block, KProcess::AllOutput );
if( !cpio.normalExit() || !checktqStatus( "cpio", cpio.exitStatus() ) ) { if( !cpio.normalExit() || !checkStatus( "cpio", cpio.exitStatus() ) ) {
KMessageBox::detailedError (krApp, i18n( "Failed to convert rpm (%1) to cpio!" ).tqarg( archive ), KMessageBox::detailedError (krApp, i18n( "Failed to convert rpm (%1) to cpio!" ).tqarg( archive ),
cpio.getErrorMsg(), i18n("Error" ) ); cpio.getErrorMsg(), i18n("Error" ) );
return 0; return 0;
@ -275,7 +275,7 @@ bool KRarcHandler::unpack( TQString archive, TQString type, TQString password, T
KrShellProcess dpkg; KrShellProcess dpkg;
dpkg << KrServices::fullPathName( "dpkg" ) << " --fsys-tarfile " + KrServices::quote( archive ) << " > " << cpioName; dpkg << KrServices::fullPathName( "dpkg" ) << " --fsys-tarfile " + KrServices::quote( archive ) << " > " << cpioName;
dpkg.start(KProcess::Block, KProcess::AllOutput ); dpkg.start(KProcess::Block, KProcess::AllOutput );
if( !dpkg.normalExit() || !checktqStatus( "-deb", dpkg.exitStatus() ) ) { if( !dpkg.normalExit() || !checkStatus( "-deb", dpkg.exitStatus() ) ) {
KMessageBox::detailedError (krApp, i18n( "Failed to convert deb (%1) to tar!" ).tqarg( archive ), KMessageBox::detailedError (krApp, i18n( "Failed to convert deb (%1) to tar!" ).tqarg( archive ),
dpkg.getErrorMsg(), i18n("Error" ) ); dpkg.getErrorMsg(), i18n("Error" ) );
return 0; return 0;
@ -335,7 +335,7 @@ bool KRarcHandler::unpack( TQString archive, TQString type, TQString password, T
TQFile( cpioName ).remove(); /* remove the cpio file */ TQFile( cpioName ).remove(); /* remove the cpio file */
// check the return value // check the return value
if ( !proc.normalExit() || !checktqStatus( type, proc.exitStatus() ) ) { if ( !proc.normalExit() || !checkStatus( type, proc.exitStatus() ) ) {
KMessageBox::detailedError (krApp, i18n( "Failed to unpack %1!" ).tqarg( archive ), KMessageBox::detailedError (krApp, i18n( "Failed to unpack %1!" ).tqarg( archive ),
krApp->wasWaitingCancelled() ? i18n( "User cancelled." ) : krApp->wasWaitingCancelled() ? i18n( "User cancelled." ) :
proc.getErrorMsg(), i18n("Error" ) ); proc.getErrorMsg(), i18n("Error" ) );
@ -397,7 +397,7 @@ bool KRarcHandler::test( TQString archive, TQString type, TQString password, lon
krApp->stopWait(); krApp->stopWait();
// check the return value // check the return value
if ( !proc.normalExit() || !checktqStatus( type, proc.exitStatus() ) ) if ( !proc.normalExit() || !checkStatus( type, proc.exitStatus() ) )
return false; return false;
return true; // SUCCESS return true; // SUCCESS
@ -504,7 +504,7 @@ bool KRarcHandler::pack( TQStringList fileNames, TQString type, TQString dest, l
krApp->stopWait(); krApp->stopWait();
// check the return value // check the return value
if ( !proc.normalExit() || !checktqStatus( type, proc.exitStatus() ) ) { if ( !proc.normalExit() || !checkStatus( type, proc.exitStatus() ) ) {
KMessageBox::detailedError (krApp, i18n( "Failed to pack %1!" ).tqarg( dest ), KMessageBox::detailedError (krApp, i18n( "Failed to pack %1!" ).tqarg( dest ),
krApp->wasWaitingCancelled() ? i18n( "User cancelled." ) : proc.getErrorMsg(), krApp->wasWaitingCancelled() ? i18n( "User cancelled." ) : proc.getErrorMsg(),
i18n("Error" ) ); i18n("Error" ) );
@ -597,7 +597,7 @@ TQString KRarcHandler::getType( bool &encrypted, TQString fileName, TQString mim
} }
bool KRarcHandler::checktqStatus( TQString type, int exitCode ) { bool KRarcHandler::checkStatus( TQString type, int exitCode ) {
if( type == "-zip" || type == "-rar" || type == "-7z" ) if( type == "-zip" || type == "-rar" || type == "-7z" )
return exitCode == 0 || exitCode == 1; return exitCode == 0 || exitCode == 1;
else if( type == "-ace" || type == "zip2" || type == "-lha" || type == "-rpm" || type == "cpio" || else if( type == "-ace" || type == "zip2" || type == "-lha" || type == "-rpm" || type == "cpio" ||

@ -64,7 +64,7 @@ public:
static TQString detectArchive( bool &encrypted, TQString fileName, bool checkEncrypted = true ); static TQString detectArchive( bool &encrypted, TQString fileName, bool checkEncrypted = true );
private: private:
// checks if the returned status is correct // checks if the returned status is correct
static bool checktqStatus( TQString type, int exitCode ); static bool checkStatus( TQString type, int exitCode );
static KWallet::Wallet * wallet; static KWallet::Wallet * wallet;
}; };

@ -571,16 +571,16 @@ void KRQuery::setContent( const TQString &content, bool cs, bool wholeWord, bool
containOnRemote = remoteSearch; containOnRemote = remoteSearch;
} }
void KRQuery::setMinimumFileSize( KIO::filesize_t tqminimumSize ) void KRQuery::setMinimumFileSize( KIO::filesize_t minimumSize )
{ {
bNull = false; bNull = false;
minSize = tqminimumSize; minSize = minimumSize;
} }
void KRQuery::setMaximumFileSize( KIO::filesize_t tqmaximumSize ) void KRQuery::setMaximumFileSize( KIO::filesize_t maximumSize )
{ {
bNull = false; bNull = false;
maxSize = tqmaximumSize; maxSize = maximumSize;
} }
void KRQuery::setNewerThan( time_t time ) void KRQuery::setNewerThan( time_t time )

@ -337,7 +337,7 @@ TQString normal_vfs::getACL( const TQString & path, int type )
return TQString(); return TQString();
char *aclString = acl_to_text( acl, 0 ); char *aclString = acl_to_text( acl, 0 );
TQString ret = TQString::tqfromLatin1( aclString ); TQString ret = TQString::fromLatin1( aclString );
acl_free( (void*)aclString ); acl_free( (void*)aclString );
acl_free( acl ); acl_free( acl );

@ -134,7 +134,7 @@ void PreservingCopyJob::slotAboutToCreate( KIO::Job */*job*/, const TQValueList<
if( acl ) if( acl )
{ {
char *aclString = acl_to_text( acl, 0 ); char *aclString = acl_to_text( acl, 0 );
aclStr = TQString::tqfromLatin1( aclString ); aclStr = TQString::fromLatin1( aclString );
acl_free( (void*)aclString ); acl_free( (void*)aclString );
acl_free( acl ); acl_free( acl );
} }

@ -211,9 +211,9 @@
/////////////////////// [Private] /////////////////////// [Private]
// Start Position ///// // Start Position /////
#define _StartPosition new TQPoint(TQApplication::desktop()->width()/2 - mainView->tqsizeHint().width()/2,TQApplication::desktop()->height()/2 - 250) #define _StartPosition new TQPoint(TQApplication::desktop()->width()/2 - mainView->sizeHint().width()/2,TQApplication::desktop()->height()/2 - 250)
// Start Size ///////// // Start Size /////////
#define _StartSize new TQSize(mainView->tqsizeHint().width(),500) #define _StartSize new TQSize(mainView->sizeHint().width(),500)
// Panel Size ///////// // Panel Size /////////
#define _PanelSize 0 #define _PanelSize 0
// Terminal Size ////// // Terminal Size //////

@ -219,7 +219,7 @@ void KRslots::rightclickMenu() {
{ {
ACTIVE_PANEL->popRightClickMenu( ACTIVE_PANEL->popRightClickMenu(
ACTIVE_PANEL->mapToGlobal( ACTIVE_PANEL->mapToGlobal(
dynamic_cast<KListView*>(ACTIVE_PANEL->view)->tqitemRect( currentItem ).topLeft() dynamic_cast<KListView*>(ACTIVE_PANEL->view)->itemRect( currentItem ).topLeft()
) )
); );
} }

@ -360,7 +360,7 @@ Krusader::Krusader() : KParts::MainWindow(0,0,WType_TopLevel|WDestructiveClose|T
setupAccels(); setupAccels();
// create a status bar // create a status bar
status = new KrusadertqStatus( this ); status = new KrusaderStatus( this );
TQWhatsThis::add( status, i18n( "Statusbar will show basic information " TQWhatsThis::add( status, i18n( "Statusbar will show basic information "
"about file below mouse pointer." ) ); "about file below mouse pointer." ) );
@ -466,7 +466,7 @@ bool Krusader::versionControl() {
void Krusader::statusBarUpdate( TQString& mess ) { void Krusader::statusBarUpdate( TQString& mess ) {
// change the message on the statusbar for 2 seconds // change the message on the statusbar for 2 seconds
if (status) // ugly!!!! But as statusBar() creates a status bar if there is no, I have to ask status to prevent if (status) // ugly!!!! But as statusBar() creates a status bar if there is no, I have to ask status to prevent
// the creation of the KDE default status bar instead of KrusadertqStatus. // the creation of the KDE default status bar instead of KrusaderStatus.
statusBar() ->message( mess, 5000 ); statusBar() ->message( mess, 5000 );
} }
@ -963,7 +963,7 @@ bool Krusader::queryClose() {
main window close. */ main window close. */
for(;;) { for(;;) {
TQWidgetList * list = TQApplication::tqtopLevelWidgets(); TQWidgetList * list = TQApplication::topLevelWidgets();
TQWidget *activeModal = TQT_TQWIDGET(TQApplication::activeModalWidget()); TQWidget *activeModal = TQT_TQWIDGET(TQApplication::activeModalWidget());
TQWidget *w = list->first(); TQWidget *w = list->first();

@ -53,7 +53,7 @@
class KrJS; class KrJS;
#endif #endif
class KrusadertqStatus; class KrusaderStatus;
class KRPleaseWaitHandler; class KRPleaseWaitHandler;
class KrusaderView; class KrusaderView;
class KProcess; class KProcess;
@ -159,7 +159,7 @@ class Krusader : public KParts::MainWindow, public DCOPObject {
void stopWait(); void stopWait();
bool wasWaitingCancelled() const; bool wasWaitingCancelled() const;
KrusadertqStatus *status; KrusaderStatus *status;
KRslots *slot; KRslots *slot;
KAccel *accels; // global accelerators KAccel *accels; // global accelerators

@ -159,7 +159,7 @@ void KrusaderView::createTE() {
if ( konsole_part == 0L ) { // konsole part is not yet loaded if ( konsole_part == 0L ) { // konsole part is not yet loaded
KLibFactory * factory = KLibLoader::self() ->factory( "libkonsolepart" ); KLibFactory * factory = KLibLoader::self() ->factory( "libkonsolepart" );
if ( factory ) { if ( factory ) {
TQWidget *focusW = tqApp->tqfocusWidget(); TQWidget *focusW = tqApp->focusWidget();
// Create the part // Create the part
konsole_part = ( KParts::ReadOnlyPart * ) konsole_part = ( KParts::ReadOnlyPart * )
factory->create( TQT_TQOBJECT(terminal_dock), "konsolepart", factory->create( TQT_TQOBJECT(terminal_dock), "konsolepart",

@ -54,7 +54,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -55,7 +55,7 @@
<property name="sizeType"> <property name="sizeType">
<enum>Expanding</enum> <enum>Expanding</enum>
</property> </property>
<property name="tqsizeHint"> <property name="sizeHint">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>

@ -148,7 +148,7 @@ bool ArchiveProtocol::checkNewFile( const KURL & url, TQString & path ) {
if ( path[ len - 1 ] == '/' ) if ( path[ len - 1 ] == '/' )
path.truncate( len - 1 ); path.truncate( len - 1 );
} else } else
path = TQString::tqfromLatin1( "/" ); path = TQString::fromLatin1( "/" );
kdDebug( 7109 ) << "Found. archiveFile=" << archiveFile << " path=" << path << endl; kdDebug( 7109 ) << "Found. archiveFile=" << archiveFile << " path=" << path << endl;
break; break;
} }
@ -246,9 +246,9 @@ void ArchiveProtocol::listDir( const KURL & url ) {
} }
if ( path.isEmpty() ) { if ( path.isEmpty() ) {
KURL redir( url.protocol() + TQString::tqfromLatin1( ":/" ) ); KURL redir( url.protocol() + TQString::fromLatin1( ":/" ) );
kdDebug( 7109 ) << "url.path()==" << url.path() << endl; kdDebug( 7109 ) << "url.path()==" << url.path() << endl;
redir.setPath( url.path() + TQString::tqfromLatin1( "/" ) ); redir.setPath( url.path() + TQString::fromLatin1( "/" ) );
kdDebug( 7109 ) << "ArchiveProtocol::listDir: redirection " << redir.url() << endl; kdDebug( 7109 ) << "ArchiveProtocol::listDir: redirection " << redir.url() << endl;
redirection( redir ); redirection( redir );
finished(); finished();
@ -333,7 +333,7 @@ void ArchiveProtocol::stat( const KURL & url ) {
const KArchiveDirectory* root = m_archiveFile->directory(); const KArchiveDirectory* root = m_archiveFile->directory();
const KArchiveEntry* archiveEntry; const KArchiveEntry* archiveEntry;
if ( path.isEmpty() ) { if ( path.isEmpty() ) {
path = TQString::tqfromLatin1( "/" ); path = TQString::fromLatin1( "/" );
archiveEntry = root; archiveEntry = root;
} else { } else {
archiveEntry = root->entry( path ); archiveEntry = root->entry( path );

Loading…
Cancel
Save