Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/400/head
Michele Calgaro 8 months ago
parent eef7c094ea
commit 33c7d15989
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -640,8 +640,8 @@ acknowledged if the following part of the searched string does match
its <emphasis>PATTERN</emphasis>.</para> its <emphasis>PATTERN</emphasis>.</para>
<para>The expression <userinput>const \w+\b(?!\s*&amp;)</userinput> <para>The expression <userinput>const \w+\b(?!\s*&amp;)</userinput>
will match at <quote>const char</quote> in the string <quote>const will match at <quote>const char</quote> in the string <quote>const
char* foo</quote> while it can not match <quote>const QString</quote> char* foo</quote> while it can not match <quote>const TQString</quote>
in <quote>const QString&amp; bar</quote> because the in <quote>const TQString&amp; bar</quote> because the
<quote>&amp;</quote> matches the negative lookahead assertion <quote>&amp;</quote> matches the negative lookahead assertion
pattern.</para> pattern.</para>
</listitem> </listitem>

@ -2519,11 +2519,11 @@ session-4
QCStringList interfaces() QCStringList interfaces()
QCStringList functions() QCStringList functions()
int sessionCount() int sessionCount()
QString currentSession() TQString currentSession()
QString newSession() TQString newSession()
QString newSession(QString type) TQString newSession(TQString type)
QString sessionId(int position) TQString sessionId(int position)
void activateSession(QString sessionId) void activateSession(TQString sessionId)
void nextSession() void nextSession()
void prevSession() void prevSession()
void moveSessionLeft() void moveSessionLeft()
@ -2541,15 +2541,15 @@ QCStringList functions()
bool closeSession() bool closeSession()
bool sendSignal(int signal) bool sendSignal(int signal)
void clearHistory() void clearHistory()
void renameSession(QString name) void renameSession(TQString name)
QString sessionName() TQString sessionName()
int sessionPID() int sessionPID()
QString schema() TQString schema()
void setSchema(QString schema) void setSchema(TQString schema)
QString encoding() TQString encoding()
void setEncoding(QString encoding) void setEncoding(TQString encoding)
QString keytab() TQString keytab()
void setKeytab(QString keyboard) void setKeytab(TQString keyboard)
QSize size() QSize size()
void setSize(QSize size) void setSize(QSize size)
</screen> </screen>

@ -607,7 +607,7 @@ follows:</para>
<programlisting> <programlisting>
DCOPClient *c = kapp-&gt;dcopClient(); DCOPClient *c = kapp-&gt;dcopClient();
QString error; TQString error;
QCString KSplashName; QCString KSplashName;
int pid = 0; int pid = 0;
QStringList args; QStringList args;
@ -644,10 +644,10 @@ data))
<para>Whenever you want to display a message with or without an icon, use</para> <para>Whenever you want to display a message with or without an icon, use</para>
<programlisting> <programlisting>
arg &lt;&lt; QString("iconName") &lt;&lt; QString("programName") &lt;&lt; arg &lt;&lt; TQString("iconName") &lt;&lt; TQString("programName") &lt;&lt;
QString("Some description"); TQString("Some description");
if (!(c-&gt;send(KSplashName, "KSplashIface", if (!(c-&gt;send(KSplashName, "KSplashIface",
"programStarted(QString,QString,QString)", data)) "programStarted(TQString,TQString,TQString)", data))
{ {
// Some error processing here. // Some error processing here.
} }
@ -791,7 +791,7 @@ functions <function>slotSetText</function>,
<function>slotSetPixmap</function>, <function>slotUpdateProgress</function> and <function>slotSetPixmap</function>, <function>slotUpdateProgress</function> and
<function>slotUpdateSteps</function> to make it usable.</para></listitem> <function>slotUpdateSteps</function> to make it usable.</para></listitem>
<listitem><para>The constructor should take the form <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
&amp;args )</literal> &amp;args )</literal>
so that it can be used with so that it can be used with
<classname>KGenericFactory</classname>.</para></listitem> <classname>KGenericFactory</classname>.</para></listitem>
@ -832,11 +832,11 @@ class Theme2k: public ThemeEngine
{ {
TQ_OBJECT TQ_OBJECT
public: 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 ) inline const KDialogBase *config( TDEConfig *kc )
{ {
@ -853,7 +853,7 @@ public:
}; };
public slots: 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 ); if( mText &amp;&amp; mText-&gt;text() != s ) mText-&gt;setText( s );
}; };
@ -864,9 +864,9 @@ private:
QLabel *mText; QLabel *mText;
RotWidget *mRotator; RotWidget *mRotator;
QColor mTBgColor, mTFgColor, mRotColor1, mRotColor2, mStatusColor; TQColor mTBgColor, mTFgColor, mRotColor1, mRotColor2, mStatusColor;
int mRotSpeed; int mRotSpeed;
QString mWndTitle, mLogoFile; TQString mWndTitle, mLogoFile;
}; };
#endif #endif
@ -878,7 +878,7 @@ the naming conventions, and is inherited from
<classname>ThemeEngine</classname>. It provides <classname>ThemeEngine</classname>. It provides
a <methodname>Theme2k::names()</methodname>, and has a constructor that takes a <methodname>Theme2k::names()</methodname>, and has a constructor that takes
the required the required
parameters: <function>Theme2k( QWidget *, const char *, const QStringList&amp; parameters: <function>Theme2k( TQWidget *, const char *, const QStringList&amp;
);</function> );</function>
and also provides a simple <methodname>Theme2k::slotSetText()</methodname> and also provides a simple <methodname>Theme2k::slotSetText()</methodname>
method. For the moment, method. For the moment,
@ -913,7 +913,7 @@ straightforward.</para>
<example> <example>
<title>Plugin constructor</title> <title>Plugin constructor</title>
<programlisting> <programlisting>
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 ) :ThemeEngine( parent, name, args )
{ {
@ -938,10 +938,10 @@ void Theme2k::readSettings()
if( !cfg ) if( !cfg )
return; 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 ); TQColor DefaultTBgColor( Qt::darkBlue );
QColor DefaultTFgColor( Qt::white ); TQColor DefaultTFgColor( Qt::white );
mTBgColor = cfg-&gt;readColorEntry( "Title Background Color", mTBgColor = cfg-&gt;readColorEntry( "Title Background Color",
&amp;DefaultTBgColor ); &amp;DefaultTBgColor );
@ -949,14 +949,14 @@ void Theme2k::readSettings()
&amp;DefaultTFgColor ); &amp;DefaultTFgColor );
mStatusColor = cfg-&gt;readColorEntry("Status Text Color", &amp;mTBgColor ); mStatusColor = cfg-&gt;readColorEntry("Status Text Color", &amp;mTBgColor );
QColor DefaultRot1( Qt::darkBlue ); TQColor DefaultRot1( Qt::darkBlue );
QColor DefaultRot2( Qt::cyan ); TQColor DefaultRot2( Qt::cyan );
mRotColor1 = cfg-&gt;readColorEntry( "Rotator Color 1", &amp;DefaultRot1 ); mRotColor1 = cfg-&gt;readColorEntry( "Rotator Color 1", &amp;DefaultRot1 );
mRotColor2 = cfg-&gt;readColorEntry( "Rotator Color 2", &amp;DefaultRot2 ); mRotColor2 = cfg-&gt;readColorEntry( "Rotator Color 2", &amp;DefaultRot2 );
mRotSpeed = cfg-&gt;readNumEntry( "Rotator Speed", 30 ); mRotSpeed = cfg-&gt;readNumEntry( "Rotator Speed", 30 );
mWndTitle = cfg-&gt;readEntry( "Window Title", i18n("Please wait...") ); 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> </programlisting>
</example> </example>
@ -1112,7 +1112,7 @@ K_EXPORT_COMPONENT_FACTORY( ksplash2k, KGenericFactory&lt;Theme2k&gt; );
Cfg2k::Cfg2k( TDEConfig * ) 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 ) :ThemeEngine( parent, name, args )
{ {
@ -1136,8 +1136,8 @@ void Theme2k::initUi()
QLabel *logo = new QLabel( vbox ); QLabel *logo = new QLabel( vbox );
logo-&gt;setPalette( Qt::white ); logo-&gt;setPalette( Qt::white );
QString px( locate( "appdata", mTheme-&gt;themeDir() + TQString px( locate( "appdata", mTheme-&gt;themeDir() +
(mLogoFile.isNull()?QString("/Logo.png"):mLogoFile) ) ); (mLogoFile.isNull()?TQString("/Logo.png"):mLogoFile) ) );
if (px.isNull()) if (px.isNull())
px = locate("appdata","Themes/Default/splash_top.png"); px = locate("appdata","Themes/Default/splash_top.png");
if( !px.isNull() ) if( !px.isNull() )
@ -1178,10 +1178,10 @@ void Theme2k::readSettings()
if( !cfg ) if( !cfg )
return; 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 ); TQColor DefaultTBgColor( Qt::darkBlue );
QColor DefaultTFgColor( Qt::white ); TQColor DefaultTFgColor( Qt::white );
mTBgColor = cfg-&gt;readColorEntry( "Title Background Color", mTBgColor = cfg-&gt;readColorEntry( "Title Background Color",
&amp;DefaultTBgColor ); &amp;DefaultTBgColor );
@ -1189,14 +1189,14 @@ void Theme2k::readSettings()
&amp;DefaultTFgColor ); &amp;DefaultTFgColor );
mStatusColor = cfg-&gt;readColorEntry("Status Text Color", &amp;mTBgColor ); mStatusColor = cfg-&gt;readColorEntry("Status Text Color", &amp;mTBgColor );
QColor DefaultRot1( Qt::darkBlue ); TQColor DefaultRot1( Qt::darkBlue );
QColor DefaultRot2( Qt::cyan ); TQColor DefaultRot2( Qt::cyan );
mRotColor1 = cfg-&gt;readColorEntry( "Rotator Color 1", &amp;DefaultRot1 ); mRotColor1 = cfg-&gt;readColorEntry( "Rotator Color 1", &amp;DefaultRot1 );
mRotColor2 = cfg-&gt;readColorEntry( "Rotator Color 2", &amp;DefaultRot2 ); mRotColor2 = cfg-&gt;readColorEntry( "Rotator Color 2", &amp;DefaultRot2 );
mRotSpeed = cfg-&gt;readNumEntry( "Rotator Speed", 30 ); mRotSpeed = cfg-&gt;readNumEntry( "Rotator Speed", 30 );
mWndTitle = cfg-&gt;readEntry( "Window Title", i18n("Please wait...") ); 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> </programlisting>
</sect1> </sect1>
@ -1216,11 +1216,11 @@ void Theme2k::readSettings()
/** /**
* @short Display a rotating-gradient widget. * @short Display a rotating-gradient widget.
*/ */
class RotWidget: public QWidget class RotWidget: public TQWidget
{ {
TQ_OBJECT TQ_OBJECT
public: public:
RotWidget( QWidget *, const QColor&amp;, const QColor&amp;, int ); RotWidget( TQWidget *, const TQColor&amp;, const TQColor&amp;, int );
~RotWidget(); ~RotWidget();
private slots: private slots:
@ -1231,7 +1231,7 @@ protected:
void paintEvent( QPaintEvent * ); void paintEvent( QPaintEvent * );
void resizeEvent( QResizeEvent * ); void resizeEvent( QResizeEvent * );
QColor m_color1, m_color2; TQColor m_color1, m_color2;
int m_step, m_speed; int m_step, m_speed;
QTimer *m_stepTimer; QTimer *m_stepTimer;
@ -1255,9 +1255,9 @@ protected:
#include "rotwidget.h" #include "rotwidget.h"
#include "rotwidget.moc" #include "rotwidget.moc"
RotWidget::RotWidget( QWidget *parent, const QColor&amp; c1, const QColor&amp; RotWidget::RotWidget( TQWidget *parent, const TQColor&amp; c1, const TQColor&amp;
c2, int sp ) 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 &lt;= 0) || (m_speed &gt; 20) ) if( (m_speed &lt;= 0) || (m_speed &gt; 20) )
m_speed = 1; m_speed = 1;

@ -19,6 +19,6 @@ Licensing:
The Kate app/utils/interfaces and KWrite app are licensed under the LGPL VERSION 2. The Kate app/utils/interfaces and KWrite app are licensed under the LGPL VERSION 2.
*** Undocumented features in Kate version 2.5.2 *** *** Undocumented features in Kate version 2.5.2 ***
* The KateApplication DCOP interface has a function QString session() that * The KateApplication DCOP interface has a function TQString session() that
returns the name of the active session (which might be an empty string). returns the name of the active session (which might be an empty string).
(but hey, documentation of the DCOP interface is missing completely) (but hey, documentation of the DCOP interface is missing completely)

@ -52,7 +52,7 @@ class KateDocumentInfo
unsigned char modifiedOnDiscReason; unsigned char modifiedOnDiscReason;
}; };
typedef QPair<KURL,TQDateTime> TPair; typedef TQPair<KURL,TQDateTime> TPair;
class KateDocManager : public TQObject class KateDocManager : public TQObject
{ {

@ -257,7 +257,7 @@ void ToolView::childEvent ( TQChildEvent *ev )
{ {
// set the widget to be focus proxy if possible // set the widget to be focus proxy if possible
if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->tqt_cast("TQWidget")) { if (ev->inserted() && ev->child() && TQT_TQOBJECT(ev->child())->tqt_cast("TQWidget")) {
setFocusProxy (::tqqt_cast<QWidget*>(TQT_TQOBJECT(ev->child()))); setFocusProxy (::tqqt_cast<TQWidget*>(TQT_TQOBJECT(ev->child())));
} }
TQVBox::childEvent (ev); TQVBox::childEvent (ev);

@ -528,7 +528,7 @@ void BGDialog::loadWallpaperFilesList() {
// Wallpapers // Wallpapers
// the following TQMap is lower cased names mapped to cased names and URLs // the following TQMap is lower cased names mapped to cased names and URLs
// this way we get case insensitive sorting // this way we get case insensitive sorting
TQMap<TQString, QPair<TQString, TQString> > papers; TQMap<TQString, TQPair<TQString, TQString> > papers;
//search for .desktop files before searching for images without .desktop files //search for .desktop files before searching for images without .desktop files
TQStringList lst = m_pDirs->findAllResources("wallpaper", "*desktop", false, true); TQStringList lst = m_pDirs->findAllResources("wallpaper", "*desktop", false, true);
@ -620,7 +620,7 @@ void BGDialog::loadWallpaperFilesList() {
comboWallpaper->clear(); comboWallpaper->clear();
m_wallpaper.clear(); m_wallpaper.clear();
int i = 0; int i = 0;
for (TQMap<TQString, QPair<TQString, TQString> >::Iterator it = papers.begin(); for (TQMap<TQString, TQPair<TQString, TQString> >::Iterator it = papers.begin();
it != papers.end(); it != papers.end();
++it) ++it)
{ {

@ -120,7 +120,7 @@ private:
* images. Usage is similar to KBackgroundRenderer: connect to the imageDone * images. Usage is similar to KBackgroundRenderer: connect to the imageDone
* signal. * signal.
*/ */
class KVirtualBGRenderer : public QObject class KVirtualBGRenderer : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -486,7 +486,7 @@ TQString propvalue( di_prop_t prop ) {
char *strp; char *strp;
int *intp; int *intp;
uchar_t *bytep; uchar_t *bytep;
QString result; TQString result;
/* /*
* Since a lot of printable strings seem to be tagged as 'byte', * Since a lot of printable strings seem to be tagged as 'byte',
@ -565,11 +565,11 @@ int dump_node( di_node_t node, void *arg ) {
TQListViewItem *top = (TQListViewItem *) arg, TQListViewItem *top = (TQListViewItem *) arg,
*parent, *parent,
*previous; *previous;
char *path; char *path;
char *drivername; char *drivername;
char *names; char *names;
QString compatnames; TQString compatnames;
int i, n; int i, n;
di_prop_t prop; di_prop_t prop;
path = di_devfs_path( node ); path = di_devfs_path( node );

@ -580,7 +580,7 @@ TQPixmap ThemePage::createIcon( const TQString &theme, const TQString &sample )
// Calculate the image size // Calculate the image size
int size = kMax( iconSize, kMax( r.width(), r.height() ) ); int size = kMax( iconSize, kMax( r.width(), r.height() ) );
// Create the intermediate QImage // Create the intermediate TQImage
TQImage image( size, size, 32 ); TQImage image( size, size, 32 );
image.setAlphaBuffer( true ); image.setAlphaBuffer( true );

@ -35,9 +35,9 @@
#include "ktimerdialog.h" #include "ktimerdialog.h"
#include "ktimerdialog.moc" #include "ktimerdialog.moc"
KTimerDialog::KTimerDialog( int msec, TimerStyle style, QWidget *parent, KTimerDialog::KTimerDialog( int msec, TimerStyle style, TQWidget *parent,
const char *name, bool modal, const char *name, bool modal,
const QString &caption, const TQString &caption,
int buttonMask, ButtonCode defaultButton, int buttonMask, ButtonCode defaultButton,
bool separator, bool separator,
const KGuiItem &user1, const KGuiItem &user1,
@ -90,7 +90,7 @@ int KTimerDialog::exec()
return KDialogBase::exec(); return KDialogBase::exec();
} }
void KTimerDialog::setMainWidget( QWidget *widget ) void KTimerDialog::setMainWidget( TQWidget *widget )
{ {
// yuck, here goes. // yuck, here goes.
QVBox *newWidget = new QVBox( this ); QVBox *newWidget = new QVBox( this );

@ -67,9 +67,9 @@ class KTimerDialog : public KDialogBase
* *
* For the rest of the arguments, See @see KDialogBase . * For the rest of the arguments, See @see KDialogBase .
*/ */
KTimerDialog( int msec, TimerStyle style=CountDown, QWidget *parent=0, KTimerDialog( int msec, TimerStyle style=CountDown, TQWidget *parent=0,
const char *name=0, bool modal=true, const char *name=0, bool modal=true,
const QString &caption=QString::null, const TQString &caption=TQString::null,
int buttonMask=Ok|Apply|Cancel, ButtonCode defaultButton=Ok, int buttonMask=Ok|Apply|Cancel, ButtonCode defaultButton=Ok,
bool separator=false, bool separator=false,
const KGuiItem &user1=KGuiItem(), const KGuiItem &user1=KGuiItem(),
@ -117,7 +117,7 @@ class KTimerDialog : public KDialogBase
* Overridden function which is used to set the main widget of the dialog. * Overridden function which is used to set the main widget of the dialog.
* @see KDialogBase::setMainWidget. * @see KDialogBase::setMainWidget.
*/ */
void setMainWidget( QWidget *widget ); void setMainWidget( TQWidget *widget );
signals: signals:
/** /**

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>NoSmartcardBase</class> <class>NoSmartcardBase</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>NoSmartcardBase</cstring> <cstring>NoSmartcardBase</cstring>
</property> </property>

@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>SmartcardBase</class> <class>SmartcardBase</class>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>SmartcardBase</cstring> <cstring>SmartcardBase</cstring>
</property> </property>
@ -23,7 +23,7 @@
<property name="enabled"> <property name="enabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>
@ -127,7 +127,7 @@
</spacer> </spacer>
</grid> </grid>
</widget> </widget>
<widget class="QWidget"> <widget class="TQWidget">
<property name="name"> <property name="name">
<cstring>tab</cstring> <cstring>tab</cstring>
</property> </property>

@ -29,7 +29,7 @@ NEW PROPERTIES:
=============== ===============
X-TDE-UA-TAG X-TDE-UA-TAG
FIELD: REQUIRED FIELD: REQUIRED
TYPE: QString TYPE: TQString
TRANSLATE: NO TRANSLATE: NO
DESCRIPTION: DESCRIPTION:
An abbreviation of the actual browser-brand and is used An abbreviation of the actual browser-brand and is used
@ -42,7 +42,7 @@ actual user-agent name (X-TDE-UA-NAME).
X-TDE-UA-FULL X-TDE-UA-FULL
FIELD: REQUIRED FIELD: REQUIRED
TYPE: QString TYPE: TQString
TRANSLATE: NO TRANSLATE: NO
DESCRIPTION: DESCRIPTION:
The full user-agent description that will be sent to the remote The full user-agent description that will be sent to the remote
@ -62,21 +62,21 @@ and set its value to 1 (for true).
X-TDE-UA-NAME X-TDE-UA-NAME
FIELD: REQUIRED FIELD: REQUIRED
TYPE: QString TYPE: TQString
TRANSLATE: YES TRANSLATE: YES
DESCRIPTION: DESCRIPTION:
The actual name of the browser or user-agent. The actual name of the browser or user-agent.
X-TDE-UA-VERSION X-TDE-UA-VERSION
FIELD: REQUIRED FIELD: REQUIRED
TYPE: QString TYPE: TQString
TRANSLATE: YES TRANSLATE: YES
DESCRIPTION: DESCRIPTION:
The actual version of the browser or user-agent. The actual version of the browser or user-agent.
X-TDE-UA-SYSNAME X-TDE-UA-SYSNAME
FIELD: OPTIONAL FIELD: OPTIONAL
TYPE: QString TYPE: TQString
TRANSLATE: YES TRANSLATE: YES
DESCRIPTION: DESCRIPTION:
The system name (for example Linux) where the browser The system name (for example Linux) where the browser
@ -84,7 +84,7 @@ identification was obtained from.
X-TDE-UA-SYSRELEASE X-TDE-UA-SYSRELEASE
FIELD: OPTIONAL FIELD: OPTIONAL
TYPE: QString TYPE: TQString
TRANSLATE: YES TRANSLATE: YES
DESCRIPTION: DESCRIPTION:
The system version (for example 2.4.1) where the browser The system version (for example 2.4.1) where the browser

@ -127,13 +127,13 @@ TDModule::TDModule(TQWidget *parent, const char *name, const TQStringList &)
TQMap<gid_t,TQStringList> tgmap; TQMap<gid_t,TQStringList> tgmap;
TQMap<gid_t,TQStringList>::Iterator tgmapi; TQMap<gid_t,TQStringList>::Iterator tgmapi;
TQMap<gid_t,TQStringList>::ConstIterator tgmapci; TQMap<gid_t,TQStringList>::ConstIterator tgmapci;
TQMap<TQString, QPair<int,TQStringList> >::Iterator umapi; TQMap<TQString, TQPair<int,TQStringList> >::Iterator umapi;
struct passwd *ps; struct passwd *ps;
for (setpwent(); (ps = getpwent()); ) { for (setpwent(); (ps = getpwent()); ) {
TQString un( TQFile::decodeName( ps->pw_name ) ); TQString un( TQFile::decodeName( ps->pw_name ) );
if (usermap.find( un ) == usermap.end()) { if (usermap.find( un ) == usermap.end()) {
usermap.insert( un, QPair<int,TQStringList>( ps->pw_uid, sl ) ); usermap.insert( un, TQPair<int,TQStringList>( ps->pw_uid, sl ) );
if ((tgmapi = tgmap.find( ps->pw_gid )) != tgmap.end()) if ((tgmapi = tgmap.find( ps->pw_gid )) != tgmap.end())
(*tgmapi).append( un ); (*tgmapi).append( un );
else else
@ -298,7 +298,7 @@ void TDModule::propagateUsers()
groupmap.clear(); groupmap.clear();
emit clearUsers(); emit clearUsers();
TQMap<TQString,int> lusers; TQMap<TQString,int> lusers;
TQMapConstIterator<TQString, QPair<int,TQStringList> > it; TQMapConstIterator<TQString, TQPair<int,TQStringList> > it;
TQStringList::ConstIterator jt; TQStringList::ConstIterator jt;
TQMap<TQString,int>::Iterator gmapi; TQMap<TQString,int>::Iterator gmapi;
for (it = usermap.begin(); it != usermap.end(); ++it) { for (it = usermap.begin(); it != usermap.end(); ++it) {
@ -321,7 +321,7 @@ void TDModule::slotMinMaxUID(int min, int max)
{ {
if (updateOK) { if (updateOK) {
TQMap<TQString,int> alusers, dlusers; TQMap<TQString,int> alusers, dlusers;
TQMapConstIterator<TQString, QPair<int,TQStringList> > it; TQMapConstIterator<TQString, TQPair<int,TQStringList> > it;
TQStringList::ConstIterator jt; TQStringList::ConstIterator jt;
TQMap<TQString,int>::Iterator gmapi; TQMap<TQString,int>::Iterator gmapi;
for (it = usermap.begin(); it != usermap.end(); ++it) { for (it = usermap.begin(); it != usermap.end(); ++it) {

@ -71,7 +71,7 @@ private:
TDMUsersWidget *users; TDMUsersWidget *users;
TDMConvenienceWidget *convenience; TDMConvenienceWidget *convenience;
TQMap<TQString, QPair<int,TQStringList> > usermap; TQMap<TQString, TQPair<int,TQStringList> > usermap;
TQMap<TQString,int> groupmap; TQMap<TQString,int> groupmap;
int minshowuid, maxshowuid; int minshowuid, maxshowuid;
bool updateOK; bool updateOK;

@ -272,7 +272,7 @@ KDesktop::initRoot()
connect( m_pIconView, TQT_SIGNAL( wheelRolled( int ) ), connect( m_pIconView, TQT_SIGNAL( wheelRolled( int ) ),
this, TQT_SLOT( slotSwitchDesktops( int ) ) ); this, TQT_SLOT( slotSwitchDesktops( int ) ) );
// All the QScrollView/QWidget-specific stuff should go here, so that we can use // All the QScrollView/TQWidget-specific stuff should go here, so that we can use
// another qscrollview/widget instead of the iconview and use the same code // another qscrollview/widget instead of the iconview and use the same code
m_pIconView->setVScrollBarMode( TQScrollView::AlwaysOff ); m_pIconView->setVScrollBarMode( TQScrollView::AlwaysOff );
m_pIconView->setHScrollBarMode( TQScrollView::AlwaysOff ); m_pIconView->setHScrollBarMode( TQScrollView::AlwaysOff );

@ -51,7 +51,7 @@ private:
}; };
class KWebDesktopRun : public QObject class KWebDesktopRun : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -384,7 +384,7 @@ protocol == "help") by itself and otherwise use the plain URL.
## mode. ## mode.
# Hmm yes, that should be possible. Take the toplevel widget, use # Hmm yes, that should be possible. Take the toplevel widget, use
# QObject::children() and iterate over all children, use QToolTip::textFor() to # TQObject::children() and iterate over all children, use QToolTip::textFor() to
# check whether the given qwidget has a tooltip and if so, use QToolTip::tip() # check whether the given qwidget has a tooltip and if so, use QToolTip::tip()
# to show the tooltip. # to show the tooltip.
# One could probably add a standard dcop call to TDEMainWindow, like # One could probably add a standard dcop call to TDEMainWindow, like

@ -10,7 +10,7 @@ namespace KHC {
class DocEntry; class DocEntry;
class HTMLSearch : public QObject class HTMLSearch : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -16,7 +16,7 @@ class TDEProcess;
class ProgressDialog; class ProgressDialog;
class HTMLSearch : public QObject class HTMLSearch : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -30,7 +30,7 @@ class TDEProcess;
namespace KHC { namespace KHC {
class IndexBuilder : public QObject class IndexBuilder : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -134,8 +134,8 @@ Navigator::Navigator( View *view, TQWidget *parent, const char *name )
mSearchWidget->readConfig( TDEGlobal::config() ); mSearchWidget->readConfig( TDEGlobal::config() );
} }
connect( mTabWidget, TQT_SIGNAL( currentChanged( QWidget * ) ), connect( mTabWidget, TQT_SIGNAL( currentChanged( TQWidget * ) ),
TQT_SLOT( slotTabChanged( QWidget * ) ) ); TQT_SLOT( slotTabChanged( TQWidget * ) ) );
} }
Navigator::~Navigator() Navigator::~Navigator()

@ -47,7 +47,7 @@ class SearchJob
TQString mError; TQString mError;
}; };
class SearchHandler : public QObject class SearchHandler : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -30,7 +30,7 @@ class TDEProcess;
namespace KHC { namespace KHC {
class TOC : public QObject class TOC : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -97,7 +97,7 @@
a .desktop file from the TDE Menu to execute (e.g. 'System/konsole.desktop') a .desktop file from the TDE Menu to execute (e.g. 'System/konsole.desktop')
- DCOP call tab settings - enter the application, object, DCOP method and - DCOP call tab settings - enter the application, object, DCOP method and
arguments (e.g. 'kdesktop', 'KBackgroundIface', arguments (e.g. 'kdesktop', 'KBackgroundIface',
'setWallpaper(QString,int)' and '"/some/pic.jpg" 1') 'setWallpaper(TQString,int)' and '"/some/pic.jpg" 1')
- Keyboard input tab settings - enter the keyboard input you want to be - Keyboard input tab settings - enter the keyboard input you want to be
simulated ( no, sorry, the 'Edit' button doesn't really work yet ). simulated ( no, sorry, the 'Edit' button doesn't really work yet ).
The "keypresses" are separated by a colon ( ':' ) and are written The "keypresses" are separated by a colon ( ':' ) and are written

@ -17,7 +17,7 @@ namespace KHotKeys
{ {
class WindowSelector class WindowSelector
: public QWidget : public TQWidget
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -3,10 +3,10 @@ The Short Story
Four space tabs, braces on their own lines, 80 character lines. Four space tabs, braces on their own lines, 80 character lines.
Code should look something like this: Code should look something like this:
QString ExtensionManager::uniqueId() TQString ExtensionManager::uniqueId()
{ {
QString idBase = "Extension_%1"; TQString idBase = "Extension_%1";
QString newId; TQString newId;
int i = 0; int i = 0;
bool unique = false; bool unique = false;

@ -1077,7 +1077,7 @@ void QuickLauncher::updateStickyHighlightLayer()
m_stickyHighlightLayer = TQImage(width(), height(), 32); m_stickyHighlightLayer = TQImage(width(), height(), 32);
m_stickyHighlightLayer.setAlphaBuffer(true); m_stickyHighlightLayer.setAlphaBuffer(true);
int pix, tlPix, brPix, w(width()), h(height()); int pix, tlPix, brPix, w(width()), h(height());
QRgb transparent(tqRgba(0, 0, 0, 0)); TQRgb transparent(tqRgba(0, 0, 0, 0));
for (int y = h-1; y >= 0; --y) for (int y = h-1; y >= 0; --y)
{ {
for (int x = w-1; x >= 0; --x) for (int x = w-1; x >= 0; --x)

@ -36,19 +36,19 @@
class QObject class TQObject
{ {
}; };
class TQWidget : public QObject class TQWidget : public TQObject
{ {
}; };
class TQDialog : public QWidget class TQDialog : public TQWidget
{ {
}; };
class TQFrame : public QWidget class TQFrame : public TQWidget
{ {
}; };
@ -64,6 +64,6 @@ class KDialogBase : public QDialog
{ {
}; };
class KPanelExtension : public QWidget class KPanelExtension : public TQWidget
{ {
}; };

@ -32,7 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <tqobject.h> #include <tqobject.h>
class UnhideTrigger : public QObject class UnhideTrigger : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -316,7 +316,7 @@
<entry name="KMenuTileColor" type="Color" > <entry name="KMenuTileColor" type="Color" >
<label>Color to use for Kmenu button background</label> <label>Color to use for Kmenu button background</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
</entry> </entry>
<entry name="DesktopButtonTile" type="Path" > <entry name="DesktopButtonTile" type="Path" >
@ -325,7 +325,7 @@
<entry name="DesktopButtonTileColor" type="Color" > <entry name="DesktopButtonTileColor" type="Color" >
<label>Color to use for Kmenu button background</label> <label>Color to use for Kmenu button background</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
</entry> </entry>
<entry name="URLTile" type="Path" > <entry name="URLTile" type="Path" >
@ -334,7 +334,7 @@
<entry name="URLTileColor" type="Color" > <entry name="URLTileColor" type="Color" >
<label>Color to use for Application, URL and special button backgrounds</label> <label>Color to use for Application, URL and special button backgrounds</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
</entry> </entry>
<entry name="BrowserTile" type="Path" > <entry name="BrowserTile" type="Path" >
@ -343,7 +343,7 @@
<entry name="BrowserTileColor" type="Color" > <entry name="BrowserTileColor" type="Color" >
<label>Color to use for Browser button background</label> <label>Color to use for Browser button background</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
</entry> </entry>
<entry name="WindowListTile" type="Path" > <entry name="WindowListTile" type="Path" >
@ -352,7 +352,7 @@
<entry name="WindowListTileColor" type="Color" > <entry name="WindowListTileColor" type="Color" >
<label>Color to use for Window List button background</label> <label>Color to use for Window List button background</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
</entry> </entry>
</group> </group>
@ -416,7 +416,7 @@
<entry name="CustomKMenuIcon" key="CustomIcon" type="Path" > <entry name="CustomKMenuIcon" key="CustomIcon" type="Path" >
<label>Custom TDE Menu Button Icon</label> <label>Custom TDE Menu Button Icon</label>
<default code="true">QString("kmenu")</default> <default code="true">TQString("kmenu")</default>
</entry> </entry>
<entry name="SearchShortcut" type="String" > <entry name="SearchShortcut" type="String" >

@ -1254,7 +1254,7 @@ TQImage* TaskBar::blendGradient(const TQSize& size)
void TaskBar::sortContainersByDesktop(TaskContainer::List& list) void TaskBar::sortContainersByDesktop(TaskContainer::List& list)
{ {
typedef TQValueVector<QPair<int, QPair<int, TaskContainer*> > > SortVector; typedef TQValueVector<TQPair<int, TQPair<int, TaskContainer*> > > SortVector;
SortVector sorted; SortVector sorted;
sorted.resize(list.count()); sorted.resize(list.count());
int i = 0; int i = 0;

@ -200,17 +200,17 @@
</entry> </entry>
<entry name="ActiveTaskTextColor" type="Color" > <entry name="ActiveTaskTextColor" type="Color" >
<label>Color to use for active task button text</label> <label>Color to use for active task button text</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
<whatsthis>This color is used for displaying text on taskbar button for task which is active at the moment.</whatsthis> <whatsthis>This color is used for displaying text on taskbar button for task which is active at the moment.</whatsthis>
</entry> </entry>
<entry name="InactiveTaskTextColor" type="Color" > <entry name="InactiveTaskTextColor" type="Color" >
<label>Color to use for inactive tasks button text</label> <label>Color to use for inactive tasks button text</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
<whatsthis>This color is used for displaying text on taskbar button for tasks other than active.</whatsthis> <whatsthis>This color is used for displaying text on taskbar button for tasks other than active.</whatsthis>
</entry> </entry>
<entry name="TaskBackgroundColor" type="Color" > <entry name="TaskBackgroundColor" type="Color" >
<label>Color to use for taskbar buttons background</label> <label>Color to use for taskbar buttons background</label>
<default code="true">QColor()</default> <default code="true">TQColor()</default>
<whatsthis>This color is used for displaying background of taskbar buttons.</whatsthis> <whatsthis>This color is used for displaying background of taskbar buttons.</whatsthis>
</entry> </entry>
<entry name="IconSize" type="UInt" > <entry name="IconSize" type="UInt" >

@ -1726,7 +1726,7 @@ void TaskContainer::updateFilteredTaskList()
// sort container list by desktop // sort container list by desktop
if (taskBar->sortByDesktop() && m_filteredTasks.count() > 1) if (taskBar->sortByDesktop() && m_filteredTasks.count() > 1)
{ {
TQValueVector<QPair<int, Task::Ptr> > sorted; TQValueVector<TQPair<int, Task::Ptr> > sorted;
sorted.resize(m_filteredTasks.count()); sorted.resize(m_filteredTasks.count());
int i = 0; int i = 0;
@ -1741,7 +1741,7 @@ void TaskContainer::updateFilteredTaskList()
qHeapSort(sorted); qHeapSort(sorted);
m_filteredTasks.clear(); m_filteredTasks.clear();
for (TQValueVector<QPair<int, Task::Ptr> >::iterator it = sorted.begin(); for (TQValueVector<TQPair<int, Task::Ptr> >::iterator it = sorted.begin();
it != sorted.end(); it != sorted.end();
++it) ++it)
{ {

@ -378,7 +378,7 @@ TreeItem *TreeView::createTreeItem(TreeItem *parent, TQListViewItem *after, Menu
else else
item = new TreeItem(parent, after, entryInfo->menuId(),_init); item = new TreeItem(parent, after, entryInfo->menuId(),_init);
QString name; TQString name;
if (m_detailedMenuEntries && entryInfo->description.length() != 0) if (m_detailedMenuEntries && entryInfo->description.length() != 0)
{ {
@ -566,7 +566,7 @@ void TreeView::currentChanged(MenuEntryInfo *entryInfo)
if (item == 0) return; if (item == 0) return;
if (entryInfo == 0) return; if (entryInfo == 0) return;
QString name; TQString name;
if (m_detailedMenuEntries && entryInfo->description.length() != 0) if (m_detailedMenuEntries && entryInfo->description.length() != 0)
{ {

@ -275,7 +275,7 @@ private:
bool m_bSaveViewPropertiesLocally; bool m_bSaveViewPropertiesLocally;
}; };
class SpringLoadingManager : public QObject class SpringLoadingManager : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
private: private:

@ -21,7 +21,7 @@
#include <tqobject.h> #include <tqobject.h>
class ActionsImpl : public QObject class ActionsImpl : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -26,7 +26,7 @@
class KEBListViewItem; class KEBListViewItem;
class BookmarkIteratorHolder; class BookmarkIteratorHolder;
class BookmarkIterator : public QObject class BookmarkIterator : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -25,7 +25,7 @@
#include <tdeparts/part.h> #include <tdeparts/part.h>
#include <tdeparts/browserinterface.h> #include <tdeparts/browserinterface.h>
class FavIconWebGrabber : public QObject class FavIconWebGrabber : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -647,7 +647,7 @@ void TEWidget::drawAttrStr(TQPainter &paint, TQRect rect,
// draw background colors with 75% opacity // draw background colors with 75% opacity
if ( draw_translucent_background_colors && argb_visual && tqAlpha(blend_color) < 0xff ) if ( draw_translucent_background_colors && argb_visual && tqAlpha(blend_color) < 0xff )
{ {
QRgb col = bColor.rgb(); TQRgb col = bColor.rgb();
TQ_UINT8 salpha = 192; TQ_UINT8 salpha = 192;
TQ_UINT8 dalpha = 255 - salpha; TQ_UINT8 dalpha = 255 - salpha;

@ -53,7 +53,7 @@ public:
TEWidget(TQWidget *parent=0, const char *name=0); TEWidget(TQWidget *parent=0, const char *name=0);
virtual ~TEWidget(); virtual ~TEWidget();
void setBlendColor(const QRgb color) { blend_color = color; } void setBlendColor(const TQRgb color) { blend_color = color; }
void setDefaultBackColor(const TQColor& color); void setDefaultBackColor(const TQColor& color);
TQColor getDefaultBackColor(); TQColor getDefaultBackColor();
@ -339,7 +339,7 @@ private:
bool m_isIMEdit; bool m_isIMEdit;
bool m_isIMSel; bool m_isIMSel;
QRgb blend_color; TQRgb blend_color;
private slots: private slots:
void drop_menu_activated(int item); void drop_menu_activated(int item);

@ -31,7 +31,7 @@
enum { NOTIFYNORMAL=0, NOTIFYBELL=1, NOTIFYACTIVITY=2, NOTIFYSILENCE=3 }; enum { NOTIFYNORMAL=0, NOTIFYBELL=1, NOTIFYACTIVITY=2, NOTIFYSILENCE=3 };
class TEmulation : public QObject class TEmulation : public TQObject
{ TQ_OBJECT { TQ_OBJECT
public: public:

@ -208,7 +208,7 @@ private:
bool xon_xoff; bool xon_xoff;
bool fullScripting; bool fullScripting;
QString stateIconName; TQString stateIconName;
TQString pgm; TQString pgm;
TQStrList args; TQStrList args;

@ -26,7 +26,7 @@ class TDEConfig;
* of KSplash completely, and offers a friendlier way * of KSplash completely, and offers a friendlier way
* of installing custom splash screens. * of installing custom splash screens.
*/ */
class KDE_EXPORT ObjKsTheme : public QObject class KDE_EXPORT ObjKsTheme : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -531,7 +531,7 @@ TQValueList< TQStringList > FancyPlotterSettings::sensors() const
entry << it.current()->text( 2 ); entry << it.current()->text( 2 );
entry << it.current()->text( 3 ); entry << it.current()->text( 3 );
entry << it.current()->text( 4 ); entry << it.current()->text( 4 );
QRgb rgb = it.current()->pixmap( 2 )->convertToImage().pixel( 1, 1 ); TQRgb rgb = it.current()->pixmap( 2 )->convertToImage().pixel( 1, 1 );
TQColor color( tqRed( rgb ), tqGreen( rgb ), tqBlue( rgb ) ); TQColor color( tqRed( rgb ), tqGreen( rgb ), tqBlue( rgb ) );
entry << ( color.name() ); entry << ( color.name() );

@ -43,7 +43,7 @@ class SensorRequest;
ksysguardd. The current implementation only allowes one pending ksysguardd. The current implementation only allowes one pending
requests. Incoming requests are queued in an input FIFO. requests. Incoming requests are queued in an input FIFO.
*/ */
class KDE_EXPORT SensorAgent : public QObject class KDE_EXPORT SensorAgent : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -43,7 +43,7 @@ class SensorManagerIterator;
connection yet or the hostname is empty, a dialog will be shown to connection yet or the hostname is empty, a dialog will be shown to
enter the connections details. enter the connections details.
*/ */
class KDE_EXPORT SensorManager : public QObject class KDE_EXPORT SensorManager : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -38,7 +38,7 @@ class StyleSettings;
namespace KSGRD { namespace KSGRD {
class KDE_EXPORT StyleEngine : public QObject class KDE_EXPORT StyleEngine : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -28,7 +28,7 @@ class XkbRules;
catching keyboard/mouse events and displaying menu when selected catching keyboard/mouse events and displaying menu when selected
*/ */
class KxkbLabelController: public QObject class KxkbLabelController: public TQObject
{ {
// TQ_OBJECT // TQ_OBJECT

@ -292,8 +292,8 @@ void LayoutIcon::dimPixmap(TQPixmap& pm)
for (int y=0; y<image.height(); y++) for (int y=0; y<image.height(); y++)
for(int x=0; x<image.width(); x++) for(int x=0; x<image.width(); x++)
{ {
QRgb rgb = image.pixel(x,y); TQRgb rgb = image.pixel(x,y);
QRgb dimRgb(tqRgb(tqRed(rgb)*3/4, tqGreen(rgb)*3/4, tqBlue(rgb)*3/4)); TQRgb dimRgb(tqRgb(tqRed(rgb)*3/4, tqGreen(rgb)*3/4, tqBlue(rgb)*3/4));
image.setPixel(x, y, dimRgb); image.setPixel(x, y, dimRgb);
} }
pm.convertFromImage(image); pm.convertFromImage(image);

@ -79,11 +79,11 @@ it can be resized, focused and unfocused with standard X11 functions
as long as we know its' window ID. as long as we know its' window ID.
PluginPart gets a NSPluginInstance (from NSPluginLoader::newInstance), PluginPart gets a NSPluginInstance (from NSPluginLoader::newInstance),
which it sees as a regular QWidget. e.g. it can resize the QWidget and which it sees as a regular TQWidget. e.g. it can resize the TQWidget and
nspluginviewer's window will resize. nspluginviewer's window will resize.
This magic happens thanks to KJavaEmbed which NSPluginInstance inherits. This magic happens thanks to KJavaEmbed which NSPluginInstance inherits.
KJavaEmbed inherits QWidget and hooks up to QWidget's events, mapping KJavaEmbed inherits TQWidget and hooks up to TQWidget's events, mapping
those events to the appropriate X11 window operations. those events to the appropriate X11 window operations.
Resizing, focusing in and out is about all PluginPart could ever do Resizing, focusing in and out is about all PluginPart could ever do
with the nspluginviewer. with the nspluginviewer.

@ -26,7 +26,7 @@
#include <glib.h> #include <glib.h>
class GlibEvents class GlibEvents
: public QWidget : public TQWidget
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -46,12 +46,12 @@ private slots:
private: private:
KURL *myURL; KURL *myURL;
QString *myPerlPath; TQString *myPerlPath;
TQString *myFingerPath; TQString *myFingerPath;
TQString *myFingerPerlScript; TQString *myFingerPerlScript;
TQString *myFingerCSSFile; TQString *myFingerCSSFile;
QString *myStdStream; TQString *myStdStream;
TDEProcess *myTDEProcess; TDEProcess *myTDEProcess;

@ -27,7 +27,7 @@
#include <tqstring.h> #include <tqstring.h>
class HomeImpl : public QObject class HomeImpl : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -5,7 +5,7 @@ grep TODO tdeio_mac.cpp
//TODO this means dev=foo must be the last argument in the query //TODO this means dev=foo must be the last argument in the query
//TODO this error interrupts the user when typing ?dev=foo on each letter of foo //TODO this error interrupts the user when typing ?dev=foo on each letter of foo
//TODO are there any more characters to escape? //TODO are there any more characters to escape?
QString theSize(fileRE.group(4)); //TODO: this is data size, what about resource size? TQString theSize(fileRE.group(4)); //TODO: this is data size, what about resource size?
Future things: Future things:
- maybe make it work with plain old hfs partitions - maybe make it work with plain old hfs partitions

@ -23,7 +23,7 @@
#include "medium.h" #include "medium.h"
class MediaList : public QObject class MediaList : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -91,7 +91,7 @@ void ManagerModule::load()
else else
view->option_atime->setNoChange(); view->option_atime->setNoChange();
QString value; TQString value;
value = config.readEntry("shortname", "lower").lower(); value = config.readEntry("shortname", "lower").lower();
for (int i = 0; i < view->option_shortname->count(); i++) for (int i = 0; i < view->option_shortname->count(); i++)

@ -428,7 +428,7 @@ const TQImage& ThumbnailProtocol::getIcon()
int h = icon->height(); int h = icon->height();
for ( int y = 0; y < h; y++ ) for ( int y = 0; y < h; y++ )
{ {
QRgb *line = (QRgb *) icon->scanLine( y ); TQRgb *line = (TQRgb *) icon->scanLine( y );
for ( int x = 0; x < w; x++ ) for ( int x = 0; x < w; x++ )
line[x] &= m_iconAlpha; // transparency line[x] &= m_iconAlpha; // transparency
} }

@ -1,4 +1,4 @@
tdefile_trash tdefile_trash
=========== ===========
QString OriginalPath TQString OriginalPath
DateTime DateOfDeletion DateTime DateOfDeletion

@ -22,7 +22,7 @@
#include <tqobject.h> #include <tqobject.h>
class TestTrash : public QObject class TestTrash : public TQObject
{ {
TQ_OBJECT TQ_OBJECT

@ -114,7 +114,7 @@ void KJobViewerApp::initialize()
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool showIt = args->isSet("show"); bool showIt = args->isSet("show");
bool all = args->isSet("all"); bool all = args->isSet("all");
QString prname = args->getOption("d"); TQString prname = args->getOption("d");
KMJobViewer *view(0); KMJobViewer *view(0);
if (!m_timer) if (!m_timer)

@ -395,7 +395,7 @@ void PrintWrapper::slotPrintRequested(KPrinter *kprinter)
// if nobody complains. // if nobody complains.
/*else /*else
{ {
QString msg = i18n("<nobr>File(s) sent to printer <b>%1</b>.</nobr>").arg(kprinter->printerName()); TQString msg = i18n("<nobr>File(s) sent to printer <b>%1</b>.</nobr>").arg(kprinter->printerName());
showmsg(msg,0); showmsg(msg,0);
}*/ }*/
} }

@ -303,9 +303,9 @@ KdmPixmap::drawContents( TQPainter *p, const TQRect &r )
float tint_alpha = pClass->alpha; float tint_alpha = pClass->alpha;
for (int y = 0; y < h; ++y) { for (int y = 0; y < h; ++y) {
QRgb *ls = (QRgb *)scaledImage.scanLine( y ); TQRgb *ls = (TQRgb *)scaledImage.scanLine( y );
for (int x = 0; x < w; ++x) { for (int x = 0; x < w; ++x) {
QRgb l = ls[x]; TQRgb l = ls[x];
int r = int( tqRed( l ) * tint_red ); int r = int( tqRed( l ) * tint_red );
int g = int( tqGreen( l ) * tint_green ); int g = int( tqGreen( l ) * tint_green );
int b = int( tqBlue( l ) * tint_blue ); int b = int( tqBlue( l ) * tint_blue );

@ -163,16 +163,16 @@ WM_TRANSIENT_FOR property is manually set using the XSetTransientForHint()
call (see tdelibs/tdeioslave/http/kcookiejar/kcookiewin.cpp). The arguments call (see tdelibs/tdeioslave/http/kcookiejar/kcookiewin.cpp). The arguments
to XSetTransientForHint() call are the X display (i.e. qt_xdisplay()), to XSetTransientForHint() call are the X display (i.e. qt_xdisplay()),
the window id on which the WM_TRANSIENT_FOR property is to be set the window id on which the WM_TRANSIENT_FOR property is to be set
(i.e. use QWidget::winId()), and the window id of the mainwindow. (i.e. use TQWidget::winId()), and the window id of the mainwindow.
Simple short HOWTO: Simple short HOWTO:
To put it simply: Let's say you have a daemon application that has To put it simply: Let's say you have a daemon application that has
DCOP call "showDialog( QString text )", and when this is called, it shows DCOP call "showDialog( TQString text )", and when this is called, it shows
a dialog with the given text. This won't work properly with focus stealing a dialog with the given text. This won't work properly with focus stealing
prevention. The DCOP call should be changed to prevention. The DCOP call should be changed to
"showDialog( QString text, long id )". The caller should pass something like "showDialog( TQString text, long id )". The caller should pass something like
myMainWindow->winId() as the second argument. In the daemon, before myMainWindow->winId() as the second argument. In the daemon, before
the dialog is shown, a call to XSetTransientHint() should be added: the dialog is shown, a call to XSetTransientHint() should be added:

@ -1260,7 +1260,7 @@ void Client::drawShadow()
removeShadow(); removeShadow();
TQMemArray<QRgb> pixelData; TQMemArray<TQRgb> pixelData;
TQPixmap shadowPixmap; TQPixmap shadowPixmap;
TQRect shadow; TQRect shadow;
TQRegion exposedRegion; TQRegion exposedRegion;
@ -1433,7 +1433,7 @@ TQRegion Client::getExposedRegion(TQRegion occludedRegion, int x, int y, int w,
*/ */
void Client::imposeCachedShadow(TQPixmap &pixmap, TQRegion exposed) void Client::imposeCachedShadow(TQPixmap &pixmap, TQRegion exposed)
{ {
QRgb pixel; TQRgb pixel;
double opacity; double opacity;
int red, green, blue, pixelRed, pixelGreen, pixelBlue; int red, green, blue, pixelRed, pixelGreen, pixelBlue;
int subW, subH, w, x, y, zeroX, zeroY; int subW, subH, w, x, y, zeroX, zeroY;
@ -1490,7 +1490,7 @@ void Client::imposeRegionShadow(TQPixmap &pixmap, TQRegion occluded,
TQRegion exposed, int thickness, double maxOpacity) TQRegion exposed, int thickness, double maxOpacity)
{ {
int distance, intersectCount, i, j, x, y; int distance, intersectCount, i, j, x, y;
QRgb pixel; TQRgb pixel;
double decay, factor, opacity; double decay, factor, opacity;
int red, green, blue, pixelRed, pixelGreen, pixelBlue; int red, green, blue, pixelRed, pixelGreen, pixelBlue;
int lineIntersects, maxIntersects, maxY; int lineIntersects, maxIntersects, maxY;

@ -9,7 +9,7 @@ Makefile.am:
Sources: Sources:
- There are no twin/something.h includes, and don't use the KWinInternal namespace. - There are no twin/something.h includes, and don't use the KWinInternal namespace.
- Use QToolTip instead of KWinToolTip. - Use QToolTip instead of KWinToolTip.
- Use QButton instead of KWinButton, QToolButton instead of KWinToolButton and QWidget - Use QButton instead of KWinButton, QToolButton instead of KWinToolButton and TQWidget
instead of KWinWidgetButton. instead of KWinWidgetButton.
- For tooltips, use simply QToolTip::add(). - For tooltips, use simply QToolTip::add().
- Change Client* to MyClient* (or whatever is your main client class) in your MyButton. - Change Client* to MyClient* (or whatever is your main client class) in your MyButton.
@ -22,11 +22,11 @@ Sources:
- As the first thing in init(), call createMainWidget(); if your client class took some - As the first thing in init(), call createMainWidget(); if your client class took some
flags such as WResizeNoErase, pass them to this function. flags such as WResizeNoErase, pass them to this function.
- Then, do 'widget()->installEventFilter( this );'. - Then, do 'widget()->installEventFilter( this );'.
- Implement MyClient::eventFilter() - as MyClient is now no longer QWidget, you need the event - Implement MyClient::eventFilter() - as MyClient is now no longer TQWidget, you need the event
filter to call all the functions that used to be called directly. Usually, it's something filter to call all the functions that used to be called directly. Usually, it's something
like: like:
===== =====
bool MyClient::eventFilter( QObject* o, QEvent* e ) bool MyClient::eventFilter( TQObject* o, QEvent* e )
{ {
if ( o != widget() ) if ( o != widget() )
return false; return false;
@ -63,7 +63,7 @@ bool MyClient::eventFilter( QObject* o, QEvent* e )
} }
===== =====
- In MyClient, 'this' will have to be often replaced with 'widget()', pay special attention - In MyClient, 'this' will have to be often replaced with 'widget()', pay special attention
to cases where this won't cause compile error (e.g. in connect() calls, which take QObject* ). to cases where this won't cause compile error (e.g. in connect() calls, which take TQObject* ).
- Also, many calls may need 'widget()->' prepended. - Also, many calls may need 'widget()->' prepended.
- Layout is created in init(), so call createLayout() directly there (if it's implemented). - Layout is created in init(), so call createLayout() directly there (if it's implemented).
- Remove calls to Client methods (Client::resizeEvent() and so on). - Remove calls to Client methods (Client::resizeEvent() and so on).

@ -101,7 +101,7 @@ void KeramikEmbedder::embed( const char *name )
codename = codename.replace( TQRegExp("[^a-zA-Z0-9]"), "_" ); codename = codename.replace( TQRegExp("[^a-zA-Z0-9]"), "_" );
stream << "\tstatic const QRgb " << codename << "_data[] = {" << endl << "\t\t"; stream << "\tstatic const TQRgb " << codename << "_data[] = {" << endl << "\t\t";
stream.setf( TQTextStream::hex | TQTextStream::right ); stream.setf( TQTextStream::hex | TQTextStream::right );
stream.fill( '0' ); stream.fill( '0' );
@ -147,7 +147,7 @@ void KeramikEmbedder::writeIndex()
stream << "\t\tint width;\n"; stream << "\t\tint width;\n";
stream << "\t\tint height;\n"; stream << "\t\tint height;\n";
stream << "\t\tbool alpha;\n"; stream << "\t\tbool alpha;\n";
stream << "\t\tconst QRgb *data;\n"; stream << "\t\tconst TQRgb *data;\n";
stream << "\t};\n\n"; stream << "\t};\n\n";
uint i = 0; uint i = 0;

@ -54,8 +54,8 @@ TQColor alphaBlendColors(const TQColor &bgColor, const TQColor &fgColor, const i
{ {
// normal button... // normal button...
QRgb rgb = bgColor.rgb(); TQRgb rgb = bgColor.rgb();
QRgb rgb_b = fgColor.rgb(); TQRgb rgb_b = fgColor.rgb();
int alpha = a; int alpha = a;
if(alpha>255) alpha = 255; if(alpha>255) alpha = 255;
if(alpha<0) alpha = 0; if(alpha<0) alpha = 0;

@ -65,7 +65,7 @@ private:
/** /**
* This class creates bitmaps which can be used as icons on buttons. The icons * This class creates bitmaps which can be used as icons on buttons. The icons
* are "hardcoded". * are "hardcoded".
* Over the previous "Gimp->xpm->QImage->recolor->SmoothScale->TQPixmap" solution * Over the previous "Gimp->xpm->TQImage->recolor->SmoothScale->TQPixmap" solution
* it has the important advantage that icons are more scalable and at the same * it has the important advantage that icons are more scalable and at the same
* time sharp and not blurred. * time sharp and not blurred.
*/ */

@ -59,7 +59,7 @@ enum SMSavePhase
}; };
class SessionSaveDoneHelper class SessionSaveDoneHelper
: public QObject : public TQObject
{ {
TQ_OBJECT TQ_OBJECT
public: public:

@ -30,7 +30,7 @@ class KDecorationPreviewBridge;
class KDecorationPreviewOptions; class KDecorationPreviewOptions;
class KDecorationPreview class KDecorationPreview
: public QWidget : public TQWidget
{ {
public: public:
KDecorationPreview( KDecorationPlugins* plugin, TQWidget* parent = NULL, const char* name = NULL ); KDecorationPreview( KDecorationPlugins* plugin, TQWidget* parent = NULL, const char* name = NULL );

Loading…
Cancel
Save