diff --git a/common_texts.cpp b/common_texts.cpp index d23fc3a07..976f61a35 100644 --- a/common_texts.cpp +++ b/common_texts.cpp @@ -191,66 +191,66 @@ i18n( "Configure &Key Bindings..."); i18n( "&Preferences..."); i18n( "&Settings"); i18n( "Do not show this message again"); -i18n("TQAccel", "Escape"); -i18n("TQAccel", "Tab"); -i18n("TQAccel", "Backtab"); -i18n("TQAccel", "Backspace"); -i18n("TQAccel", "Return"); -i18n("TQAccel", "Enter"); -i18n("TQAccel", "Insert"); -i18n("TQAccel", "Delete"); -i18n("TQAccel", "Pause"); -i18n("TQAccel", "Print"); -i18n("TQAccel", "SysReq"); -i18n("TQAccel", "Home"); -i18n("TQAccel", "End"); -i18n("TQAccel", "Left"); -i18n("TQAccel", "Up"); -i18n("TQAccel", "Right"); -i18n("TQAccel", "Down"); -i18n("TQAccel", "Prior"); -i18n("TQAccel", "Next"); -i18n("TQAccel", "Shift"); -i18n("TQAccel", "Control"); -i18n("TQAccel", "Meta"); -i18n("TQAccel", "Alt"); -i18n("TQAccel", "CapsLock"); -i18n("TQAccel", "NumLock"); -i18n("TQAccel", "ScrollLock"); -i18n("TQAccel", "Space"); -i18n("TQAccel", "ParenLeft"); -i18n("TQAccel", "ParenRight"); -i18n("TQAccel", "Asterisk"); -i18n("TQAccel", "Plus"); -i18n("TQAccel", "Comma"); -i18n("TQAccel", "Minus"); -i18n("TQAccel", "Period"); -i18n("TQAccel", "Slash"); -i18n("TQAccel", "Colon"); -i18n("TQAccel", "Semicolon"); -i18n("TQAccel", "Less"); -i18n("TQAccel", "Equal"); -i18n("TQAccel", "Greater"); -i18n("TQAccel", "Question"); -i18n("TQAccel", "BracketLeft"); -i18n("TQAccel", "Backslash"); -i18n("TQAccel", "BracketRight"); -i18n("TQAccel", "AsciiCircum"); -i18n("TQAccel", "Underscore"); -i18n("TQAccel", "QuoteLeft"); -i18n("TQAccel", "BraceLeft"); -i18n("TQAccel", "BraceRight"); -i18n("TQAccel", "AsciiTilde"); -i18n("TQAccel", "PgUp"); -i18n("TQAccel", "PgDown"); -i18n("TQAccel", "Apostrophe"); -i18n("TQAccel", "Ampersand"); -i18n("TQAccel", "Exclam"); -i18n("TQAccel", "Dollar"); -i18n("TQAccel", "Percent"); -i18n("TQAccel", "Menu"); -i18n("TQAccel", "Help"); -i18n("TQAccel", "NumberSign"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Escape"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Tab"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Backtab"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Backspace"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Return"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Enter"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Insert"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Delete"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Pause"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Print"); +i18n(TQACCEL_OBJECT_NAME_STRING, "SysReq"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Home"); +i18n(TQACCEL_OBJECT_NAME_STRING, "End"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Left"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Up"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Right"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Down"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Prior"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Next"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Shift"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Control"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Meta"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Alt"); +i18n(TQACCEL_OBJECT_NAME_STRING, "CapsLock"); +i18n(TQACCEL_OBJECT_NAME_STRING, "NumLock"); +i18n(TQACCEL_OBJECT_NAME_STRING, "ScrollLock"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Space"); +i18n(TQACCEL_OBJECT_NAME_STRING, "ParenLeft"); +i18n(TQACCEL_OBJECT_NAME_STRING, "ParenRight"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Asterisk"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Plus"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Comma"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Minus"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Period"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Slash"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Colon"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Semicolon"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Less"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Equal"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Greater"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Question"); +i18n(TQACCEL_OBJECT_NAME_STRING, "BracketLeft"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Backslash"); +i18n(TQACCEL_OBJECT_NAME_STRING, "BracketRight"); +i18n(TQACCEL_OBJECT_NAME_STRING, "AsciiCircum"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Underscore"); +i18n(TQACCEL_OBJECT_NAME_STRING, "QuoteLeft"); +i18n(TQACCEL_OBJECT_NAME_STRING, "BraceLeft"); +i18n(TQACCEL_OBJECT_NAME_STRING, "BraceRight"); +i18n(TQACCEL_OBJECT_NAME_STRING, "AsciiTilde"); +i18n(TQACCEL_OBJECT_NAME_STRING, "PgUp"); +i18n(TQACCEL_OBJECT_NAME_STRING, "PgDown"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Apostrophe"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Ampersand"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Exclam"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Dollar"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Percent"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Menu"); +i18n(TQACCEL_OBJECT_NAME_STRING, "Help"); +i18n(TQACCEL_OBJECT_NAME_STRING, "NumberSign"); i18n("Main Toolbar"); //some font styles diff --git a/interfaces/terminal/kde_terminal_interface.h b/interfaces/terminal/kde_terminal_interface.h index c1fc2b9b5..6a65477c2 100644 --- a/interfaces/terminal/kde_terminal_interface.h +++ b/interfaces/terminal/kde_terminal_interface.h @@ -54,7 +54,7 @@ class TQStrList; * }; * // fetch the part.. * KParts::Part* p = static_cast( - * factory->create( this, "tralala", "TQObject", + * factory->create( this, "tralala", TQOBJECT_OBJECT_NAME_STRING, * "KParts::ReadOnlyPart" ) ); * assert( p ); * setCentralWidget( p->widget() ); diff --git a/interfaces/terminal/test/main.cc b/interfaces/terminal/test/main.cc index 6161ffc09..dbf60616b 100644 --- a/interfaces/terminal/test/main.cc +++ b/interfaces/terminal/test/main.cc @@ -17,7 +17,7 @@ Win::Win() { KLibFactory* factory = KLibLoader::self()->factory( "libkonsolepart" ); assert( factory ); - KParts::Part* p = static_cast( factory->create( this, "tralala", "TQObject", "KParts::ReadOnlyPart" ) ); + KParts::Part* p = static_cast( factory->create( this, "tralala", TQOBJECT_OBJECT_NAME_STRING, "KParts::ReadOnlyPart" ) ); setCentralWidget( p->widget() ); TerminalInterface* t = ::tqqt_cast( p ); diff --git a/kate/plugins/kdatatool/kate_kdatatool.cpp b/kate/plugins/kdatatool/kate_kdatatool.cpp index 6f519c24f..db28f8084 100644 --- a/kate/plugins/kdatatool/kate_kdatatool.cpp +++ b/kate/plugins/kdatatool/kate_kdatatool.cpp @@ -160,9 +160,9 @@ void KDataToolPluginView::aboutToShow() KInstance *inst=instance(); TQValueList tools; - tools += KDataToolInfo::query( "TQString", "text/plain", inst ); + tools += KDataToolInfo::query( TQSTRING_OBJECT_NAME_STRING, "text/plain", inst ); if( m_singleWord ) - tools += KDataToolInfo::query( "TQString", "application/x-singleword", inst ); + tools += KDataToolInfo::query( TQSTRING_OBJECT_NAME_STRING, "application/x-singleword", inst ); m_actionList = KDataToolAction::dataToolActionList( tools, this, TQT_SLOT( slotToolActivated( const KDataToolInfo &, const TQString & ) ) ); @@ -203,7 +203,7 @@ void KDataToolPluginView::slotToolActivated( const KDataToolInfo &info, const TQ text = m_wordUnderCursor; TQString mimetype = "text/plain"; - TQString datatype = "TQString"; + TQString datatype = TQSTRING_OBJECT_NAME_STRING; // If unsupported (and if we have a single word indeed), try application/x-singleword if ( !info.mimeTypes().tqcontains( mimetype ) && m_singleWord ) diff --git a/kdecore/kapplication.cpp b/kdecore/kapplication.cpp index de3a7028d..32091b863 100644 --- a/kdecore/kapplication.cpp +++ b/kdecore/kapplication.cpp @@ -2136,8 +2136,8 @@ void KApplication::kdisplaySetPalette() void KApplication::kdisplaySetFont() { TQApplication::tqsetFont(KGlobalSettings::generalFont(), true); - TQApplication::tqsetFont(KGlobalSettings::menuFont(), true, "TQMenuBar"); - TQApplication::tqsetFont(KGlobalSettings::menuFont(), true, "TQPopupMenu"); + TQApplication::tqsetFont(KGlobalSettings::menuFont(), true, TQMENUBAR_OBJECT_NAME_STRING); + TQApplication::tqsetFont(KGlobalSettings::menuFont(), true, TQPOPUPMENU_OBJECT_NAME_STRING); TQApplication::tqsetFont(KGlobalSettings::menuFont(), true, "KPopupTitle"); // "patch" standard TQStyleSheet to follow our fonts @@ -2240,8 +2240,8 @@ void KApplication::installKDEPropertyMap() kdeMap->insert( "KIntSpinBox", "value" ); kdeMap->insert( "KDoubleNumInput", "value" ); // Temp til fixed in QT then enable ifdef with the correct version num - kdeMap->insert( "TQGroupBox", "checked" ); - kdeMap->insert( "TQTabWidget", "currentPage" ); + kdeMap->insert( TQGROUPBOX_OBJECT_NAME_STRING, "checked" ); + kdeMap->insert( TQTABWIDGET_OBJECT_NAME_STRING, "currentPage" ); TQSqlPropertyMap::installDefaultMap( kdeMap ); #endif } diff --git a/kdecore/kconfig_compiler/kconfig_compiler.cpp b/kdecore/kconfig_compiler/kconfig_compiler.cpp index 434208b70..fd2cbc405 100644 --- a/kdecore/kconfig_compiler/kconfig_compiler.cpp +++ b/kdecore/kconfig_compiler/kconfig_compiler.cpp @@ -628,7 +628,7 @@ TQString param( const TQString &type ) else if ( type == "Password" ) return "const TQString &"; else { kdError() <<"kconfig_compiler does not support type \""<< type <<"\""<"; else if ( type == "Enum" ) return "int"; - else if ( type == "Path" ) return "TQString"; - else if ( type == "PathList" ) return "TQStringList"; - else if ( type == "Password" ) return "TQString"; + else if ( type == "Path" ) return TQSTRING_OBJECT_NAME_STRING; + else if ( type == "PathList" ) return TQSTRINGLIST_OBJECT_NAME_STRING; + else if ( type == "Password" ) return TQSTRING_OBJECT_NAME_STRING; else { kdError()<<"kconfig_compiler does not support type \""<< type <<"\""<setLanguage(TQString::tqfromLatin1("C")); - kdDebug() << "C: " << i18n("yes") << " " << i18n("TQAccel", "Space") << endl; + kdDebug() << "C: " << i18n("yes") << " " << i18n(TQACCEL_OBJECT_NAME_STRING, "Space") << endl; kdDebug() << "setLanguage de\n"; KGlobal::locale()->setLanguage(TQString::tqfromLatin1("de")); - kdDebug() << "de: " << i18n("yes") << " " << i18n("TQAccel", "Space") << endl; + kdDebug() << "de: " << i18n("yes") << " " << i18n(TQACCEL_OBJECT_NAME_STRING, "Space") << endl; Test m; diff --git a/kdeprint/lpd/kmlpdfactory.h b/kdeprint/lpd/kmlpdfactory.h index 6e6c2fda8..924c48b81 100644 --- a/kdeprint/lpd/kmlpdfactory.h +++ b/kdeprint/lpd/kmlpdfactory.h @@ -29,7 +29,7 @@ public: virtual ~KLpdFactory(); protected: - TQObject* createObject(TQObject *parent = 0, const char *name = 0, const char *className = "TQObject", const TQStringList& args = TQStringList()); + TQObject* createObject(TQObject *parent = 0, const char *name = 0, const char *className = TQOBJECT_OBJECT_NAME_STRING, const TQStringList& args = TQStringList()); }; #endif diff --git a/kdeprint/tools/escputil/escpwidget.cpp b/kdeprint/tools/escputil/escpwidget.cpp index e01cb6771..b55a374a7 100644 --- a/kdeprint/tools/escputil/escpwidget.cpp +++ b/kdeprint/tools/escputil/escpwidget.cpp @@ -39,7 +39,7 @@ class EscpFactory : public KLibFactory public: EscpFactory(TQObject *parent = 0, const char *name = 0) : KLibFactory(parent, name) {} protected: - TQObject* createObject(TQObject *parent = 0, const char *name = 0, const char * className = "TQObject", const TQStringList& args = TQStringList()) + TQObject* createObject(TQObject *parent = 0, const char *name = 0, const char * className = TQOBJECT_OBJECT_NAME_STRING, const TQStringList& args = TQStringList()) { Q_UNUSED(className); KDialogBase *dlg = new KDialogBase(TQT_TQWIDGET(parent), name, true, i18n("EPSON InkJet Printer Utilities"), KDialogBase::Close); diff --git a/kdeui/kbugreport.cpp b/kdeui/kbugreport.cpp index f90ce28fb..e5fa13b8a 100644 --- a/kdeui/kbugreport.cpp +++ b/kdeui/kbugreport.cpp @@ -240,7 +240,7 @@ KBugReport::KBugReport( TQWidget * parentw, bool modal, const KAboutData *aboutD lay->addWidget( label ); // The multiline-edit - m_lineedit = new TQMultiLineEdit( parent, "TQMultiLineEdit" ); + m_lineedit = new TQMultiLineEdit( parent, TQMULTILINEEDIT_OBJECT_NAME_STRING ); m_lineedit->setMinimumHeight( 180 ); // make it big m_lineedit->setWordWrap(TQMultiLineEdit::WidgetWidth); lay->addWidget( m_lineedit, 10 /*stretch*/ ); diff --git a/kio/kio/kscan.h b/kio/kio/kscan.h index bb5731eec..c7b8d97f0 100644 --- a/kio/kio/kscan.h +++ b/kio/kio/kscan.h @@ -203,7 +203,7 @@ protected: KScanDialogFactory( TQObject *parent=0, const char *name=0 ); virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, - const char* classname = "TQObject", + const char* classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); @@ -339,7 +339,7 @@ protected: KOCRDialogFactory( TQObject *parent=0, const char *name=0 ); virtual TQObject* createObject( TQObject* parent = 0, const char* name = 0, - const char* className = "TQObject", + const char* className = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); diff --git a/kio/kssl/ksslcertificatecache.cc b/kio/kssl/ksslcertificatecache.cc index 226e21c71..2eecd66d6 100644 --- a/kio/kssl/ksslcertificatecache.cc +++ b/kio/kssl/ksslcertificatecache.cc @@ -286,7 +286,7 @@ TQStringList KSSLCertificateCache::getHostList(KSSLCertificate& cert) { "cacheGetHostList(KSSLCertificate)", data, rettype, retval); - if (rc && rettype == "TQStringList") { + if (rc && rettype == TQSTRINGLIST_OBJECT_NAME_STRING) { TQDataStream retStream(retval, IO_ReadOnly); TQStringList drc; retStream >> drc; @@ -347,7 +347,7 @@ TQStringList KSSLCertificateCache::getKDEKeyByEmail(const TQString &email) { "getKDEKeyByEmail(TQString)", data, rettype, retval); - if (rc && rettype == "TQStringList") { + if (rc && rettype == TQSTRINGLIST_OBJECT_NAME_STRING) { TQDataStream retStream(retval, IO_ReadOnly); TQStringList drc; retStream >> drc; diff --git a/kio/kssl/ksslsigners.cc b/kio/kssl/ksslsigners.cc index 2392f4a36..028ddf555 100644 --- a/kio/kssl/ksslsigners.cc +++ b/kio/kssl/ksslsigners.cc @@ -199,7 +199,7 @@ TQStringList KSSLSigners::list() { "caList()", data, rettype, retval); - if (rc && rettype == "TQStringList") { + if (rc && rettype == TQSTRINGLIST_OBJECT_NAME_STRING) { TQDataStream retStream(retval, IO_ReadOnly); retStream >> drc; } @@ -218,7 +218,7 @@ TQString KSSLSigners::getCert(TQString subject) { "caGetCert(TQString)", data, rettype, retval); - if (rc && rettype == "TQString") { + if (rc && rettype == TQSTRING_OBJECT_NAME_STRING) { TQDataStream retStream(retval, IO_ReadOnly); retStream >> drc; } diff --git a/kio/misc/kpac/proxyscout.cpp b/kio/misc/kpac/proxyscout.cpp index f843dc045..48ff7ae84 100644 --- a/kio/misc/kpac/proxyscout.cpp +++ b/kio/misc/kpac/proxyscout.cpp @@ -130,7 +130,7 @@ namespace KPAC for ( RequestQueue::ConstIterator it = m_requestQueue.begin(); it != m_requestQueue.end(); ++it ) { - TQCString type = "TQString"; + TQCString type = TQSTRING_OBJECT_NAME_STRING; TQByteArray data; TQDataStream ds( data, IO_WriteOnly ); if ( success ) ds << handleRequest( ( *it ).url ); diff --git a/kparts/factory.h b/kparts/factory.h index 2ac834ba4..d8315bd1b 100644 --- a/kparts/factory.h +++ b/kparts/factory.h @@ -119,7 +119,7 @@ protected: /** * Reimplemented from KLibFactory. Calls createPart() */ - virtual TQObject *createObject( TQObject *parent = 0, const char *name = 0, const char *classname = "TQObject", const TQStringList &args = TQStringList() ); + virtual TQObject *createObject( TQObject *parent = 0, const char *name = 0, const char *classname = TQOBJECT_OBJECT_NAME_STRING, const TQStringList &args = TQStringList() ); /** This 'enum' along with the structure below is NOT part of the public API. * It's going to disappear in KDE 4.0 and is likely to change inbetween.