diff options
Diffstat (limited to 'doc/html/scribble-example.html')
-rw-r--r-- | doc/html/scribble-example.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/scribble-example.html b/doc/html/scribble-example.html index 0d39f4c04..aef0d91b5 100644 --- a/doc/html/scribble-example.html +++ b/doc/html/scribble-example.html @@ -55,7 +55,7 @@ in the canvas with different pens and save the result as picture. #include <<a href="qpoint-h.html">ntqpoint.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> #include <<a href="tqwidget-h.html">tqwidget.h</a>> -#include <<a href="qstring-h.html">ntqstring.h</a>> +#include <<a href="tqstring-h.html">tqstring.h</a>> #include <<a href="qpointarray-h.html">ntqpointarray.h</a>> class TQMouseEvent; @@ -83,7 +83,7 @@ public: int penWidth() <a name="x905"></a> { return pen.<a href="ntqpen.html#width">width</a>(); } - void save( const <a href="ntqstring.html">TQString</a> &filename, const <a href="ntqstring.html">TQString</a> &format ); + void save( const <a href="tqstring.html">TQString</a> &filename, const <a href="tqstring.html">TQString</a> &format ); void clearScreen(); @@ -154,7 +154,7 @@ protected slots: #include <<a href="qfiledialog-h.html">ntqfiledialog.h</a>> #include <<a href="qcursor-h.html">ntqcursor.h</a>> #include <<a href="tqimage-h.html">tqimage.h</a>> -#include <<a href="qstrlist-h.html">ntqstrlist.h</a>> +#include <<a href="tqstrlist-h.html">tqstrlist.h</a>> #include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> #include <<a href="qintdict-h.html">ntqintdict.h</a>> @@ -173,10 +173,10 @@ const bool no_writing = FALSE; #endif } -void <a name="f339"></a>Canvas::save( const <a href="ntqstring.html">TQString</a> &filename, const <a href="ntqstring.html">TQString</a> &format ) +void <a name="f339"></a>Canvas::save( const <a href="tqstring.html">TQString</a> &filename, const <a href="tqstring.html">TQString</a> &format ) { if ( !no_writing ) -<a name="x942"></a> buffer.save( filename, format.<a href="ntqstring.html#upper">upper</a>() ); +<a name="x942"></a> buffer.save( filename, format.<a href="tqstring.html#upper">upper</a>() ); } void <a name="f340"></a>Canvas::clearScreen() @@ -283,18 +283,18 @@ void <a name="f342"></a>Scribble::slotSave() <a name="x924"></a> formats.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( TRUE ); for ( unsigned int i = 0; i < TQImageIO::<a href="tqimageio.html#outputFormats">outputFormats</a>().count(); i++ ) { -<a name="x911"></a> <a href="ntqstring.html">TQString</a> str = TQString( TQImageIO::<a href="tqimageio.html#outputFormats">outputFormats</a>().at( i ) ); -<a name="x912"></a> formats.<a href="ntqintdict.html#insert">insert</a>( menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( TQString( "%1..." ).arg( str ) ), new <a href="ntqstring.html">TQString</a>( str ) ); +<a name="x911"></a> <a href="tqstring.html">TQString</a> str = TQString( TQImageIO::<a href="tqimageio.html#outputFormats">outputFormats</a>().at( i ) ); +<a name="x912"></a> formats.<a href="ntqintdict.html#insert">insert</a>( menu-><a href="ntqmenudata.html#insertItem">insertItem</a>( TQString( "%1..." ).arg( str ) ), new <a href="tqstring.html">TQString</a>( str ) ); } <a name="x953"></a> menu-><a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); <a name="x947"></a><a name="x946"></a><a name="x923"></a> int id = menu-><a href="ntqpopupmenu.html#exec">exec</a>( bSave-><a href="tqwidget.html#mapToGlobal">mapToGlobal</a>( TQPoint( 0, bSave-><a href="tqwidget.html#height">height</a>() + 1 ) ) ); if ( id != -1 ) { - <a href="ntqstring.html">TQString</a> format = *formats[ id ]; + <a href="tqstring.html">TQString</a> format = *formats[ id ]; -<a name="x941"></a> <a href="ntqstring.html">TQString</a> filename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( <a href="ntqstring.html#TQString-null">TQString::null</a>, TQString( "*.%1" ).arg( format.<a href="ntqstring.html#lower">lower</a>() ), this ); - if ( !filename.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) +<a name="x941"></a> <a href="tqstring.html">TQString</a> filename = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString( "*.%1" ).arg( format.<a href="tqstring.html#lower">lower</a>() ), this ); + if ( !filename.<a href="tqstring.html#isEmpty">isEmpty</a>() ) canvas->save( filename, format ); } |