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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/28/head
Michele Calgaro 1 year ago
parent a97b6afffb
commit d2728dd8db
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -49,7 +49,7 @@ struct Result {
Result(): node(0) {}
/**Type of semantic value for simple grammar rules.*/
QString value;
TQString value;
/**Type of semantic value for grammar rules which are parts of AST.*/
AST *node;
/**Type of semantic value for "multiline_values" grammar rule.

@ -81,29 +81,29 @@ cont \\{ws}*{newline}
<INITIAL>{ws} {}
<vallist>{ws} {
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::LIST_WS;
}
<vallist,INITIAL>{cont} {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::CONT;
}
<vallist,INITIAL>{comment_cont} {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::COMMENT_CONT;
}
{id_simple} {
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return (Parser::token::token::ID_SIMPLE);
}
<funcargs>{id_args} {
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = mylval->value.mid(0, mylval->value.length()-1);
unput(')');
BEGIN(INITIAL);
@ -112,43 +112,43 @@ cont \\{ws}*{newline}
<vallist>{var_value} {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::VARIABLE_VALUE;
}
<vallist>{quoted_var_value} {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::QUOTED_VARIABLE_VALUE;
}
"=" {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::EQ;
}
"+=" {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::PLUSEQ;
}
"-=" {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::MINUSEQ;
}
"*=" {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::STAREQ;
}
"~=" {
BEGIN(vallist);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::TILDEEQ;
}
@ -175,28 +175,28 @@ cont \\{ws}*{newline}
}
":" {
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return Parser::token::token::COLON;
}
<vallist>{ws}{newline} {
BEGIN(INITIAL);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
setLineEndingFromString( mylval->value );
return Parser::token::token::NEWLINE;
}
<vallist,INITIAL>{newline} {
BEGIN(INITIAL);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
setLineEndingFromString( mylval->value );
return Parser::token::token::NEWLINE;
}
<vallist,INITIAL>{comment} {
BEGIN(INITIAL);
mylval->value = QString::fromLocal8Bit( YYText(), YYLeng() );
mylval->value = TQString::fromLocal8Bit( YYText(), YYLeng() );
return (Parser::token::token::COMMENT);
}
@ -214,7 +214,7 @@ namespace QMake
return yylex();
}
void Lexer::setLineEndingFromString( const QString& str )
void Lexer::setLineEndingFromString( const TQString& str )
{
if( str.endsWith("\r\n") && m_lineEnding == None )
m_lineEnding = Windows;

@ -51,7 +51,7 @@ struct Result {
Result(): node(0) {}
/**Type of semantic value for simple grammar rules.*/
QString value;
TQString value;
/**Type of semantic value for grammar rules which are parts of AST.*/
AST *node;
/**Type of semantic value for "multiline_values" grammar rule.
@ -71,7 +71,7 @@ struct Result {
</pre>
*/
QStringList values;
QString indent;
TQString indent;
};
#define YYSTYPE Result
@ -310,8 +310,8 @@ listws: LIST_WS
}
|
{
$<value>$ = QString();
$<indent>$ = QString();
$<value>$ = TQString();
$<indent>$ = TQString();
}
;
operator : EQ

@ -85,7 +85,7 @@ Your part must be derived from <code>KDevPlugin</code>.
- KDevPlugin takes two arguments:
- 1) A <i>parent</i> argument. This also comes from
<code>createPartObject()</code>.
- 2) A <i>name</i>, which in turn is given to the <code>QObject</code>
- 2) A <i>name</i>, which in turn is given to the <code>TQObject</code>
constructor.
.
.
@ -134,7 +134,7 @@ rooted in the <code>dom</code> document node.
For example, the <code>autoproject</code> part uses the statement
<code><pre>
QString cflags = DomUtil::readEntry( *part->document(),
TQString cflags = DomUtil::readEntry( *part->document(),
"/kdevautoproject/cflags" );
</pre></code>
@ -181,7 +181,7 @@ void GDBBreakpointWidget::savePartialProjectSession(QDomElement* el)
{
BreakpointTableRow* btr = (BreakpointTableRow *) m_table->item(row, Control);
Breakpoint* bp = btr->breakpoint();
QDomElement breakpointEl = domDoc.createElement("breakpoint"+QString::number(row));
QDomElement breakpointEl = domDoc.createElement("breakpoint"+TQString::number(row));
breakpointEl.setAttribute("type", bp->type());
breakpointEl.setAttribute("location", bp->location(false));
breakpointEl.setAttribute("enabled", bp->isEnabled());

@ -71,10 +71,10 @@ Language support can offer additional features:
\subsection sectionAttributeMethodWizard Attribute/Method wizard
- add method dialog: (See <code>cpp</code> or <code>java</code>)
- <code>virtual void addMethod(const QString &className);</code>
- <code>virtual void addMethod(const TQString &className);</code>
.
- add attribute dialog: (See <code>cpp</code> or <code>java</code>)
- <code>virtual void addAttribute(const QString &className);</code>
- <code>virtual void addAttribute(const TQString &className);</code>
.
.
@ -82,8 +82,8 @@ Language support can offer additional features:
If there is a Qt bindings for your language and there is a possibility
to use QtDesigner ui files, you could implement ui subclassing feature:
- <code>virtual QStringList subclassWidget(const QString& formName);</code>
- <code>virtual QStringList updateWidget(const QString& formName, const QString&
- <code>virtual QStringList subclassWidget(const TQString& formName);</code>
- <code>virtual QStringList updateWidget(const TQString& formName, const TQString&
fileName);</code>
.

@ -73,7 +73,7 @@ A simple example on how to create a property editor and use it with one property
list->addProperty("My Group", new Property(String, "Second Property",
"This is my second property", "Hello"));
list->addProperty(new Property(Color, "Third Property",
"This is my third property", QColor("green")));
"This is my third property", TQColor("green")));
m_editor->populateProperties(*list);
\endcode
@ -88,7 +88,7 @@ More advanced example with property accessors and list intersection:
list->addProperty("My Group", new Property(String, "Second Property",
"This is my second property", "Hello"));
list->addProperty(new Property(Color, "Third Property",
"This is my third property", QColor("green")));
"This is my third property", TQColor("green")));
PropertyList *list2 = new PropertyList;
list2->addProperty("My Group", new Property(Integer, "First Property",

@ -337,7 +337,7 @@ Pixmap effects like gradients and patterns.
<listitem><formalpara><title><ulink url="kdeapi:tdeui/KPixmapIO">KPixmapIO</ulink></title>
<para>
Fast <classname>QImage</classname> to <classname>QPixmap</classname> conversion.
Fast <classname>TQImage</classname> to <classname>QPixmap</classname> conversion.
</para>
</formalpara></listitem>
@ -684,7 +684,7 @@ The central graphics class for 2D painting with Qt is
draw on a
<ulink url="kdeapi:qt/QPaintDevice">QPaintDevice</ulink>.
There are three possible paint devices implemented: One is
<ulink url="kdeapi:qt/QWidget">QWidget</ulink>
<ulink url="kdeapi:qt/TQWidget">TQWidget</ulink>
which represents a widget on the screen. The second is
<ulink url="kdeapi:qt/QPrinter">QPrinter</ulink> which
represents a printer and produces Postscript output. The third it
@ -967,11 +967,11 @@ Brushes can be constructed in four different ways:
patterns shown below.</para>
</listitem>
<listitem>
<para>QBrush::QBrush(const QColor &amp;, BrushStyle) - This creates a colored brush
<para>QBrush::QBrush(const TQColor &amp;, BrushStyle) - This creates a colored brush
with one of the patterns shown below.</para>
</listitem>
<listitem>
<para>QBrush::QBrush(const QColor &amp;, const QPixmap) - This creates a colored
<para>QBrush::QBrush(const TQColor &amp;, const QPixmap) - This creates a colored
brush with the custom pattern you give as second parameter.</para>
</listitem>
</itemizedlist>
@ -1000,7 +1000,7 @@ QPainter::setBrushOrigin().
<para>
Colors play a role both when stroking curves and when filling shapes. In Qt,
colors are represented by the class
<ulink url="kdeapi:qt/QColor">QColor</ulink>. Qt does not support
<ulink url="kdeapi:qt/TQColor">TQColor</ulink>. Qt does not support
advanced graphics features like ICC color profiles and color correction. Colors
are usually constructed by specifying their red, green and blue components, as
the RGB model is the way pixels are composed of on a monitor.
@ -1104,14 +1104,14 @@ to avoid flicker.
</para>
<para>
In contrast, <ulink url="kdeapi:qt/QImage">QImage</ulink> objects
In contrast, <ulink url="kdeapi:qt/TQImage">TQImage</ulink> objects
live on the client side. Their emphasis in on providing direct access to the
pixels of the image. This makes them of use for image manipulation, and things
like loading and saving to disk (QPixmap's load() method takes QImage as
like loading and saving to disk (QPixmap's load() method takes TQImage as
intermediate step). On the other hand, painting an image on a widget is a
relatively expensive operation, as it implies a transfer to the X server,
which can take some time, especially for large images and for remote servers.
Depending on the color depth, the conversion from QImage to QPixmap may also
Depending on the color depth, the conversion from TQImage to QPixmap may also
require dithering.
</para>
@ -1123,7 +1123,7 @@ require dithering.
<para>
Text can be drawn with one of the overloaded variants of the method
QPainter::drawText(). These draw a QString either at a given point or in a given
QPainter::drawText(). These draw a TQString either at a given point or in a given
rectangle, using the font set by QPainter::setFont(). There is also a parameter
which takes an ORed combination of some flags from the enums
<ulink url="kdeapi:qt/Qt#AlignmentFlags-enum">Qt::AlignmentFlags</ulink>
@ -1658,7 +1658,7 @@ ask the client's factory for it:
<programlisting>
void MainWindow::popupRequested()
{
QWidget *w = factory()->container("context_popup", this);
TQWidget *w = factory()->container("context_popup", this);
QPopupMenu *popup = static_cast&lt;QPopupMenu *&gt;(w);
popup->exec(QCursor::pos());
}
@ -1929,13 +1929,13 @@ X-TDE-ServiceType=TDevelop/Part
Name=TDevelop Part
[PropertyDef::X-TDevelop-Scope]
Type=QString
Type=TQString
[PropertyDef::X-TDevelop-ProgrammingLanguages]
Type=QStringList
[PropertyDef::X-TDevelop-Args]
Type=QString
Type=TQString
</programlisting>
<para>
@ -2032,11 +2032,11 @@ load the library and get a pointer to its factory object:
<programlisting>
KService *service = ...
QString libName = QFile::encodeName(service->library());
TQString libName = QFile::encodeName(service->library());
KLibFactory *factory = KLibLoader::self()->factory(libName);
if (!factory) {
QString name = service->name();
QString errorMessage = KLibLoader::self()->lastErrorMessage();
TQString name = service->name();
TQString errorMessage = KLibLoader::self()->lastErrorMessage();
KMessageBox::error(0, i18n("There was an error loading service %1.\n"
"The diagnostics from libtool is:\n%2")
.arg(name).arg(errorMessage);
@ -2054,7 +2054,7 @@ its create() method:
<programlisting>
if (factory->inherits("KParts::Factory")) {
KParts::Factory *partFactory = static_cast&lt;KParts::Factory*&gt;(factory);
QObject *obj = partFactory->createPart(parentWidget, widgetName,
TQObject *obj = partFactory->createPart(parentWidget, widgetName,
parent, name, "KParts::ReadOnlyPart");
...
} else {
@ -2142,7 +2142,7 @@ class:
DCOPClient *client = kapp->dcopClient();
client->attach();
if (!client->isApplicationRegistered("tdeio_uiserver")) {
QString error;
TQString error;
if (TDEApplication::startServiceByName("tdeio_uiserver", QStringList(), &amp;error))
cout &lt;&lt; "Starting kioserver failed with message " &lt;&lt; error &lt;&lt; endl;
}
@ -2176,7 +2176,7 @@ the file name of its desktop file as argument, i.e. in this case
<para>
All these calls take a list of URLs as a second argument, which is given
to the service on the command line. The third argument is a pointer to a
<classname>QString</classname>. If starting the service fails, this argument
<classname>TQString</classname>. If starting the service fails, this argument
is set to a translated error message.
</para>
@ -2385,7 +2385,7 @@ contents of a local file. For remote files, there is a further possibility:
<programlisting>
KURL url("http://developer.kde.org/favicon.ico");
QString type = TDEIO::NetAccess::mimetype(url);
TQString type = TDEIO::NetAccess::mimetype(url);
if (type == KMimeType::defaultMimeType())
cout &lt;&lt; "Could not find out type" &lt;&lt; endl;
else
@ -2514,7 +2514,7 @@ and returns the associated icon.
<programlisting>
KURL url("ftp://ftp.kde.org/pub/incoming/wibble.c");
QString icon = KMimeType::iconForURL(url);
TQString icon = KMimeType::iconForURL(url);
</programlisting>
<para>
@ -2652,7 +2652,7 @@ Renames a file.
</para></listitem>
</varlistentry>
<varlistentry><term>TDEIO::symlink(const QString &amp;target, const KURL &amp;dest,
<varlistentry><term>TDEIO::symlink(const TQString &amp;target, const KURL &amp;dest,
bool overwrite, bool showProgressInfo)</term>
<listitem><para>
Creates a symbolic link.
@ -2892,7 +2892,7 @@ files regardless of their location is the following code snippet:
<programlisting>
KURL url;
url = ...;
QString tempFile;
TQString tempFile;
if (TDEIO::NetAccess::download(url, tempFile) {
// load the file with the name tempFile
TDEIO::NetAccess::removeTempFile(tempFile);
@ -2948,12 +2948,12 @@ void FooClass::printModifiedDate()
void FooClass::transferResult(TDEIO::Job *job)
{
QString mimetype;
TQString mimetype;
if (job->error())
job->showErrorDialog();
else {
TDEIO::TransferJob *transferJob = (TDEIO::TransferJob*) job;
QString modified = transferJob->queryMetaData("modified");
TQString modified = transferJob->queryMetaData("modified");
cout &lt;&lt; "Last modified: " &lt;&lt; modified &lt;&lt; endl;
}
</programlisting>
@ -3193,7 +3193,7 @@ or not (i.e. the default implementation returns an error).
<listitem><para>copy(const KURL &amp;url, const KURL &amp;dest, int permissions, bool overwrite)</para></listitem></varlistentry>
<varlistentry><term>Creates a symbolic link.</term>
<listitem><para>void symlink(const QString &amp;target, const KURL &amp;dest, bool overwrite)</para></listitem></varlistentry>
<listitem><para>void symlink(const TQString &amp;target, const KURL &amp;dest, bool overwrite)</para></listitem></varlistentry>
</variablelist>

@ -305,14 +305,14 @@ But what about the <methodname>show()</methodname> method? Now, you see that lik
This shows you a lot of other widgets that are inherited by <classname>QPushButton</classname>,
which we'll use later to explain the signal/slot mechanism. Anyway, the <methodname>show()</methodname>
method is not listed, therefore, it must be a method that is provided by inheritance as well. The class
that <classname>QButton</classname> inherits is <classname>QWidget</classname>. Just follow the link
again, and you will see a whole bunch of methods that the QWidget class provides; including
that <classname>QButton</classname> inherits is <classname>TQWidget</classname>. Just follow the link
again, and you will see a whole bunch of methods that the TQWidget class provides; including
the <methodname>show()</methodname> method. Now we understand what was done in the sample with the button:
<orderedlist>
<listitem><para>Create an instance of <classname>QPushButton</classname>, use the second constructor to set the button text</para></listitem>
<listitem><para>Resize the widget to its contents</para></listitem>
<listitem><para>Set the widget as the main widget of the <classname>QApplication</classname> instance a</para></listitem>
<listitem><para>Tell the widget to display itself on the screen by calling <methodname>show()</methodname>, an inherited method from <classname>QWidget</classname></para></listitem>
<listitem><para>Tell the widget to display itself on the screen by calling <methodname>show()</methodname>, an inherited method from <classname>TQWidget</classname></para></listitem>
</orderedlist>
</para>
<para>
@ -327,7 +327,7 @@ user events.
<note><para>
For already advanced users: The button has no parent declared in the constructor, therefore it
is a top-level widget alone and runs in a local event loop which doesn't need to wait for the main
event loop. See the QWidget class documentation and The TDE Library Reference Guide</para>
event loop. See the TQWidget class documentation and The TDE Library Reference Guide</para>
</note>
</sect3>
@ -352,7 +352,7 @@ provide methods that detect actions and methods that do something as a reaction
The Window system therefore sends all interaction events to the according application. The
<classname>QApplication</classname> then sends them to the active window as a <classname>QEvent</classname>
and the widgets themselves have to decide what to do with them. A widget receives the event and processes
<methodname>QWidget::event(QEvent*)</methodname>, which then decides which event has been executed
<methodname>TQWidget::event(QEvent*)</methodname>, which then decides which event has been executed
and how to react; <methodname>event()</methodname> is therefore the main event handler. Then,
the <methodname>event()</methodname> method passes the event to so-called event filters
that determine what happened and what to do with the event. If no filter signs responsible for the
@ -405,9 +405,9 @@ Window events containing the widget</para>
</para>
<para>
Note that all event functions are virtual and protected; therefore you can re-implement the events
that you need in your own widgets and specify how your widget has to react. <classname>QWidget</classname>
that you need in your own widgets and specify how your widget has to react. <classname>TQWidget</classname>
also contains some other virtual methods that can be useful in your programs; anyway, it is sufficient
to know about <classname>QWidget</classname> very well.
to know about <classname>TQWidget</classname> very well.
</para>
</sect2>
<sect2 id="c1s2s4">
@ -423,7 +423,7 @@ some things about this mechanism:
<itemizedlist>
<listitem><para>
the class declaration of a class using signals/slots has to contain the TQ_OBJECT macro at the beginning
(without a semicolon); and have to be derved from the <classname>QObject</classname> class
(without a semicolon); and have to be derved from the <classname>TQObject</classname> class
</para></listitem>
<listitem><para>
a signal can be emitted by the keyword emit, e.g. emit signal(parameters); from within any member function
@ -445,9 +445,9 @@ implementation (which is not necessary to know). The output files of moc are co
</itemizedlist>
</para>
<para>
Another way to use signals without deriving from <classname>QObject</classname> is to use the
Another way to use signals without deriving from <classname>TQObject</classname> is to use the
<classname>QSignal</classname> class- see the reference documentation for more information and example
usage. In the following, we assume you're deriving from <classname>QObject</classname>.
usage. In the following, we assume you're deriving from <classname>TQObject</classname>.
</para>
<para>
This way, your class is able to send signals anywhere and to provide slots that signals can connect
@ -457,7 +457,7 @@ as normal methods during implementation.
</para>
<para>
Now, to connect a signal to a slot, you have to use the <methodname>connect()</methodname> methods that
are provided by <classname>QObject</classname> or, where available, special methods that objects provide
are provided by <classname>TQObject</classname> or, where available, special methods that objects provide
to set the connection for a certain signal.
</para>
@ -479,7 +479,7 @@ hello.resize( 100, 30 );
a.setMainWidget( &amp;hello );
QObject::connect(&amp;hello, SIGNAL( clicked() ), &amp;a, SLOT( quit() ));
TQObject::connect(&amp;hello, SIGNAL( clicked() ), &amp;a, SLOT( quit() ));
hello.show();
return a.exec();
@ -489,14 +489,14 @@ return a.exec();
<para>
You see, the only addition to give the button more interaction is to use a <methodname>connect()
</methodname> method: <methodname>connect(&amp;hello, SIGNAL( clicked() ), &amp;a, SLOT( quit() ))</methodname>;
is all you have to add. What is the meaning now? The class declaration of QObject says about the
is all you have to add. What is the meaning now? The class declaration of TQObject says about the
<methodname>connect()</methodname> method:
</para>
<para><methodname>
bool connect ( const QObject * sender, const char * signal, const QObject * receiver, const char * member )
bool connect ( const TQObject * sender, const char * signal, const TQObject * receiver, const char * member )
</methodname></para>
<para>
This means you have to specify a <classname>QObject</classname> instance pointer that is the sender
This means you have to specify a <classname>TQObject</classname> instance pointer that is the sender
of the signal, meaning that it can emit this signal as first parameter; then you have to specify the signal
that you want to connect to. The last two parameters are the receiver object that provides a slot, followed
by the member function which actually is the slot that will be executed on signal emission.
@ -573,7 +573,7 @@ hello.resize( 100, 30 );
a.setTopWidget( &amp;hello );
QObject::connect(&amp;hello, SIGNAL( clicked() ), &amp;a, SLOT( quit() ));
TQObject::connect(&amp;hello, SIGNAL( clicked() ), &amp;a, SLOT( quit() ));
hello.show();
return a.exec();
@ -595,7 +595,7 @@ mentioned before and see the effects.
</para>
<para>
What you should have looked into additionally until now is the reference documentation for Qt,
especially the <classname>QApplication</classname>, <classname>QWidget</classname> and <classname>QObject
especially the <classname>QApplication</classname>, <classname>TQWidget</classname> and <classname>TQObject
</classname> class and the tdecore library documentation for the <classname>TDEApplication</classname> class.
The <ulink url="developer.kde.org/documentation/library/libraryref.html">TDE Library Reference handbook</ulink>
also covers a complete description about the invocation of the <classname>QApplication</classname> and
@ -924,10 +924,10 @@ Let's have a look at the constructor and see how this instance is called
16 statusBar()->show();
17
18 // allow the view to change the statusbar and caption
19 connect(m_view, SIGNAL(signalChangeStatusbar(const QString&amp;)),
20 this, SLOT(changeStatusbar(const QString&amp;)));
21 connect(m_view, SIGNAL(signalChangeCaption(const QString&amp;)),
22 this, SLOT(changeCaption(const QString&amp;)));
19 connect(m_view, SIGNAL(signalChangeStatusbar(const TQString&amp;)),
20 this, SLOT(changeStatusbar(const TQString&amp;)));
21 connect(m_view, SIGNAL(signalChangeCaption(const TQString&amp;)),
22 this, SLOT(changeCaption(const TQString&amp;)));
23
24 }
</programlisting>
@ -1011,10 +1011,10 @@ a joy if you know how to exploit it's capabilities- inheritance, information hid
already existing code.
</para>
<para>
When creating a TDE or Qt project, you always have to have a view that inherits QWidget, either by
direct inheritance or because the library widget you want to use inherits QWidget. Therefore, the
When creating a TDE or Qt project, you always have to have a view that inherits TQWidget, either by
direct inheritance or because the library widget you want to use inherits TQWidget. Therefore, the
Application Wizard already constructed a view that is an instance of a class yourappView, which
inherits QWidget already.
inherits TQWidget already.
</para>
<para>
This chapter therefore describes how to use library widgets for creating views of TDE or
@ -1080,7 +1080,7 @@ inherit your own widget from <classname>QScrollView</classname> or use an instan
document's view widget.
</para></listitem>
<listitem><para>
to create a ScrollView yourself, inherit the View widget from <classname>QWidget</classname>
to create a ScrollView yourself, inherit the View widget from <classname>TQWidget</classname>
and add vertical and horizontal <classname>QScrollBars </classname>.
(This is done by TDE`s TDEHTMLView widget.)
</para></listitem>
@ -1206,7 +1206,7 @@ such as F1 for accessing online-help, Ctrl+N for New File etc.
</para>
<para>
If your application contains a lot of accelerators, you should make them configurable
by an Options-menu; either it could be combined with other application configuration in a QWidget
by an Options-menu; either it could be combined with other application configuration in a TQWidget
or stand alone. The TDE library already provides a <classname>KKeyChooser</classname>
for use in tab dialogs, whereas <classname>KKeyDialog</classname> provides a ready-to use
key-configuration dialog.
@ -1305,7 +1305,7 @@ a visible widget item and gets a help window. As an exercise, you could try this
</para>
<para>
To add the What's This...? help to one of your widgets, use the static method
<methodname>QWhatsThis::add(QWidget *widget, const QString &amp;text)</methodname>
<methodname>QWhatsThis::add(TQWidget *widget, const TQString &amp;text)</methodname>
</para>
</sect1>
</chapter>

@ -330,9 +330,9 @@
<include location="local" impldecl="in implementation">richtextfontdialog.ui.h</include>
</includes>
<variables>
<variable>QString font</variable>
<variable>QColor color</variable>
<variable>QString size</variable>
<variable>TQString font</variable>
<variable>TQColor color</variable>
<variable>TQString size</variable>
</variables>
<Q_SLOTS>
<slot>init()</slot>

@ -30,7 +30,7 @@ options {
{
private:
QString m_fileName;
TQString m_fileName;
QValueList<NamespaceDom> m_scopeStack;
CodeModel* m_model;
QValueList<QStringList> m_imports;
@ -46,8 +46,8 @@ public:
CodeModel* codeModel () { return m_model; }
const CodeModel* codeModel () const { return m_model; }
QString fileName () const { return m_fileName; }
void setFileName (const QString& fileName) { m_fileName = fileName; }
TQString fileName () const { return m_fileName; }
void setFileName (const TQString& fileName) { m_fileName = fileName; }
void init () {
m_scopeStack.clear ();
@ -66,13 +66,13 @@ public:
void wipeout () { m_model->wipeout (); }
// void out () { m_store->out (); }
void removeWithReferences (const QString& fileName) {
void removeWithReferences (const TQString& fileName) {
m_model->removeFile (m_model->fileByName(fileName));
}
NamespaceDom insertScopeContainer
(NamespaceDom scope, const QStringList & scopes ) {
QStringList::ConstIterator it = scopes.begin();
QString prefix( *it );
TQString prefix( *it );
NamespaceDom ns = scope->namespaceByName( prefix );
// kdDebug() << "insertScopeContainer begin with prefix " << prefix << endl;
if (!ns.data()) {
@ -89,7 +89,7 @@ public:
}
// kdDebug() << "insertScopeContainer: while" << endl;
while ( ++it != scopes.end() ) {
QString nameSegment( *it );
TQString nameSegment( *it );
prefix += "." + nameSegment;
// kdDebug() << "insertScopeContainer: while prefix = " << prefix << endl;
NamespaceDom inner = scope->namespaceByName( prefix );
@ -592,7 +592,7 @@ name_or_qualified
package_body
: #(PACKAGE_BODY id:def_id
/* TBD
{ QString name (qtext (id));
{ TQString name (qtext (id));
}
*/
pkg_body_part)

@ -13,21 +13,21 @@ Archive=chello.tar.gz
[LIBS]
Type = value
ValueType=QString
ValueType=TQString
Value= OPT_LIBS
Comment= Optional libraries to link to.
Default= -lm
[INCLUDES]
Type = value
ValueType=QString
ValueType=TQString
Value= OPT_INCS
Comment= Optional include path.
Default= -I/usr/include
[CFLAGS]
Type = value
ValueType=QString
ValueType=TQString
Value= CFLAGS
Comment= Optional CFLAGS to define in the makefile.
Default=

@ -12,14 +12,14 @@ Archive=kdevpart.tar.gz
[SCOPE]
Type = value
ValueType=QString
ValueType=TQString
Value= SCOPE
Comment= The scope of a plugin (Global, Project, Core)
Default= Global
[PROPS]
Type = value
ValueType=QString
ValueType=TQString
Value= PROPS
Comment= The list of supported TDevelop properties
Default=

@ -12,14 +12,14 @@ Archive=kdevpart2.tar.gz
[SCOPE]
Type = value
ValueType=QString
ValueType=TQString
Value= SCOPE
Comment= The scope of a plugin (Global, Project, Core)
Default= Global
[PROPS]
Type = value
ValueType=QString
ValueType=TQString
Value= PROPS
Comment= The list of supported TDevelop properties
Default=

@ -1,7 +1,7 @@
<!DOCTYPE UI><UI>
<class>%{APPNAME}Base</class>
<widget>
<class>QWidget</class>
<class>TQWidget</class>
<property stdset="1">
<name>name</name>
<cstring>%{APPNAME}Base</cstring>

@ -66,14 +66,14 @@ Comment=A Qt3/Qmake based application was created in %{dest}
[TQTDIR]
Type=value
ValueType=QString
ValueType=TQString
Value=TQTDIR
Comment=Directory where Qt3 is installed.
Default=
[QMAKE]
Type=value
ValueType=QString
ValueType=TQString
Value=QMAKE
Comment=Absolute Path for QMake (Qt3).
Default=

@ -26,14 +26,14 @@ Comment=A Qmake based application was created in %{dest}
[QMAKE]
Type=value
ValueType=QString
ValueType=TQString
Value=QMAKE
Comment=Absolute Path for QMake.
Default=
[DESIGNER]
Type=value
ValueType=QString
ValueType=TQString
Value=DESIGNER
Comment=Absolute Path for Designer.
Default=

@ -42,14 +42,14 @@ Comment=A Qmake/Qt3 based hello world program was created in %{dest}
[TQTDIR]
Type=value
ValueType=QString
ValueType=TQString
Value=TQTDIR
Comment=Directory where Qt3 is installed.
Default=
[QMAKE]
Type=value
ValueType=QString
ValueType=TQString
Value=QMAKE
Comment=Absolute Path for QMake (Qt3).
Default=

@ -413,7 +413,7 @@ Namespace1::Namespace2::...::NamespaceN</string>
<enum>StrongFocus</enum>
</property>
<property name="whatsThis" stdset="0">
<string>Insert the base class which your new class will be derived from. If you have checked 'Generate QWidget child class' the new class will be derived from QWidget. If no base class is named, the new class will not have a parent class. You can also use template classes here (like BaseClass&lt;int, int&gt;)</string>
<string>Insert the base class which your new class will be derived from. If you have checked 'Generate TQWidget child class' the new class will be derived from TQWidget. If no base class is named, the new class will not have a parent class. You can also use template classes here (like BaseClass&lt;int, int&gt;)</string>
</property>
</widget>
<widget class="KLineEdit" row="0" column="2">

@ -30,7 +30,7 @@ necessary to clear already cached data for other threads.
== Command execution ==
The controller has a queue of commands to send to gdb. A command typically
has a callback (pair of QObject* and a member pointer) to be called when
has a callback (pair of TQObject* and a member pointer) to be called when
command is done.
When the queue is non-empty, and debugger is not busy executing the previous

@ -19,10 +19,10 @@ int main(int argc, char **argv)
QByteArray data;
QDataStream ds(data, IO_WriteOnly);
if (argc > 1)
ds << QString(argv[1]);
ds << TQString(argv[1]);
else
ds << QString("http://www.kde.org");
client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(QString)", data);
ds << TQString("http://www.kde.org");
client->send("%{APPNAMELC}", "%{APPNAME}Iface", "openURL(TQString)", data);
return app.exec();
}

@ -17,12 +17,12 @@ import org.kde.koala.*;
* @author %{AUTHOR} <%{EMAIL}>
* @version %{VERSION}
*/
public class %{APPNAME}View extends QWidget
public class %{APPNAME}View extends TQWidget
{
QHBoxLayout top_layout;
public %{APPNAME}View(QWidget parent)
public %{APPNAME}View(TQWidget parent)
{
super(parent, null);
// setup our layout manager to automatically add our widgets

@ -28,7 +28,7 @@ public %{APPNAME}Preferences()
}
public class %{APPNAME}PrefPageOne extends QFrame {
public %{APPNAME}PrefPageOne(QWidget parent)
public %{APPNAME}PrefPageOne(TQWidget parent)
{
super(parent);
QHBoxLayout layout = new QHBoxLayout(this);
@ -39,7 +39,7 @@ public %{APPNAME}PrefPageOne(QWidget parent)
}
public class %{APPNAME}PrefPageTwo extends QFrame {
public %{APPNAME}PrefPageTwo(QWidget parent)
public %{APPNAME}PrefPageTwo(TQWidget parent)
{
super(parent);
QHBoxLayout layout = new QHBoxLayout(this);

@ -16,14 +16,14 @@ Type=value
Value=JAVA
Comment=Path to your java root
Default=/usr/lib/java
ValueType=QString
ValueType=TQString
[WABA]
Type=value
Value=WABA
Comment=Path to your SuperWaba root
Default=/usr/lib
ValueType=QString
ValueType=TQString
[GNU]
Type=install archive

@ -16,14 +16,14 @@ Type=value
Value=JAVA
Comment=Path to your java root
Default=/usr/lib/java
ValueType=QString
ValueType=TQString
[WABA]
Type=value
Value=WABA
Comment=Path to your SuperWaba root
Default=/usr/lib
ValueType=QString
ValueType=TQString
[GNU]
Type=install archive

@ -157,18 +157,18 @@ private:
public:
void setDriver( Driver* d ) { m_driver = d; }
void setFileName( const QString& fileName ) { m_driver->currentFileName() = fileName; }
void setFileName( const TQString& fileName ) { m_driver->currentFileName() = fileName; }
void reportError( const ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex ){
m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
}
void reportError( const ANTLR_USE_NAMESPACE(std)string& errorMessage ){
m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(errorMessage.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(errorMessage.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
}
void reportMessage( const ANTLR_USE_NAMESPACE(std)string& message ){
m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(message.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(message.c_str()), LT(1)->getLine(), LT(1)->getColumn()) );
}
}
@ -1061,18 +1061,18 @@ private:
public:
void setDriver( Driver* d ) { m_driver = d; }
void setFileName( const QString& fileName ) { m_driver->currentFileName() = fileName; }
void setFileName( const TQString& fileName ) { m_driver->currentFileName() = fileName; }
virtual void reportError( const ANTLR_USE_NAMESPACE(antlr)RecognitionException& ex ){
m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(ex.getMessage().c_str()), ex.getLine(), ex.getColumn()) );
}
virtual void reportError( const ANTLR_USE_NAMESPACE(std)string& errorMessage ){
m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(errorMessage.c_str()), getLine(), getColumn()) );
m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(errorMessage.c_str()), getLine(), getColumn()) );
}
virtual void reportWarning( const ANTLR_USE_NAMESPACE(std)string& warnMessage ){
m_driver->addProblem( m_driver->currentFileName(), Problem( QString::fromLocal8Bit(warnMessage.c_str()), getLine(), getColumn()) );
m_driver->addProblem( m_driver->currentFileName(), Problem( TQString::fromLocal8Bit(warnMessage.c_str()), getLine(), getColumn()) );
}
}

@ -72,26 +72,26 @@ public:
}
}
compilationUnit { QString package; QString imp; QStringList imports; }
compilationUnit { TQString package; TQString imp; QStringList imports; }
: { init(); }
(package=packageDefinition)?
(imp=importDefinition { imports << imp; } )*
(typeDefinition)*
;
packageDefinition returns [ QString id ]
packageDefinition returns [ TQString id ]
: #( PACKAGE_DEF id=identifier )
;
importDefinition returns [ QString id ]
importDefinition returns [ TQString id ]
: #( IMPORT id=identifierStar )
;
typeDefinition { QStringList bases; QString className; ClassDom klass; QStringList m;}
typeDefinition { QStringList bases; TQString className; ClassDom klass; QStringList m;}
: #(CLASS_DEF m=modifiers IDENT
{
klass = m_model->create<ClassModel>();
QString name = QString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
TQString name = TQString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
QStringList path = QStringList::split( ".", name );
className = path.back();
@ -125,7 +125,7 @@ typeDefinition { QStringList bases; QString className; ClassDom klass; QStringLi
| #(INTERFACE_DEF m=modifiers IDENT
{
klass = m_model->create<ClassModel>();
QString name = QString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
TQString name = TQString::fromUtf8( #IDENT->getText().c_str(), #IDENT->getText().length() );
QStringList path = QStringList::split( ".", name );
className = path.back();
@ -154,16 +154,16 @@ typeDefinition { QStringList bases; QString className; ClassDom klass; QStringLi
)
;
typeSpec returns [ QString tp ]
typeSpec returns [ TQString tp ]
: #(TYPE tp=typeSpecArray)
;
typeSpecArray returns [ QString tp ]
typeSpecArray returns [ TQString tp ]
: #( ARRAY_DECLARATOR tp=typeSpecArray ) { tp += "[]"; }
| tp=type
;
type returns [ QString tp ]
type returns [ TQString tp ]
: tp=identifier
| b:builtInType { tp = #b->getText().c_str(); }
;
@ -199,11 +199,11 @@ modifier
| "volatile"
;
extendsClause returns [ QStringList l ] { QString id; }
extendsClause returns [ QStringList l ] { TQString id; }
: #(EXTENDS_CLAUSE (id=identifier { l << id; } )* )
;
implementsClause returns [ QStringList l ] { QString id; }
implementsClause returns [ QStringList l ] { TQString id; }
: #(IMPLEMENTS_CLAUSE (id=identifier { l << id; } )* )
;
@ -256,7 +256,7 @@ ctorDef returns [ FunctionDom meth ] {
methodDecl returns [ FunctionDom meth ] {
QStringList m;
QString tp;
TQString tp;
meth = m_model->create<FunctionModel>();
meth->setFileName( m_file->name() );
}
@ -274,7 +274,7 @@ methodDecl returns [ FunctionDom meth ] {
methodDef returns [ FunctionDom meth ] {
QStringList m;
QString tp;
TQString tp;
meth = m_model->create<FunctionModel>();
meth->setFileName( m_file->name() );
}
@ -292,7 +292,7 @@ methodDef returns [ FunctionDom meth ] {
variableDef returns [ VariableDom attr ] {
QStringList m;
QString tp;
TQString tp;
attr = m_model->create<VariableModel>();
attr->setFileName( m_file->name() );
}
@ -311,7 +311,7 @@ variableDef returns [ VariableDom attr ] {
;
parameterDef returns [ ArgumentDom arg ] {
QString tp;
TQString tp;
arg = m_model->create<ArgumentModel>();
}
: #(PARAMETER_DEF modifiers tp=typeSpec IDENT )
@ -360,21 +360,21 @@ throwsClause
: #( "throws" (identifier)* )
;
identifier returns [ QString id ]
identifier returns [ TQString id ]
: IDENT {
id = #IDENT->getText().c_str();
}
| #( DOT id=identifier IDENT ) {
id += QString(".") + #IDENT->getText().c_str();
id += TQString(".") + #IDENT->getText().c_str();
}
;
identifierStar returns [ QString id ]
identifierStar returns [ TQString id ]
: IDENT {
id = #IDENT->getText().c_str();
}
| #( DOT id=identifier (STAR { id += QString(".") + #STAR->getText().c_str(); } |
IDENT { id += QString(".") + #IDENT->getText().c_str(); }) )
| #( DOT id=identifier (STAR { id += TQString(".") + #STAR->getText().c_str(); } |
IDENT { id += TQString(".") + #IDENT->getText().c_str(); }) )
;
slist

@ -16,12 +16,12 @@ an instance of @ref Debugger class and connect its Q_SIGNALS, for example:
@code
m_debugger = new Debugger( partController() );
connect( m_debugger, SIGNAL(toggledBreakpoint(const QString &, int)),
debuggerBreakpointWidget, SLOT(slotToggleBreakpoint(const QString &, int)) );
connect( m_debugger, SIGNAL(editedBreakpoint(const QString &, int)),
debuggerBreakpointWidget, SLOT(slotEditBreakpoint(const QString &, int)) );
connect( m_debugger, SIGNAL(toggledBreakpointEnabled(const QString &, int)),
debuggerBreakpointWidget, SLOT(slotToggleBreakpointEnabled(const QString &, int)) );
connect( m_debugger, SIGNAL(toggledBreakpoint(const TQString &, int)),
debuggerBreakpointWidget, SLOT(slotToggleBreakpoint(const TQString &, int)) );
connect( m_debugger, SIGNAL(editedBreakpoint(const TQString &, int)),
debuggerBreakpointWidget, SLOT(slotEditBreakpoint(const TQString &, int)) );
connect( m_debugger, SIGNAL(toggledBreakpointEnabled(const TQString &, int)),
debuggerBreakpointWidget, SLOT(slotToggleBreakpointEnabled(const TQString &, int)) );
@endcode
Then m_debugger instance can be used for example, to jump to the execution point:
@code

@ -46,7 +46,7 @@ options {
{
private:
QString m_fileName;
TQString m_fileName;
QStringList m_currentScope;
int m_currentAccess;
int m_anon;
@ -57,8 +57,8 @@ public:
CodeModel* codeModel() { return m_model; }
const CodeModel* codeModel() const { return m_model; }
QString fileName() const { return m_fileName; }
void setFileName( const QString& fileName ) { m_fileName = fileName; }
TQString fileName() const { return m_fileName; }
void setFileName( const TQString& fileName ) { m_fileName = fileName; }
void init(){
m_currentScope.clear();

@ -1,10 +1,10 @@
class %{APPNAME} < KDE::DCOPObject
k_dcop 'QString string(int)',
k_dcop 'TQString string(int)',
'QStringList list()',
'void add(QString)',
'bool remove(QString)',
'void add(TQString)',
'bool remove(TQString)',
'bool exit()'
def initialize()

@ -15,8 +15,8 @@ class %{APPNAMESC} < KDE::MainWindow
'fileSaveAs()',
'filePrint()',
'optionsPreferences()',
'changeStatusbar(const QString&)',
'changeCaption(const QString&)'
'changeStatusbar(const TQString&)',
'changeCaption(const TQString&)'
def initialize()
super( nil, "%{APPNAMESC}" )
@ -41,10 +41,10 @@ class %{APPNAMESC} < KDE::MainWindow
setupGUI();
# allow the view to change the statusbar and caption
connect(@view, SIGNAL('signalChangeStatusbar(const QString&)'),
self, SLOT('changeStatusbar(const QString&)'))
connect(@view, SIGNAL('signalChangeCaption(const QString&)'),
self, SLOT('changeCaption(const QString&)'))
connect(@view, SIGNAL('signalChangeStatusbar(const TQString&)'),
self, SLOT('changeStatusbar(const TQString&)'))
connect(@view, SIGNAL('signalChangeCaption(const TQString&)'),
self, SLOT('changeCaption(const TQString&)'))
end

@ -1,6 +1,6 @@
class %{APPNAMESC}Iface < KDE::DCOPObject
k_dcop 'void openURL(QString)'
k_dcop 'void openURL(TQString)'
def initialize(app)
super("%{APPNAMESC}Iface")

@ -15,15 +15,15 @@ class %{APPNAMESC}View < Qt::Widget
#
# Use this signal to change the content of the statusbar
#
Q_SIGNALS 'signalChangeStatusbar(const QString&)'
Q_SIGNALS 'signalChangeStatusbar(const TQString&)'
#
# Use this signal to change the content of the caption
#
Q_SIGNALS 'signalChangeCaption(const QString&)'
Q_SIGNALS 'signalChangeCaption(const TQString&)'
Q_SLOTS 'slotOnURL(const QString&)',
'slotSetTitle(const QString&)'
Q_SLOTS 'slotOnURL(const TQString&)',
'slotSetTitle(const TQString&)'
def initialize(parent)
super(parent)
@ -71,10 +71,10 @@ class %{APPNAMESC}View < Qt::Widget
return
end
connect(@html, SIGNAL('setWindowCaption(const QString&)'),
self, SLOT('slotSetTitle(const QString&)'))
connect(@html, SIGNAL('setStatusBarText(const QString&)'),
self, SLOT('slotOnURL(const QString&)'))
connect(@html, SIGNAL('setWindowCaption(const TQString&)'),
self, SLOT('slotSetTitle(const TQString&)'))
connect(@html, SIGNAL('setStatusBarText(const TQString&)'),
self, SLOT('slotOnURL(const TQString&)'))
end

@ -12,8 +12,8 @@ class %{APPNAMESC} < KDE::MainWindow
Q_SLOTS 'fileNew()',
'optionsPreferences()',
'newToolbarConfig()',
'changeStatusbar(const QString&)',
'changeCaption(const QString&)'
'changeStatusbar(const TQString&)',
'changeCaption(const TQString&)'
def initialize()
super( nil, "%{APPNAMESC}" )
@ -40,10 +40,10 @@ class %{APPNAMESC} < KDE::MainWindow
setupGUI();
# allow the view to change the statusbar and caption
connect(@view, SIGNAL('signalChangeStatusbar(const QString&)'),
self, SLOT('changeStatusbar(const QString&)'))
connect(@view, SIGNAL('signalChangeCaption(const QString&)'),
self, SLOT('changeCaption(const QString&)'))
connect(@view, SIGNAL('signalChangeStatusbar(const TQString&)'),
self, SLOT('changeStatusbar(const TQString&)'))
connect(@view, SIGNAL('signalChangeCaption(const TQString&)'),
self, SLOT('changeCaption(const TQString&)'))
end

@ -15,12 +15,12 @@ class %{APPNAMESC}View < %{APPNAMESC}view_base
#
# Use this signal to change the content of the statusbar
#
Q_SIGNALS 'signalChangeStatusbar(const QString&)'
Q_SIGNALS 'signalChangeStatusbar(const TQString&)'
#
# Use this signal to change the content of the caption
#
Q_SIGNALS 'signalChangeCaption(const QString&)'
Q_SIGNALS 'signalChangeCaption(const TQString&)'
Q_SLOTS 'switchColors()',
'settingsChanged()'

@ -2,7 +2,7 @@ class %{APPNAMESC} < Qt::MainWindow
Q_SLOTS 'newDoc()',
'choose()',
'load( const QString& )',
'load( const TQString& )',
'save()',
'saveAs()',
'print()',

@ -38,7 +38,7 @@ those should be loaded at a time. This can be accomplished by:
@code
class KDevMyExtension: public KDevPlugin {
public:
KDevMyExtension(const KDevPluginInfo *info, QObject* parent, const char* name)
KDevMyExtension(const KDevPluginInfo *info, TQObject* parent, const char* name)
:KDevPlugin(info, parent, name) {}
virtual void doSomething() = 0;

@ -20,11 +20,11 @@ mimetype then it becomes automatically integrated into TDevelop IDE.
When a part is embedded into TDevelop shell, its Q_SIGNALS (defined in @ref
KInterfaceDesigner::Designer interface):
@code
void addedFunction(DesignerType type, const QString &formName, Function function)
void removedFunction(DesignerType type, const QString &formName, Function function)
void editedFunction(DesignerType type, const QString &formName, Function oldFunction, Function function)
void editFunction(DesignerType type, const QString &formName, const QString &functionName)
void editSource(DesignerType type, const QString &formName);
void addedFunction(DesignerType type, const TQString &formName, Function function)
void removedFunction(DesignerType type, const TQString &formName, Function function)
void editedFunction(DesignerType type, const TQString &formName, Function oldFunction, Function function)
void editFunction(DesignerType type, const TQString &formName, const TQString &functionName)
void editSource(DesignerType type, const TQString &formName);
@endcode
are connected to corresponding Q_SLOTS of TDevelop designer integration engine which can be implemented in TDevelop language support plugin.

@ -76,7 +76,7 @@ A simple example on how to create a property editor and use it with one property
list->addProperty("My Group", new Property(Property::String, "Second Property",
"This is my second property", "Hello"));
list->addProperty(new Property(Property::Color, "Third Property",
"This is my third property", QColor("green")));
"This is my third property", TQColor("green")));
m_editor->populateProperties(*list);
\endcode
@ -94,7 +94,7 @@ More advanced example with property buffers and list intersection:
list->addProperty("My Group", new Property(Property::String, "Second Property",
"This is my second property", "Hello"));
list->addProperty(new Property(Property::Color, "Third Property",
"This is my third property", QColor("green")));
"This is my third property", TQColor("green")));
PropertyList *list2 = new PropertyList;
list2->addProperty("My Group", new Property(Property::Integer, "First Property",

@ -38,14 +38,14 @@ QCanvasText
QCanvasTextExtra
QCanvasView
QCanvasViewData
QChar
TQChar
QCharRef
QCharRef
QCheckBox
QCheckListItem
QCleanupHandler
QClipboard
QColor
TQColor
QColorGroup
QComboBox
QComboBoxData
@ -137,7 +137,7 @@ QHeaderData
QHostAddress
QHttpHeader
QHttpRequest
QIODevice
TQIODevice
QIconDragItem
QIconFactory
QIconSet
@ -146,7 +146,7 @@ QIconViewItem
QIconViewItemLineEdit
QIconViewPrivate
QIconViewToolTip
QImage
TQImage
QImageConsumer
QImageDataMisc
QImageDecoder
@ -215,7 +215,7 @@ QNPlugin
QNetworkOperation
QNetworkProtocol
QNetworkProtocolFactoryBase
QObject
TQObject
QObjectList
QObjectListIt
QObjectUserData
@ -308,7 +308,7 @@ QSqlResult
QStatusBar
QStoredDragData
QStrList
QString
TQString
QStringList
QStyle
QStyleFactory
@ -380,7 +380,7 @@ QWSManager
QWSRegionManager
QWaitCondition
QWheelEvent
QWidget
TQWidget
QWidgetFactory
QWidgetList
QWidgetListIt

@ -62,8 +62,8 @@ Example:
app.processEvents();
QObject::connect(PluginController::getInstance(), SIGNAL(loadingPlugin(const QString &)),
splash, SLOT(showMessage(const QString &)));
TQObject::connect(PluginController::getInstance(), SIGNAL(loadingPlugin(const TQString &)),
splash, SLOT(showMessage(const TQString &)));
splash->message( i18n( "Loading Settings" ) );
TopLevel::getInstance()->loadSettings();
@ -98,12 +98,12 @@ Example:
virtual void createGlobalSettingsPage(KDialogBase */*dlg*/) {};
virtual void acceptGlobalSettingsPage(KDialogBase */*dlg*/) {};
virtual QString xmlFile()
virtual TQString xmlFile()
{
return "myappui.rc";
}
virtual QString defaultProfile()
virtual TQString defaultProfile()
{
return "MyApp";
}

Loading…
Cancel
Save