diff options
Diffstat (limited to 'doc/html/simple-application-example.html')
-rw-r--r-- | doc/html/simple-application-example.html | 30 |
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 <<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>> @@ -117,7 +117,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>> @@ -218,7 +218,7 @@ private: help-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "What's &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-><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 ); @@ -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( &f ); -<a name="x1589"></a><a name="x1586"></a> e-><a href="ntqtextedit.html#setText">setText</a>( ts.<a href="ntqtextstream.html#read">read</a>() ); -<a name="x1585"></a> e-><a href="ntqtextedit.html#setModified">setModified</a>( FALSE ); + <a href="tqtextstream.html">TQTextStream</a> ts( &f ); +<a name="x1589"></a><a name="x1586"></a> e-><a href="tqtextedit.html#setText">setText</a>( ts.<a href="tqtextstream.html#read">read</a>() ); +<a name="x1585"></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 ); } @@ -273,7 +273,7 @@ void <a name="f463"></a>ApplicationWindow::save() return; } -<a name="x1588"></a> <a href="tqstring.html">TQString</a> text = e-><a href="ntqtextedit.html#text">text</a>(); +<a name="x1588"></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), @@ -281,11 +281,11 @@ void <a name="f463"></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 ); @@ -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-><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-><a href="tqtextedit.html#text">text</a>()), TQFont(), -<a name="x1582"></a> e-><a href="ntqtextedit.html#context">context</a>(), -<a name="x1587"></a> e-><a href="ntqtextedit.html#styleSheet">styleSheet</a>(), -<a name="x1584"></a> e-><a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(), +<a name="x1582"></a> e-><a href="tqtextedit.html#context">context</a>(), +<a name="x1587"></a> e-><a href="tqtextedit.html#styleSheet">styleSheet</a>(), +<a name="x1584"></a> e-><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>( &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-><a href="ntqtextedit.html#isModified">isModified</a>() ) { +<a name="x1583"></a> if ( !e-><a href="tqtextedit.html#isModified">isModified</a>() ) { <a name="x1545"></a> ce-><a href="qcloseevent.html#accept">accept</a>(); return; } |