summaryrefslogtreecommitdiffstats
path: root/doc/html/simple-application-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/simple-application-example.html')
-rw-r--r--doc/html/simple-application-example.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/simple-application-example.html b/doc/html/simple-application-example.html
index f3cbfce2a..9b90e57f8 100644
--- a/doc/html/simple-application-example.html
+++ b/doc/html/simple-application-example.html
@@ -81,7 +81,7 @@ private slots:
private:
<a href="ntqprinter.html">TQPrinter</a> *printer;
- <a href="ntqtextedit.html">TQTextEdit</a> *e;
+ <a href="tqtextedit.html">TQTextEdit</a> *e;
<a href="tqstring.html">TQString</a> filename;
};
@@ -109,7 +109,7 @@ private:
#include &lt;<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>&gt;
#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
-#include &lt;<a href="qtextedit-h.html">ntqtextedit.h</a>&gt;
+#include &lt;<a href="tqtextedit-h.html">tqtextedit.h</a>&gt;
#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
#include &lt;<a href="qfiledialog-h.html">ntqfiledialog.h</a>&gt;
#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.h</a>&gt;
@@ -117,7 +117,7 @@ private:
#include &lt;<a href="qprinter-h.html">ntqprinter.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
#include &lt;<a href="qaccel-h.html">ntqaccel.h</a>&gt;
-#include &lt;<a href="qtextstream-h.html">ntqtextstream.h</a>&gt;
+#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qpaintdevicemetrics-h.html">ntqpaintdevicemetrics.h</a>&gt;
#include &lt;<a href="qwhatsthis-h.html">ntqwhatsthis.h</a>&gt;
@@ -218,7 +218,7 @@ private:
help-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "What's &amp;This", this, TQ_SLOT(<a href="ntqmainwindow.html#whatsThis">whatsThis</a>()), SHIFT+Key_F1 );
- e = new <a href="ntqtextedit.html">TQTextEdit</a>( this, "editor" );
+ e = new <a href="tqtextedit.html">TQTextEdit</a>( this, "editor" );
e-&gt;<a href="tqwidget.html#setFocus">setFocus</a>();
<a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( e );
<a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Ready", 2000 );
@@ -258,9 +258,9 @@ void <a name="f462"></a>ApplicationWindow::load( const <a href="tqstring.html">T
<a name="x1548"></a> if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> ) )
return;
- <a href="ntqtextstream.html">TQTextStream</a> ts( &amp;f );
-<a name="x1589"></a><a name="x1586"></a> e-&gt;<a href="ntqtextedit.html#setText">setText</a>( ts.<a href="ntqtextstream.html#read">read</a>() );
-<a name="x1585"></a> e-&gt;<a href="ntqtextedit.html#setModified">setModified</a>( FALSE );
+ <a href="tqtextstream.html">TQTextStream</a> ts( &amp;f );
+<a name="x1589"></a><a name="x1586"></a> e-&gt;<a href="tqtextedit.html#setText">setText</a>( ts.<a href="tqtextstream.html#read">read</a>() );
+<a name="x1585"></a> e-&gt;<a href="tqtextedit.html#setModified">setModified</a>( FALSE );
<a href="tqwidget.html#setCaption">setCaption</a>( fileName );
<a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Loaded document " + fileName, 2000 );
}
@@ -273,7 +273,7 @@ void <a name="f463"></a>ApplicationWindow::save()
return;
}
-<a name="x1588"></a> <a href="tqstring.html">TQString</a> text = e-&gt;<a href="ntqtextedit.html#text">text</a>();
+<a name="x1588"></a> <a href="tqstring.html">TQString</a> text = e-&gt;<a href="tqtextedit.html#text">text</a>();
<a href="ntqfile.html">TQFile</a> f( filename );
if ( !f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> ) ) {
<a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( TQString("Could not write to %1").arg(filename),
@@ -281,11 +281,11 @@ void <a name="f463"></a>ApplicationWindow::save()
return;
}
- <a href="ntqtextstream.html">TQTextStream</a> t( &amp;f );
+ <a href="tqtextstream.html">TQTextStream</a> t( &amp;f );
t &lt;&lt; text;
f.<a href="ntqfile.html#close">close</a>();
- e-&gt;<a href="ntqtextedit.html#setModified">setModified</a>( FALSE );
+ e-&gt;<a href="tqtextedit.html#setModified">setModified</a>( FALSE );
<a href="tqwidget.html#setCaption">setCaption</a>( filename );
@@ -321,11 +321,11 @@ void <a name="f465"></a>ApplicationWindow::print()
<a name="x1560"></a> int dpiy = metrics.<a href="ntqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>();
int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins
<a name="x1561"></a><a name="x1559"></a> <a href="ntqrect.html">TQRect</a> view( margin, margin, metrics.<a href="ntqpaintdevicemetrics.html#width">width</a>() - 2*margin, metrics.<a href="ntqpaintdevicemetrics.html#height">height</a>() - 2*margin );
-<a name="x1581"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( TQStyleSheet::<a href="ntqstylesheet.html#convertFromPlainText">convertFromPlainText</a>(e-&gt;<a href="ntqtextedit.html#text">text</a>()),
+<a name="x1581"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( TQStyleSheet::<a href="ntqstylesheet.html#convertFromPlainText">convertFromPlainText</a>(e-&gt;<a href="tqtextedit.html#text">text</a>()),
TQFont(),
-<a name="x1582"></a> e-&gt;<a href="ntqtextedit.html#context">context</a>(),
-<a name="x1587"></a> e-&gt;<a href="ntqtextedit.html#styleSheet">styleSheet</a>(),
-<a name="x1584"></a> e-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
+<a name="x1582"></a> e-&gt;<a href="tqtextedit.html#context">context</a>(),
+<a name="x1587"></a> e-&gt;<a href="tqtextedit.html#styleSheet">styleSheet</a>(),
+<a name="x1584"></a> e-&gt;<a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
view.<a href="ntqrect.html#height">height</a>() );
<a name="x1578"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &amp;p, view.<a href="ntqrect.html#width">width</a>() );
int page = 1;
@@ -349,7 +349,7 @@ void <a name="f465"></a>ApplicationWindow::print()
<a name="x1592"></a>void ApplicationWindow::<a href="tqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a>* ce )
{
-<a name="x1583"></a> if ( !e-&gt;<a href="ntqtextedit.html#isModified">isModified</a>() ) {
+<a name="x1583"></a> if ( !e-&gt;<a href="tqtextedit.html#isModified">isModified</a>() ) {
<a name="x1545"></a> ce-&gt;<a href="qcloseevent.html#accept">accept</a>();
return;
}