diff options
Diffstat (limited to 'doc/html/qaction-application-example.html')
-rw-r--r-- | doc/html/qaction-application-example.html | 30 |
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 <<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>> #include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> #include <<a href="qmenubar-h.html">ntqmenubar.h</a>> -#include <<a href="qtextedit-h.html">ntqtextedit.h</a>> +#include <<a href="tqtextedit-h.html">tqtextedit.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> #include <<a href="qfiledialog-h.html">ntqfiledialog.h</a>> #include <<a href="qstatusbar-h.html">ntqstatusbar.h</a>> @@ -118,7 +118,7 @@ private: #include <<a href="qprinter-h.html">ntqprinter.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include <<a href="qaccel-h.html">ntqaccel.h</a>> -#include <<a href="qtextstream-h.html">ntqtextstream.h</a>> +#include <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <<a href="qpaintdevicemetrics-h.html">ntqpaintdevicemetrics.h</a>> #include <<a href="qwhatsthis-h.html">ntqwhatsthis.h</a>> @@ -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-><a href="tqwidget.html#setFocus">setFocus</a>(); <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( e ); <a href="ntqmainwindow.html#statusBar">statusBar</a>()->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( &f ); -<a name="x1171"></a><a name="x1168"></a> e-><a href="ntqtextedit.html#setText">setText</a>( ts.<a href="ntqtextstream.html#read">read</a>() ); -<a name="x1167"></a> e-><a href="ntqtextedit.html#setModified">setModified</a>( FALSE ); + <a href="tqtextstream.html">TQTextStream</a> ts( &f ); +<a name="x1171"></a><a name="x1168"></a> e-><a href="tqtextedit.html#setText">setText</a>( ts.<a href="tqtextstream.html#read">read</a>() ); +<a name="x1167"></a> e-><a href="tqtextedit.html#setModified">setModified</a>( FALSE ); <a href="tqwidget.html#setCaption">setCaption</a>( fileName ); <a href="ntqmainwindow.html#statusBar">statusBar</a>()->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-><a href="ntqtextedit.html#text">text</a>(); +<a name="x1170"></a> <a href="tqstring.html">TQString</a> text = e-><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>()->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( &f ); + <a href="tqtextstream.html">TQTextStream</a> t( &f ); t << text; f.<a href="ntqfile.html#close">close</a>(); - e-><a href="ntqtextedit.html#setModified">setModified</a>( FALSE ); + e-><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-><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-><a href="tqtextedit.html#text">text</a>()), TQFont(), -<a name="x1164"></a> e-><a href="ntqtextedit.html#context">context</a>(), -<a name="x1169"></a> e-><a href="ntqtextedit.html#styleSheet">styleSheet</a>(), -<a name="x1166"></a> e-><a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(), +<a name="x1164"></a> e-><a href="tqtextedit.html#context">context</a>(), +<a name="x1169"></a> e-><a href="tqtextedit.html#styleSheet">styleSheet</a>(), +<a name="x1166"></a> e-><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>( &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-><a href="ntqtextedit.html#isModified">isModified</a>() ) { +<a name="x1165"></a> if ( !e-><a href="tqtextedit.html#isModified">isModified</a>() ) { <a name="x1128"></a> ce-><a href="qcloseevent.html#accept">accept</a>(); return; } |