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 1 year 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>
<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
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>

@ -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>

@ -607,7 +607,7 @@ follows:</para>
<programlisting>
DCOPClient *c = kapp-&gt;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 &lt;&lt; QString("iconName") &lt;&lt; QString("programName") &lt;&lt;
QString("Some description");
arg &lt;&lt; TQString("iconName") &lt;&lt; TQString("programName") &lt;&lt;
TQString("Some description");
if (!(c-&gt;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
&amp;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&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 )
{
@ -853,7 +853,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 );
};
@ -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&amp;
parameters: <function>Theme2k( TQWidget *, const char *, const QStringList&amp;
);</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 &amp;args
Theme2k::Theme2k( TQWidget *parent, const char *name, const QStringList &amp;args
)
:ThemeEngine( parent, name, args )
{
@ -938,10 +938,10 @@ 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 );
@ -949,14 +949,14 @@ void Theme2k::readSettings()
&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>
@ -1112,7 +1112,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 )
{
@ -1136,8 +1136,8 @@ 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() )
@ -1178,10 +1178,10 @@ 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 );
@ -1189,14 +1189,14 @@ void Theme2k::readSettings()
&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>
@ -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&amp;, const QColor&amp;, int );
RotWidget( TQWidget *, const TQColor&amp;, const TQColor&amp;, 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&amp; c1, const QColor&amp;
RotWidget::RotWidget( TQWidget *parent, const TQColor&amp; c1, const TQColor&amp;
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) )
m_speed = 1;

@ -19,6 +19,6 @@ Licensing:
The Kate app/utils/interfaces and KWrite app are licensed under the LGPL VERSION 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).
(but hey, documentation of the DCOP interface is missing completely)

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

@ -257,7 +257,7 @@ void ToolView::childEvent ( TQChildEvent *ev )
{
// set the widget to be focus proxy if possible
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);

@ -528,7 +528,7 @@ void BGDialog::loadWallpaperFilesList() {
// Wallpapers
// the following TQMap is lower cased names mapped to cased names and URLs
// 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
TQStringList lst = m_pDirs->findAllResources("wallpaper", "*desktop", false, true);
@ -620,7 +620,7 @@ void BGDialog::loadWallpaperFilesList() {
comboWallpaper->clear();
m_wallpaper.clear();
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)
{

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

@ -486,7 +486,7 @@ TQString propvalue( di_prop_t prop ) {
char *strp;
int *intp;
uchar_t *bytep;
QString result;
TQString result;
/*
* 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,
*parent,
*previous;
char *path;
char *drivername;
char *names;
QString compatnames;
int i, n;
char *path;
char *drivername;
char *names;
TQString compatnames;
int i, n;
di_prop_t prop;
path = di_devfs_path( node );

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

@ -35,9 +35,9 @@
#include "ktimerdialog.h"
#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 QString &caption,
const TQString &caption,
int buttonMask, ButtonCode defaultButton,
bool separator,
const KGuiItem &user1,
@ -90,7 +90,7 @@ int KTimerDialog::exec()
return KDialogBase::exec();
}
void KTimerDialog::setMainWidget( QWidget *widget )
void KTimerDialog::setMainWidget( TQWidget *widget )
{
// yuck, here goes.
QVBox *newWidget = new QVBox( this );

@ -67,9 +67,9 @@ class KTimerDialog : public 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 QString &caption=QString::null,
const TQString &caption=TQString::null,
int buttonMask=Ok|Apply|Cancel, ButtonCode defaultButton=Ok,
bool separator=false,
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.
* @see KDialogBase::setMainWidget.
*/
void setMainWidget( QWidget *widget );
void setMainWidget( TQWidget *widget );
signals:
/**

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

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

@ -29,7 +29,7 @@ NEW PROPERTIES:
===============
X-TDE-UA-TAG
FIELD: REQUIRED
TYPE: QString
TYPE: TQString
TRANSLATE: NO
DESCRIPTION:
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
FIELD: REQUIRED
TYPE: QString
TYPE: TQString
TRANSLATE: NO
DESCRIPTION:
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
FIELD: REQUIRED
TYPE: QString
TYPE: TQString
TRANSLATE: YES
DESCRIPTION:
The actual name of the browser or user-agent.
X-TDE-UA-VERSION
FIELD: REQUIRED
TYPE: QString
TYPE: TQString
TRANSLATE: YES
DESCRIPTION:
The actual version of the browser or user-agent.
X-TDE-UA-SYSNAME
FIELD: OPTIONAL
TYPE: QString
TYPE: TQString
TRANSLATE: YES
DESCRIPTION:
The system name (for example Linux) where the browser
@ -84,7 +84,7 @@ identification was obtained from.
X-TDE-UA-SYSRELEASE
FIELD: OPTIONAL
TYPE: QString
TYPE: TQString
TRANSLATE: YES
DESCRIPTION:
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>::Iterator tgmapi;
TQMap<gid_t,TQStringList>::ConstIterator tgmapci;
TQMap<TQString, QPair<int,TQStringList> >::Iterator umapi;
TQMap<TQString, TQPair<int,TQStringList> >::Iterator umapi;
struct passwd *ps;
for (setpwent(); (ps = getpwent()); ) {
TQString un( TQFile::decodeName( ps->pw_name ) );
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())
(*tgmapi).append( un );
else
@ -298,7 +298,7 @@ void TDModule::propagateUsers()
groupmap.clear();
emit clearUsers();
TQMap<TQString,int> lusers;
TQMapConstIterator<TQString, QPair<int,TQStringList> > it;
TQMapConstIterator<TQString, TQPair<int,TQStringList> > it;
TQStringList::ConstIterator jt;
TQMap<TQString,int>::Iterator gmapi;
for (it = usermap.begin(); it != usermap.end(); ++it) {
@ -321,7 +321,7 @@ void TDModule::slotMinMaxUID(int min, int max)
{
if (updateOK) {
TQMap<TQString,int> alusers, dlusers;
TQMapConstIterator<TQString, QPair<int,TQStringList> > it;
TQMapConstIterator<TQString, TQPair<int,TQStringList> > it;
TQStringList::ConstIterator jt;
TQMap<TQString,int>::Iterator gmapi;
for (it = usermap.begin(); it != usermap.end(); ++it) {

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

@ -272,7 +272,7 @@ KDesktop::initRoot()
connect( m_pIconView, TQT_SIGNAL( wheelRolled( 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
m_pIconView->setVScrollBarMode( TQScrollView::AlwaysOff );
m_pIconView->setHScrollBarMode( TQScrollView::AlwaysOff );

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

@ -384,7 +384,7 @@ protocol == "help") by itself and otherwise use the plain URL.
## mode.
# 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()
# to show the tooltip.
# One could probably add a standard dcop call to TDEMainWindow, like

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

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

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

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

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

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

@ -97,7 +97,7 @@
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
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
simulated ( no, sorry, the 'Edit' button doesn't really work yet ).
The "keypresses" are separated by a colon ( ':' ) and are written

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

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

@ -1077,7 +1077,7 @@ void QuickLauncher::updateStickyHighlightLayer()
m_stickyHighlightLayer = TQImage(width(), height(), 32);
m_stickyHighlightLayer.setAlphaBuffer(true);
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 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>
class UnhideTrigger : public QObject
class UnhideTrigger : public TQObject
{
TQ_OBJECT
public:

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

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

@ -200,17 +200,17 @@
</entry>
<entry name="ActiveTaskTextColor" type="Color" >
<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>
</entry>
<entry name="InactiveTaskTextColor" type="Color" >
<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>
</entry>
<entry name="TaskBackgroundColor" type="Color" >
<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>
</entry>
<entry name="IconSize" type="UInt" >

@ -1726,7 +1726,7 @@ void TaskContainer::updateFilteredTaskList()
// sort container list by desktop
if (taskBar->sortByDesktop() && m_filteredTasks.count() > 1)
{
TQValueVector<QPair<int, Task::Ptr> > sorted;
TQValueVector<TQPair<int, Task::Ptr> > sorted;
sorted.resize(m_filteredTasks.count());
int i = 0;
@ -1741,7 +1741,7 @@ void TaskContainer::updateFilteredTaskList()
qHeapSort(sorted);
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)
{

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

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

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

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

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

@ -647,7 +647,7 @@ void TEWidget::drawAttrStr(TQPainter &paint, TQRect rect,
// draw background colors with 75% opacity
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 dalpha = 255 - salpha;

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

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

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

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

@ -531,7 +531,7 @@ TQValueList< TQStringList > FancyPlotterSettings::sensors() const
entry << it.current()->text( 2 );
entry << it.current()->text( 3 );
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 ) );
entry << ( color.name() );

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

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

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

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

@ -292,8 +292,8 @@ void LayoutIcon::dimPixmap(TQPixmap& pm)
for (int y=0; y<image.height(); y++)
for(int x=0; x<image.width(); x++)
{
QRgb rgb = image.pixel(x,y);
QRgb dimRgb(tqRgb(tqRed(rgb)*3/4, tqGreen(rgb)*3/4, tqBlue(rgb)*3/4));
TQRgb rgb = image.pixel(x,y);
TQRgb dimRgb(tqRgb(tqRed(rgb)*3/4, tqGreen(rgb)*3/4, tqBlue(rgb)*3/4));
image.setPixel(x, y, dimRgb);
}
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.
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.
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.
Resizing, focusing in and out is about all PluginPart could ever do
with the nspluginviewer.

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

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

@ -27,7 +27,7 @@
#include <tqstring.h>
class HomeImpl : public QObject
class HomeImpl : public TQObject
{
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 error interrupts the user when typing ?dev=foo on each letter of foo
//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:
- maybe make it work with plain old hfs partitions

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

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

@ -428,7 +428,7 @@ const TQImage& ThumbnailProtocol::getIcon()
int h = icon->height();
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++ )
line[x] &= m_iconAlpha; // transparency
}

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

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

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

@ -395,7 +395,7 @@ void PrintWrapper::slotPrintRequested(KPrinter *kprinter)
// if nobody complains.
/*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);
}*/
}

@ -303,9 +303,9 @@ KdmPixmap::drawContents( TQPainter *p, const TQRect &r )
float tint_alpha = pClass->alpha;
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) {
QRgb l = ls[x];
TQRgb l = ls[x];
int r = int( tqRed( l ) * tint_red );
int g = int( tqGreen( l ) * tint_green );
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
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
(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:
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
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
the dialog is shown, a call to XSetTransientHint() should be added:

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

@ -9,7 +9,7 @@ Makefile.am:
Sources:
- There are no twin/something.h includes, and don't use the KWinInternal namespace.
- 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.
- For tooltips, use simply QToolTip::add().
- 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
flags such as WResizeNoErase, pass them to this function.
- 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
like:
=====
bool MyClient::eventFilter( QObject* o, QEvent* e )
bool MyClient::eventFilter( TQObject* o, QEvent* e )
{
if ( o != widget() )
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
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.
- Layout is created in init(), so call createLayout() directly there (if it's implemented).
- 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]"), "_" );
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.fill( '0' );
@ -147,7 +147,7 @@ void KeramikEmbedder::writeIndex()
stream << "\t\tint width;\n";
stream << "\t\tint height;\n";
stream << "\t\tbool alpha;\n";
stream << "\t\tconst QRgb *data;\n";
stream << "\t\tconst TQRgb *data;\n";
stream << "\t};\n\n";
uint i = 0;

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

@ -65,7 +65,7 @@ private:
/**
* This class creates bitmaps which can be used as icons on buttons. The icons
* 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
* time sharp and not blurred.
*/

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

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

Loading…
Cancel
Save