summaryrefslogtreecommitdiffstats
path: root/tde-i18n-en_GB/docs/tdebase
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-10-13 18:02:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-16 21:32:11 +0900
commit83e7d90131a60206a219edf4a2ba9e570c689268 (patch)
tree46580d5604e909a3b3699b4e27201bcd66f3c18f /tde-i18n-en_GB/docs/tdebase
parentd3f6a5fb3fca54c14196ef9d16eed9a37e9516e9 (diff)
downloadtde-i18n-83e7d90131a60206a219edf4a2ba9e570c689268.tar.gz
tde-i18n-83e7d90131a60206a219edf4a2ba9e570c689268.zip
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 241e0082f7b9ccadaeed0ef43a1c9ebb9b4fe840)
Diffstat (limited to 'tde-i18n-en_GB/docs/tdebase')
-rw-r--r--tde-i18n-en_GB/docs/tdebase/kate/regular-expressions.docbook2
-rw-r--r--tde-i18n-en_GB/docs/tdebase/ksplashml/index.docbook62
2 files changed, 32 insertions, 32 deletions
diff --git a/tde-i18n-en_GB/docs/tdebase/kate/regular-expressions.docbook b/tde-i18n-en_GB/docs/tdebase/kate/regular-expressions.docbook
index 5adc38a3f0c..ba09e9c6d44 100644
--- a/tde-i18n-en_GB/docs/tdebase/kate/regular-expressions.docbook
+++ b/tde-i18n-en_GB/docs/tdebase/kate/regular-expressions.docbook
@@ -465,7 +465,7 @@ expressions of perl, nor with those of for example
<term><userinput>(?!PATTERN)</userinput> (Negative lookahead)</term>
<listitem><para>The negative lookahead prevents a possible match to be acknowledged if the following part of the searched string does match its <emphasis>PATTERN</emphasis>.</para>
-<para>The expression <userinput>const \w+\b(?!\s*&amp;)</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&amp; bar</quote> because the <quote>&amp;</quote> matches the negative lookahead assertion pattern.</para>
+<para>The expression <userinput>const \w+\b(?!\s*&amp;)</userinput> will match at <quote>const char</quote> in the string <quote>const char* foo</quote> while it can not match <quote>const TQString</quote> in <quote>const TQString&amp; bar</quote> because the <quote>&amp;</quote> matches the negative lookahead assertion pattern.</para>
</listitem>
</varlistentry>
diff --git a/tde-i18n-en_GB/docs/tdebase/ksplashml/index.docbook b/tde-i18n-en_GB/docs/tdebase/ksplashml/index.docbook
index 95349cff6ef..9614905eb37 100644
--- a/tde-i18n-en_GB/docs/tdebase/ksplashml/index.docbook
+++ b/tde-i18n-en_GB/docs/tdebase/ksplashml/index.docbook
@@ -465,7 +465,7 @@ Welcome Text = Loading KDE
<para>Before your application starts its computation intensive work, or before it starts loading plugins, &etc;, invoke &ksplash; as follows:</para>
<programlisting>DCOPClient *c = kapp-&gt;dcopClient();
-QString error;
+TQString error;
QCString KSplashName;
int pid = 0;
QStringList args;
@@ -494,8 +494,8 @@ if (kapp-&gt;startServiceByDesktopName("ksplash", args, &amp;error, &amp;KSplash
<para>Whenever you want to display a message with or without an icon, use</para>
-<programlisting>arg &lt;&lt; QString("iconName") &lt;&lt; QString("programName") &lt;&lt; QString("Some description");
- if (!(c-&gt;send(KSplashName, "KSplashIface", "programStarted(QString,QString,QString)", data))
+<programlisting>arg &lt;&lt; TQString("iconName") &lt;&lt; TQString("programName") &lt;&lt; TQString("Some description");
+ if (!(c-&gt;send(KSplashName, "KSplashIface", "programStarted(TQString,TQString,TQString)", data))
{
// Some error processing here.
}
@@ -560,7 +560,7 @@ X-KSplash-ObjectName=Theme2k
<listitem><para>Plugin classes should provide a <literal>static</literal> function called <function>names</function> that returns a list of names by which it can be invoked.</para></listitem>
<listitem><para>If the plugin can be configured in the control centre module, it should provide a <literal>ThemeEngineConfig</literal>-based class for the configuration.</para></listitem>
<listitem><para>Plugin classes must override at least one of the virtual 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 &amp;args )</literal> so that it can be used with <classname>KGenericFactory</classname>.</para></listitem>
+<listitem><para>The constructor should take the form <literal>ThemeEngine( TQWidget *parent, const char *name, const QStringList &amp;args )</literal> so that it can be used with <classname>KGenericFactory</classname>.</para></listitem>
</orderedlist>
<para>The last requirement may seem complicated, but, as we will see later, by adding a single line to your source files, you can usually ignore it.</para>
</sect1>
@@ -593,11 +593,11 @@ class Theme2k: public ThemeEngine
{
TQ_OBJECT
public:
- Theme2k( QWidget *, const char *, const QStringList&amp; );
+ Theme2k( TQWidget *, const char *, const QStringList&amp; );
- inline const QString name()
+ inline const TQString name()
{
- return( QString("KSplash2k") );
+ return( TQString("KSplash2k") );
}
inline const KDialogBase *config( TDEConfig *kc )
{
@@ -614,7 +614,7 @@ public:
};
public slots:
- inline void slotSetText( const QString&amp; s )
+ inline void slotSetText( const TQString&amp; s )
{
if( mText &amp;&amp; mText-&gt;text() != s ) mText-&gt;setText( s );
};
@@ -625,15 +625,15 @@ 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
</programlisting>
</example>
-<para>Let us analyse the listing above. The <classname>Theme2k</classname> class satisfies 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&amp; );</function> and also provides a simple <methodname>Theme2k::slotSetText()</methodname> method. For the moment, do not worry about the <classname>RotWidget</classname> class. It is a small widget that provides some eye candy for the user. Our plugin is very simple and does not display any icons or show a progressbar. If you would like to display icons, override the <function>slotSetPixmap</function> function. Similar functions exist for setting the progressbar range (<function>slotUpdateSteps</function>) and incrementing(<function>slotUpdateProgress</function>) the current step. </para>
+<para>Let us analyse the listing above. The <classname>Theme2k</classname> class satisfies 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( TQWidget *, const char *, const QStringList&amp; );</function> and also provides a simple <methodname>Theme2k::slotSetText()</methodname> method. For the moment, do not worry about the <classname>RotWidget</classname> class. It is a small widget that provides some eye candy for the user. Our plugin is very simple and does not display any icons or show a progressbar. If you would like to display icons, override the <function>slotSetPixmap</function> function. Similar functions exist for setting the progressbar range (<function>slotUpdateSteps</function>) and incrementing(<function>slotUpdateProgress</function>) the current step. </para>
</sect1>
<sect1 id="Implementation">
<title>Implementation of the plugin</title>
@@ -646,7 +646,7 @@ private:
<para>The macro <constant>K_EXPORT_COMPONENT_FACTORY</constant> is declared in <filename>kgenericfactory.h</filename>. Onwards to the constructor! Since this is a very simple plugin, the constructor is pretty straightforward.</para>
<example>
<title>Plugin constructor</title>
-<programlisting>Theme2k::Theme2k( QWidget *parent, const char *name, const QStringList &amp;args )
+<programlisting>Theme2k::Theme2k( TQWidget *parent, const char *name, const QStringList &amp;args )
:ThemeEngine( parent, name, args )
{
readSettings();
@@ -666,23 +666,23 @@ private:
if( !cfg )
return;
- cfg-&gt;setGroup( QString("KSplash Theme: %1").arg(mTheme-&gt;theme()) );
+ cfg-&gt;setGroup( TQString("KSplash Theme: %1").arg(mTheme-&gt;theme()) );
- QColor DefaultTBgColor( Qt::darkBlue );
- QColor DefaultTFgColor( Qt::white );
+ TQColor DefaultTBgColor( Qt::darkBlue );
+ TQColor DefaultTFgColor( Qt::white );
mTBgColor = cfg-&gt;readColorEntry( "Title Background Color", &amp;DefaultTBgColor );
mTFgColor = cfg-&gt;readColorEntry( "Title Foreground Color", &amp;DefaultTFgColor );
mStatusColor = cfg-&gt;readColorEntry("Status Text Color", &amp;mTBgColor );
- QColor DefaultRot1( Qt::darkBlue );
- QColor DefaultRot2( Qt::cyan );
+ TQColor DefaultRot1( Qt::darkBlue );
+ TQColor DefaultRot2( Qt::cyan );
mRotColor1 = cfg-&gt;readColorEntry( "Rotator Color 1", &amp;DefaultRot1 );
mRotColor2 = cfg-&gt;readColorEntry( "Rotator Color 2", &amp;DefaultRot2 );
mRotSpeed = cfg-&gt;readNumEntry( "Rotator Speed", 30 );
mWndTitle = cfg-&gt;readEntry( "Window Title", i18n("Please wait...") );
- mLogoFile = cfg-&gt;readEntry( "Logo File", QString::null );
+ mLogoFile = cfg-&gt;readEntry( "Logo File", TQString::null );
}
</programlisting>
</example>
@@ -794,7 +794,7 @@ K_EXPORT_COMPONENT_FACTORY( ksplash2k, KGenericFactory&lt;Theme2k&gt; );
Cfg2k::Cfg2k( TDEConfig * )
{}
-Theme2k::Theme2k( QWidget *parent, const char *name, const QStringList &amp;args )
+Theme2k::Theme2k( TQWidget *parent, const char *name, const QStringList &amp;args )
:ThemeEngine( parent, name, args )
{
readSettings();
@@ -817,7 +817,7 @@ void Theme2k::initUi()
QLabel *logo = new QLabel( vbox );
logo-&gt;setPalette( Qt::white );
- QString px( locate( "appdata", mTheme-&gt;themeDir() + (mLogoFile.isNull()?QString("/Logo.png"):mLogoFile) ) );
+ TQString px( locate( "appdata", mTheme-&gt;themeDir() + (mLogoFile.isNull()?TQString("/Logo.png"):mLogoFile) ) );
if (px.isNull())
px = locate("appdata","Themes/Default/splash_top.png");
if( !px.isNull() )
@@ -858,23 +858,23 @@ void Theme2k::readSettings()
if( !cfg )
return;
- cfg-&gt;setGroup( QString("KSplash Theme: %1").arg(mTheme-&gt;theme()) );
+ cfg-&gt;setGroup( TQString("KSplash Theme: %1").arg(mTheme-&gt;theme()) );
- QColor DefaultTBgColor( Qt::darkBlue );
- QColor DefaultTFgColor( Qt::white );
+ TQColor DefaultTBgColor( Qt::darkBlue );
+ TQColor DefaultTFgColor( Qt::white );
mTBgColor = cfg-&gt;readColorEntry( "Title Background Color", &amp;DefaultTBgColor );
mTFgColor = cfg-&gt;readColorEntry( "Title Foreground Color", &amp;DefaultTFgColor );
mStatusColor = cfg-&gt;readColorEntry("Status Text Color", &amp;mTBgColor );
- QColor DefaultRot1( Qt::darkBlue );
- QColor DefaultRot2( Qt::cyan );
+ TQColor DefaultRot1( Qt::darkBlue );
+ TQColor DefaultRot2( Qt::cyan );
mRotColor1 = cfg-&gt;readColorEntry( "Rotator Color 1", &amp;DefaultRot1 );
mRotColor2 = cfg-&gt;readColorEntry( "Rotator Color 2", &amp;DefaultRot2 );
mRotSpeed = cfg-&gt;readNumEntry( "Rotator Speed", 30 );
mWndTitle = cfg-&gt;readEntry( "Window Title", i18n("Please wait...") );
- mLogoFile = cfg-&gt;readEntry( "Logo File", QString::null );
+ mLogoFile = cfg-&gt;readEntry( "Logo File", TQString::null );
}
</programlisting>
</sect1>
@@ -893,11 +893,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&amp;, const QColor&amp;, int );
+ RotWidget( TQWidget *, const TQColor&amp;, const TQColor&amp;, int );
~RotWidget();
private slots:
@@ -908,7 +908,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;
@@ -931,8 +931,8 @@ protected:
#include "rotwidget.h"
#include "rotwidget.moc"
-RotWidget::RotWidget( QWidget *parent, const QColor&amp; c1, const QColor&amp; c2, int sp )
- :QWidget(parent), m_color1(c1), m_color2(c2), m_step(0), m_speed(sp)
+RotWidget::RotWidget( TQWidget *parent, const TQColor&amp; c1, const TQColor&amp; c2, int sp )
+ :TQWidget(parent), m_color1(c1), m_color2(c2), m_step(0), m_speed(sp)
{
if( (m_speed &lt;= 0) || (m_speed &gt; 20) )
m_speed = 1;