diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 12:23:23 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-25 12:28:34 +0900 |
commit | 33c7d159890b81da8f44ee330a349e3abd553bec (patch) | |
tree | 4ca5c12ef5848d45ef05de99e51763b0a2de22e3 /doc | |
parent | eef7c094ea9c14a5e0f523adf341abfe499996c5 (diff) | |
download | tdebase-33c7d159890b81da8f44ee330a349e3abd553bec.tar.gz tdebase-33c7d159890b81da8f44ee330a349e3abd553bec.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/kate/regular-expressions.docbook | 4 | ||||
-rw-r--r-- | doc/khelpcenter/adminguide/index.docbook | 26 | ||||
-rw-r--r-- | doc/ksplashml/index.docbook | 66 |
3 files changed, 48 insertions, 48 deletions
diff --git a/doc/kate/regular-expressions.docbook b/doc/kate/regular-expressions.docbook index c15685d75..51a9cf4e6 100644 --- a/doc/kate/regular-expressions.docbook +++ b/doc/kate/regular-expressions.docbook @@ -640,8 +640,8 @@ acknowledged if the following part of the searched string does match its <emphasis>PATTERN</emphasis>.</para> <para>The expression <userinput>const \w+\b(?!\s*&)</userinput> will match at <quote>const char</quote> in the string <quote>const -char* foo</quote> while it can not match <quote>const QString</quote> -in <quote>const QString& bar</quote> because the +char* foo</quote> while it can not match <quote>const TQString</quote> +in <quote>const TQString& bar</quote> because the <quote>&</quote> matches the negative lookahead assertion pattern.</para> </listitem> diff --git a/doc/khelpcenter/adminguide/index.docbook b/doc/khelpcenter/adminguide/index.docbook index 85c82ff95..c5052185a 100644 --- a/doc/khelpcenter/adminguide/index.docbook +++ b/doc/khelpcenter/adminguide/index.docbook @@ -2519,11 +2519,11 @@ session-4 QCStringList interfaces() QCStringList functions() int sessionCount() -QString currentSession() -QString newSession() -QString newSession(QString type) -QString sessionId(int position) -void activateSession(QString sessionId) +TQString currentSession() +TQString newSession() +TQString newSession(TQString type) +TQString sessionId(int position) +void activateSession(TQString sessionId) void nextSession() void prevSession() void moveSessionLeft() @@ -2541,15 +2541,15 @@ QCStringList functions() bool closeSession() bool sendSignal(int signal) void clearHistory() -void renameSession(QString name) -QString sessionName() +void renameSession(TQString name) +TQString sessionName() int sessionPID() -QString schema() -void setSchema(QString schema) -QString encoding() -void setEncoding(QString encoding) -QString keytab() -void setKeytab(QString keyboard) +TQString schema() +void setSchema(TQString schema) +TQString encoding() +void setEncoding(TQString encoding) +TQString keytab() +void setKeytab(TQString keyboard) QSize size() void setSize(QSize size) </screen> diff --git a/doc/ksplashml/index.docbook b/doc/ksplashml/index.docbook index f8cc11480..377d2925d 100644 --- a/doc/ksplashml/index.docbook +++ b/doc/ksplashml/index.docbook @@ -607,7 +607,7 @@ follows:</para> <programlisting> DCOPClient *c = kapp->dcopClient(); -QString error; +TQString error; QCString KSplashName; int pid = 0; QStringList args; @@ -644,10 +644,10 @@ data)) <para>Whenever you want to display a message with or without an icon, use</para> <programlisting> - arg << QString("iconName") << QString("programName") << -QString("Some description"); + arg << TQString("iconName") << TQString("programName") << +TQString("Some description"); if (!(c->send(KSplashName, "KSplashIface", -"programStarted(QString,QString,QString)", data)) +"programStarted(TQString,TQString,TQString)", data)) { // Some error processing here. } @@ -791,7 +791,7 @@ functions <function>slotSetText</function>, <function>slotSetPixmap</function>, <function>slotUpdateProgress</function> and <function>slotUpdateSteps</function> to make it usable.</para></listitem> <listitem><para>The constructor should take the form -<literal>ThemeEngine( QWidget *parent, const char *name, const QStringList +<literal>ThemeEngine( TQWidget *parent, const char *name, const QStringList &args )</literal> so that it can be used with <classname>KGenericFactory</classname>.</para></listitem> @@ -832,11 +832,11 @@ class Theme2k: public ThemeEngine { TQ_OBJECT public: - Theme2k( QWidget *, const char *, const QStringList& ); + Theme2k( TQWidget *, const char *, const QStringList& ); - inline const QString name() + inline const TQString name() { - return( QString("KSplash2k") ); + return( TQString("KSplash2k") ); } inline const KDialogBase *config( TDEConfig *kc ) { @@ -853,7 +853,7 @@ public: }; public slots: - inline void slotSetText( const QString& s ) + inline void slotSetText( const TQString& s ) { if( mText && mText->text() != s ) mText->setText( s ); }; @@ -864,9 +864,9 @@ private: QLabel *mText; RotWidget *mRotator; - QColor mTBgColor, mTFgColor, mRotColor1, mRotColor2, mStatusColor; + TQColor mTBgColor, mTFgColor, mRotColor1, mRotColor2, mStatusColor; int mRotSpeed; - QString mWndTitle, mLogoFile; + TQString mWndTitle, mLogoFile; }; #endif @@ -878,7 +878,7 @@ the naming conventions, and is inherited from <classname>ThemeEngine</classname>. It provides a <methodname>Theme2k::names()</methodname>, and has a constructor that takes the required -parameters: <function>Theme2k( QWidget *, const char *, const QStringList& +parameters: <function>Theme2k( TQWidget *, const char *, const QStringList& );</function> and also provides a simple <methodname>Theme2k::slotSetText()</methodname> method. For the moment, @@ -913,7 +913,7 @@ straightforward.</para> <example> <title>Plugin constructor</title> <programlisting> -Theme2k::Theme2k( QWidget *parent, const char *name, const QStringList &args +Theme2k::Theme2k( TQWidget *parent, const char *name, const QStringList &args ) :ThemeEngine( parent, name, args ) { @@ -938,10 +938,10 @@ void Theme2k::readSettings() if( !cfg ) return; - cfg->setGroup( QString("KSplash Theme: %1").arg(mTheme->theme()) ); + cfg->setGroup( TQString("KSplash Theme: %1").arg(mTheme->theme()) ); - QColor DefaultTBgColor( Qt::darkBlue ); - QColor DefaultTFgColor( Qt::white ); + TQColor DefaultTBgColor( Qt::darkBlue ); + TQColor DefaultTFgColor( Qt::white ); mTBgColor = cfg->readColorEntry( "Title Background Color", &DefaultTBgColor ); @@ -949,14 +949,14 @@ void Theme2k::readSettings() &DefaultTFgColor ); mStatusColor = cfg->readColorEntry("Status Text Color", &mTBgColor ); - QColor DefaultRot1( Qt::darkBlue ); - QColor DefaultRot2( Qt::cyan ); + TQColor DefaultRot1( Qt::darkBlue ); + TQColor DefaultRot2( Qt::cyan ); mRotColor1 = cfg->readColorEntry( "Rotator Color 1", &DefaultRot1 ); mRotColor2 = cfg->readColorEntry( "Rotator Color 2", &DefaultRot2 ); mRotSpeed = cfg->readNumEntry( "Rotator Speed", 30 ); mWndTitle = cfg->readEntry( "Window Title", i18n("Please wait...") ); - mLogoFile = cfg->readEntry( "Logo File", QString::null ); + mLogoFile = cfg->readEntry( "Logo File", TQString::null ); } </programlisting> </example> @@ -1112,7 +1112,7 @@ K_EXPORT_COMPONENT_FACTORY( ksplash2k, KGenericFactory<Theme2k> ); Cfg2k::Cfg2k( TDEConfig * ) {} -Theme2k::Theme2k( QWidget *parent, const char *name, const QStringList &args +Theme2k::Theme2k( TQWidget *parent, const char *name, const QStringList &args ) :ThemeEngine( parent, name, args ) { @@ -1136,8 +1136,8 @@ void Theme2k::initUi() QLabel *logo = new QLabel( vbox ); logo->setPalette( Qt::white ); - QString px( locate( "appdata", mTheme->themeDir() + -(mLogoFile.isNull()?QString("/Logo.png"):mLogoFile) ) ); + TQString px( locate( "appdata", mTheme->themeDir() + +(mLogoFile.isNull()?TQString("/Logo.png"):mLogoFile) ) ); if (px.isNull()) px = locate("appdata","Themes/Default/splash_top.png"); if( !px.isNull() ) @@ -1178,10 +1178,10 @@ void Theme2k::readSettings() if( !cfg ) return; - cfg->setGroup( QString("KSplash Theme: %1").arg(mTheme->theme()) ); + cfg->setGroup( TQString("KSplash Theme: %1").arg(mTheme->theme()) ); - QColor DefaultTBgColor( Qt::darkBlue ); - QColor DefaultTFgColor( Qt::white ); + TQColor DefaultTBgColor( Qt::darkBlue ); + TQColor DefaultTFgColor( Qt::white ); mTBgColor = cfg->readColorEntry( "Title Background Color", &DefaultTBgColor ); @@ -1189,14 +1189,14 @@ void Theme2k::readSettings() &DefaultTFgColor ); mStatusColor = cfg->readColorEntry("Status Text Color", &mTBgColor ); - QColor DefaultRot1( Qt::darkBlue ); - QColor DefaultRot2( Qt::cyan ); + TQColor DefaultRot1( Qt::darkBlue ); + TQColor DefaultRot2( Qt::cyan ); mRotColor1 = cfg->readColorEntry( "Rotator Color 1", &DefaultRot1 ); mRotColor2 = cfg->readColorEntry( "Rotator Color 2", &DefaultRot2 ); mRotSpeed = cfg->readNumEntry( "Rotator Speed", 30 ); mWndTitle = cfg->readEntry( "Window Title", i18n("Please wait...") ); - mLogoFile = cfg->readEntry( "Logo File", QString::null ); + mLogoFile = cfg->readEntry( "Logo File", TQString::null ); } </programlisting> </sect1> @@ -1216,11 +1216,11 @@ void Theme2k::readSettings() /** * @short Display a rotating-gradient widget. */ -class RotWidget: public QWidget +class RotWidget: public TQWidget { TQ_OBJECT public: - RotWidget( QWidget *, const QColor&, const QColor&, int ); + RotWidget( TQWidget *, const TQColor&, const TQColor&, int ); ~RotWidget(); private slots: @@ -1231,7 +1231,7 @@ protected: void paintEvent( QPaintEvent * ); void resizeEvent( QResizeEvent * ); - QColor m_color1, m_color2; + TQColor m_color1, m_color2; int m_step, m_speed; QTimer *m_stepTimer; @@ -1255,9 +1255,9 @@ protected: #include "rotwidget.h" #include "rotwidget.moc" -RotWidget::RotWidget( QWidget *parent, const QColor& c1, const QColor& +RotWidget::RotWidget( TQWidget *parent, const TQColor& c1, const TQColor& c2, int sp ) - :QWidget(parent), m_color1(c1), m_color2(c2), m_step(0), m_speed(sp) + :TQWidget(parent), m_color1(c1), m_color2(c2), m_step(0), m_speed(sp) { if( (m_speed <= 0) || (m_speed > 20) ) m_speed = 1; |