summaryrefslogtreecommitdiffstats
path: root/doc/html/qaction-application-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qaction-application-example.html')
-rw-r--r--doc/html/qaction-application-example.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/qaction-application-example.html b/doc/html/qaction-application-example.html
index 5b441bf46..a04ca8e77 100644
--- a/doc/html/qaction-application-example.html
+++ b/doc/html/qaction-application-example.html
@@ -82,7 +82,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;
};
@@ -110,7 +110,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;
@@ -118,7 +118,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;
@@ -232,7 +232,7 @@ private:
// create and define the central widget
- 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 );
@@ -271,9 +271,9 @@ void <a name="f378"></a>ApplicationWindow::load( const <a href="tqstring.html">T
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="x1171"></a><a name="x1168"></a> e-&gt;<a href="ntqtextedit.html#setText">setText</a>( ts.<a href="ntqtextstream.html#read">read</a>() );
-<a name="x1167"></a> e-&gt;<a href="ntqtextedit.html#setModified">setModified</a>( FALSE );
+ <a href="tqtextstream.html">TQTextStream</a> ts( &amp;f );
+<a name="x1171"></a><a name="x1168"></a> e-&gt;<a href="tqtextedit.html#setText">setText</a>( ts.<a href="tqtextstream.html#read">read</a>() );
+<a name="x1167"></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 );
}
@@ -286,7 +286,7 @@ void <a name="f379"></a>ApplicationWindow::save()
return;
}
-<a name="x1170"></a> <a href="tqstring.html">TQString</a> text = e-&gt;<a href="ntqtextedit.html#text">text</a>();
+<a name="x1170"></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),
@@ -294,11 +294,11 @@ void <a name="f379"></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 );
@@ -334,11 +334,11 @@ void <a name="f381"></a>ApplicationWindow::print()
<a name="x1142"></a> int dpiy = metrics.<a href="ntqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>();
int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins
<a name="x1143"></a><a name="x1141"></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="x1163"></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="x1163"></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="x1164"></a> e-&gt;<a href="ntqtextedit.html#context">context</a>(),
-<a name="x1169"></a> e-&gt;<a href="ntqtextedit.html#styleSheet">styleSheet</a>(),
-<a name="x1166"></a> e-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
+<a name="x1164"></a> e-&gt;<a href="tqtextedit.html#context">context</a>(),
+<a name="x1169"></a> e-&gt;<a href="tqtextedit.html#styleSheet">styleSheet</a>(),
+<a name="x1166"></a> e-&gt;<a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
view.<a href="ntqrect.html#height">height</a>() );
<a name="x1160"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &amp;p, view.<a href="ntqrect.html#width">width</a>() );
int page = 1;
@@ -362,7 +362,7 @@ void <a name="f381"></a>ApplicationWindow::print()
<a name="x1173"></a>void ApplicationWindow::<a href="tqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a>* ce )
{
-<a name="x1165"></a> if ( !e-&gt;<a href="ntqtextedit.html#isModified">isModified</a>() ) {
+<a name="x1165"></a> if ( !e-&gt;<a href="tqtextedit.html#isModified">isModified</a>() ) {
<a name="x1128"></a> ce-&gt;<a href="qcloseevent.html#accept">accept</a>();
return;
}