summaryrefslogtreecommitdiffstats
path: root/kode
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kode
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kode')
-rw-r--r--kode/automakefile.cpp2
-rw-r--r--kode/kodemain.cpp8
-rw-r--r--kode/kwsdl/compiler.cpp2
-rw-r--r--kode/kwsdl/converter.cpp2
-rw-r--r--kode/kwsdl/kung/complexbaseinputfield.cpp6
-rw-r--r--kode/kwsdl/kung/dateinputfield.cpp2
-rw-r--r--kode/kwsdl/kung/dispatcher.cpp4
-rw-r--r--kode/kwsdl/kung/listinputfield.cpp10
-rw-r--r--kode/kwsdl/kung/pageinputfield.cpp10
-rw-r--r--kode/kwsdl/namemapper.cpp2
-rw-r--r--kode/kwsdl/schema/fileprovider.cpp2
-rw-r--r--kode/kwsdl/schema/parser.cpp2
-rw-r--r--kode/kwsdl/schema/simpletype.cpp2
-rw-r--r--kode/kxml_compiler/creator.cpp2
-rw-r--r--kode/kxml_compiler/kxml_compiler.cpp2
-rw-r--r--kode/kxml_compiler/parser.cpp2
-rw-r--r--kode/printer.cpp2
17 files changed, 31 insertions, 31 deletions
diff --git a/kode/automakefile.cpp b/kode/automakefile.cpp
index 468059ae3..2be52ae38 100644
--- a/kode/automakefile.cpp
+++ b/kode/automakefile.cpp
@@ -98,7 +98,7 @@ TQString AutoMakefile::text() const
if ( t.type() != targetType ) continue;
TQString name = t.name();
- name.replace( '.', '_' );
+ name.tqreplace( '.', '_' );
out += name + "_SOURCES = " + t.sources() + '\n';
if ( !t.libAdd().isEmpty() )
diff --git a/kode/kodemain.cpp b/kode/kodemain.cpp
index e248a93a6..6542c2881 100644
--- a/kode/kodemain.cpp
+++ b/kode/kodemain.cpp
@@ -309,8 +309,8 @@ int codify( KCmdLineArgs *args )
TQTextStream ts( &f );
TQString line;
while( !( line = ts.readLine() ).isNull() ) {
- line.replace( "\\", "\\\\" );
- line.replace( "\"", "\\\"" );
+ line.tqreplace( "\\", "\\\\" );
+ line.tqreplace( "\"", "\\\"" );
line = "code += \"" + line;
line.append( "\";" );
std::cout << line.local8Bit() << std::endl;
@@ -372,7 +372,7 @@ int create( KCmdLineArgs *args )
authorEmail = a.preferredEmail();
} else {
KABC::Addressee::List as =
- KABC::StdAddressBook::self()->findByEmail( authorEmail );
+ KABC::StdAddressBook::self()->tqfindByEmail( authorEmail );
if ( as.isEmpty() ) {
kdDebug() << "Unable to find '" << authorEmail << "' in address book."
<< endl;
@@ -384,7 +384,7 @@ int create( KCmdLineArgs *args )
authorName = a.realName();
}
if ( !authorEmail.isEmpty() ) {
- file.addCopyright( TQDate::currentDate().year(), authorName, authorEmail );
+ file.addCopyright( TQDate::tqcurrentDate().year(), authorName, authorEmail );
}
KODE::License l;
diff --git a/kode/kwsdl/compiler.cpp b/kode/kwsdl/compiler.cpp
index 9e4c86ab9..e3ccf4f8c 100644
--- a/kode/kwsdl/compiler.cpp
+++ b/kode/kwsdl/compiler.cpp
@@ -107,7 +107,7 @@ void Compiler::create()
creator.setNameSpace( mNameSpace );
creator.create( converter.classes() );
- qApp->quit();
+ tqApp->quit();
}
#include "compiler.moc"
diff --git a/kode/kwsdl/converter.cpp b/kode/kwsdl/converter.cpp
index 5d824afe3..3f97efe1d 100644
--- a/kode/kwsdl/converter.cpp
+++ b/kode/kwsdl/converter.cpp
@@ -32,7 +32,7 @@ static TQString escapeEnum( const TQString &str )
{
TQString enumStr = capitalize( str );
- return enumStr.replace( "-", "_" );
+ return enumStr.tqreplace( "-", "_" );
}
Converter::Converter()
diff --git a/kode/kwsdl/kung/complexbaseinputfield.cpp b/kode/kwsdl/kung/complexbaseinputfield.cpp
index 80f755817..1c43bd952 100644
--- a/kode/kwsdl/kung/complexbaseinputfield.cpp
+++ b/kode/kwsdl/kung/complexbaseinputfield.cpp
@@ -141,14 +141,14 @@ TQWidget *ComplexBaseInputField::createWidget( TQWidget *parent )
{
TQGroupBox *inputWidget = new TQGroupBox( mName, parent );
inputWidget->setColumnLayout( 0, Qt::Horizontal );
- TQGridLayout *layout = new TQGridLayout( inputWidget->layout(), 2, 2, 6 );
+ TQGridLayout *tqlayout = new TQGridLayout( inputWidget->tqlayout(), 2, 2, 6 );
InputField::List::Iterator it;
int row = 0;
for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) {
TQLabel *label = new TQLabel( (*it)->name(), inputWidget );
- layout->addWidget( label, row, 0 );
- layout->addWidget( (*it)->createWidget( inputWidget ), row, 1 );
+ tqlayout->addWidget( label, row, 0 );
+ tqlayout->addWidget( (*it)->createWidget( inputWidget ), row, 1 );
}
return inputWidget;
diff --git a/kode/kwsdl/kung/dateinputfield.cpp b/kode/kwsdl/kung/dateinputfield.cpp
index b38d46b14..8d5c329cc 100644
--- a/kode/kwsdl/kung/dateinputfield.cpp
+++ b/kode/kwsdl/kung/dateinputfield.cpp
@@ -25,7 +25,7 @@
DateInputField::DateInputField( const TQString &name, const Schema::SimpleType *type )
: SimpleInputField( name, type ),
- mValue( TQDate::currentDate() )
+ mValue( TQDate::tqcurrentDate() )
{
}
diff --git a/kode/kwsdl/kung/dispatcher.cpp b/kode/kwsdl/kung/dispatcher.cpp
index d337d19f3..9d2ecc239 100644
--- a/kode/kwsdl/kung/dispatcher.cpp
+++ b/kode/kwsdl/kung/dispatcher.cpp
@@ -85,7 +85,7 @@ void Dispatcher::nextMessage()
mCurrentMessage = items.first();
if ( mCurrentMessage.isEmpty() ) {
- qApp->quit();
+ tqApp->quit();
return;
}
@@ -119,7 +119,7 @@ void Dispatcher::nextMessage()
mTransport->query( doc.toString( 2 ) );
}
} else
- qApp->quit();
+ tqApp->quit();
}
void Dispatcher::result( const TQString &xml )
diff --git a/kode/kwsdl/kung/listinputfield.cpp b/kode/kwsdl/kung/listinputfield.cpp
index 6bc1d8240..7a5eeb713 100644
--- a/kode/kwsdl/kung/listinputfield.cpp
+++ b/kode/kwsdl/kung/listinputfield.cpp
@@ -91,19 +91,19 @@ ListWidget::ListWidget( InputField *parentField, const TQString &name, const TQS
: TQWidget( parent ),
mParentField( parentField ), mName( name ), mType( type )
{
- TQGridLayout *layout = new TQGridLayout( this, 4, 2, 11, 6 );
+ TQGridLayout *tqlayout = new TQGridLayout( this, 4, 2, 11, 6 );
mView = new TQListBox( this );
- layout->addMultiCellWidget( mView, 0, 3, 0, 0 );
+ tqlayout->addMultiCellWidget( mView, 0, 3, 0, 0 );
mAddButton = new TQPushButton( i18n( "Add" ), this );
- layout->addWidget( mAddButton, 0, 1 );
+ tqlayout->addWidget( mAddButton, 0, 1 );
mEditButton = new TQPushButton( i18n( "Edit..." ), this );
- layout->addWidget( mEditButton, 1, 1 );
+ tqlayout->addWidget( mEditButton, 1, 1 );
mRemoveButton = new TQPushButton( i18n( "Remove" ), this );
- layout->addWidget( mRemoveButton, 2, 1 );
+ tqlayout->addWidget( mRemoveButton, 2, 1 );
connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( add() ) );
connect( mEditButton, TQT_SIGNAL( clicked() ), TQT_SLOT( edit() ) );
diff --git a/kode/kwsdl/kung/pageinputfield.cpp b/kode/kwsdl/kung/pageinputfield.cpp
index 956e54bfc..04f66ffa0 100644
--- a/kode/kwsdl/kung/pageinputfield.cpp
+++ b/kode/kwsdl/kung/pageinputfield.cpp
@@ -88,18 +88,18 @@ TQString PageInputField::data() const
TQWidget *PageInputField::createWidget( TQWidget *parent )
{
TQWidget *mInputWidget = new TQWidget( parent, "PageInputWidget" );
- TQGridLayout *layout = new TQGridLayout( mInputWidget, 2, 2, 11, 6 );
+ TQGridLayout *tqlayout = new TQGridLayout( mInputWidget, 2, 2, 11, 6 );
InputField::List::Iterator it;
int row = 0;
for ( it = mFields.begin(); it != mFields.end(); ++it, ++row ) {
TQLabel *label = new TQLabel( (*it)->name(), mInputWidget );
- label->setAlignment( Qt::AlignTop );
- layout->addWidget( label, row, 0 );
- layout->addWidget( (*it)->createWidget( mInputWidget ), row, 1 );
+ label->tqsetAlignment( Qt::AlignTop );
+ tqlayout->addWidget( label, row, 0 );
+ tqlayout->addWidget( (*it)->createWidget( mInputWidget ), row, 1 );
}
- layout->setRowStretch( ++row, 1 );
+ tqlayout->setRowStretch( ++row, 1 );
return mInputWidget;
}
diff --git a/kode/kwsdl/namemapper.cpp b/kode/kwsdl/namemapper.cpp
index 426498f5c..6d7ae6399 100644
--- a/kode/kwsdl/namemapper.cpp
+++ b/kode/kwsdl/namemapper.cpp
@@ -30,7 +30,7 @@ NameMapper::NameMapper()
TQString NameMapper::escape( const TQString &name ) const
{
- if ( mKeyWords.contains( name ) )
+ if ( mKeyWords.tqcontains( name ) )
return "_" + name;
else
return name;
diff --git a/kode/kwsdl/schema/fileprovider.cpp b/kode/kwsdl/schema/fileprovider.cpp
index 2a7448c4f..54fa0163e 100644
--- a/kode/kwsdl/schema/fileprovider.cpp
+++ b/kode/kwsdl/schema/fileprovider.cpp
@@ -60,7 +60,7 @@ bool FileProvider::get( const TQString &url, TQString &target )
mBlocked = true;
while ( mBlocked ) {
- qApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
+ tqApp->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput );
usleep( 500 );
}
diff --git a/kode/kwsdl/schema/parser.cpp b/kode/kwsdl/schema/parser.cpp
index 7ec3804f8..ba62b0c33 100644
--- a/kode/kwsdl/schema/parser.cpp
+++ b/kode/kwsdl/schema/parser.cpp
@@ -200,7 +200,7 @@ void Parser::parseImport( const TQDomElement &element )
TQString location = element.attribute( "schemaLocation" );
if ( !location.isEmpty() ) {
// don't import a schema twice
- if ( mImportedSchemas.contains( location ) )
+ if ( mImportedSchemas.tqcontains( location ) )
return;
else
mImportedSchemas.append( location );
diff --git a/kode/kwsdl/schema/simpletype.cpp b/kode/kwsdl/schema/simpletype.cpp
index d5dcf2fd9..50242808f 100644
--- a/kode/kwsdl/schema/simpletype.cpp
+++ b/kode/kwsdl/schema/simpletype.cpp
@@ -202,7 +202,7 @@ void SimpleType::setFacetValue( const TQString &value )
mFacetValue.wsp = PRESERVE;
else if ( value == "collapse" )
mFacetValue.wsp = COLLAPSE;
- else if ( value == "replace" )
+ else if ( value == "tqreplace" )
mFacetValue.wsp = REPLACE;
else {
qDebug( "Invalid facet value for whitespace" );
diff --git a/kode/kxml_compiler/creator.cpp b/kode/kxml_compiler/creator.cpp
index 591265887..25e91edce 100644
--- a/kode/kxml_compiler/creator.cpp
+++ b/kode/kxml_compiler/creator.cpp
@@ -621,7 +621,7 @@ void Creator::createElementParserDom( KODE::Class &c, Element *e )
void Creator::registerListTypedef( const TQString &type )
{
- if ( !mListTypedefs.contains( type ) ) mListTypedefs.append( type );
+ if ( !mListTypedefs.tqcontains( type ) ) mListTypedefs.append( type );
}
void Creator::createListTypedefs()
diff --git a/kode/kxml_compiler/kxml_compiler.cpp b/kode/kxml_compiler/kxml_compiler.cpp
index 71720d6b9..e2e529e22 100644
--- a/kode/kxml_compiler/kxml_compiler.cpp
+++ b/kode/kxml_compiler/kxml_compiler.cpp
@@ -143,7 +143,7 @@ int main( int argc, char **argv )
for( it = start->elements.begin(); it != start->elements.end(); ++it ) {
c.setExternalClassPrefix( c.upperFirst( (*it)->name ) );
c.createFileParser( *it );
- c.createFileWriter( *it, dtdFilename.replace( "rng", "dtd" ) );
+ c.createFileWriter( *it, dtdFilename.tqreplace( "rng", "dtd" ) );
}
c.createListTypedefs();
diff --git a/kode/kxml_compiler/parser.cpp b/kode/kxml_compiler/parser.cpp
index 9b3f33b99..59392ca84 100644
--- a/kode/kxml_compiler/parser.cpp
+++ b/kode/kxml_compiler/parser.cpp
@@ -100,7 +100,7 @@ Element *Parser::parse( const TQDomElement &docElement )
it = mDefinitionMap.find( d->name );
if ( it != mDefinitionMap.end() ) definitions = *it;
definitions.append( d );
- mDefinitionMap.replace( d->name, definitions );
+ mDefinitionMap.tqreplace( d->name, definitions );
} else if ( e1.tagName() == "start" ) {
start = new Element;
parseElement( e1, start, Pattern() );
diff --git a/kode/printer.cpp b/kode/printer.cpp
index 3adf32caf..5fa8907c4 100644
--- a/kode/printer.cpp
+++ b/kode/printer.cpp
@@ -326,7 +326,7 @@ void Printer::printHeader( const File &f )
// Create include guard
TQString className = f.filename();
- className.replace( "-", "_" );
+ className.tqreplace( "-", "_" );
TQString includeGuard;
if ( !f.nameSpace().isEmpty() ) includeGuard += f.nameSpace().upper() + "_";