diff options
Diffstat (limited to 'doc/html/showimg-example.html')
| -rw-r--r-- | doc/html/showimg-example.html | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/doc/html/showimg-example.html b/doc/html/showimg-example.html index df1bce029..c44642cf7 100644 --- a/doc/html/showimg-example.html +++ b/doc/html/showimg-example.html @@ -152,7 +152,7 @@ private slots: #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="tqlabel-h.html">tqlabel.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include <<a href="tqclipboard-h.html">tqclipboard.h</a>> @@ -194,7 +194,7 @@ private slots: si = file-><a href="tqmenudata.html#insertItem">insertItem</a>( "Save image", saveimage ); sp = file-><a href="tqmenudata.html#insertItem">insertItem</a>( "Save pixmap", savepixmap ); <a name="x1328"></a> file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="tqmenudata.html#insertItem">insertItem</a>( "E&xit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( "E&xit", tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()), CTRL+Key_Q ); edit = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar ); menubar-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Edit", edit ); @@ -230,7 +230,7 @@ private slots: options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); ss = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Smooth scaling" ); cc = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Use color context" ); -<a name="x1309"></a> if ( TQApplication::<a href="ntqapplication.html#colorSpec">colorSpec</a>() == TQApplication::ManyColor ) +<a name="x1309"></a> if ( TQApplication::<a href="tqapplication.html#colorSpec">colorSpec</a>() == TQApplication::ManyColor ) <a name="x1331"></a> options-><a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( cc, FALSE ); <a name="x1342"></a> options-><a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); setMenuItemFlags(); @@ -481,7 +481,7 @@ bool <a name="f413"></a>ImageViewer::loadImage( const <a href="tqstring.html">TQ filename = fileName; bool ok = FALSE; if ( !filename.isEmpty() ) { -<a name="x1312"></a> TQApplication::<a href="ntqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time +<a name="x1312"></a> TQApplication::<a href="tqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time ok = image.load(filename, 0); pickx = -1; clickx = -1; @@ -506,7 +506,7 @@ bool <a name="f413"></a>ImageViewer::loadImage( const <a href="tqstring.html">TQ pm.resize(0,0); // couldn't load image <a href="tqwidget.html#update">update</a>(); } -<a name="x1311"></a> TQApplication::<a href="ntqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>(); // restore original cursor +<a name="x1311"></a> TQApplication::<a href="tqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>(); // restore original cursor } updateStatus(); setMenuItemFlags(); @@ -530,7 +530,7 @@ bool <a name="f414"></a>ImageViewer::reconvertImage() <a name="x1338"></a> painter.<a href="tqpainter.html#eraseRect">eraseRect</a>(0, menubar-><a href="tqmenubar.html#heightForWidth">heightForWidth</a>( <a href="tqwidget.html#width">width</a>() ), width(), height()); } - TQApplication::<a href="ntqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time + TQApplication::<a href="tqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time if ( pm.convertFromImage(image, conversion_flags) ) { pmScaled = TQPixmap(); @@ -542,7 +542,7 @@ bool <a name="f414"></a>ImageViewer::reconvertImage() } updateStatus(); setMenuItemFlags(); - TQApplication::<a href="ntqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>(); // restore original cursor + TQApplication::<a href="tqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>(); // restore original cursor if ( useColorContext() ) <a name="x1315"></a> TQColor::<a href="tqcolor.html#leaveAllocContext">leaveAllocContext</a>(); @@ -571,7 +571,7 @@ void <a name="f417"></a>ImageViewer::scale() if ( image.isNull() ) return; - TQApplication::<a href="ntqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time + TQApplication::<a href="tqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time if ( <a href="tqwidget.html#width">width</a>() == pm.width() && h == pm.height() ) { // no need to scale if widget pmScaled = pm; // size equals pixmap size @@ -586,7 +586,7 @@ void <a name="f417"></a>ImageViewer::scale() pmScaled = pm.xForm( m ); // create scaled pixmap } } - TQApplication::<a href="ntqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>(); // restore original cursor + TQApplication::<a href="tqapplication.html#restoreOverrideCursor">restoreOverrideCursor</a>(); // restore original cursor } /* @@ -735,14 +735,14 @@ void <a name="f423"></a>ImageViewer::rot180() void <a name="f424"></a>ImageViewer::copy() { #ifndef TQT_NO_MIMECLIPBOARD -<a name="x1308"></a> TQApplication::<a href="ntqapplication.html#clipboard">clipboard</a>()->setImage(image); // Less information loss +<a name="x1308"></a> TQApplication::<a href="tqapplication.html#clipboard">clipboard</a>()->setImage(image); // Less information loss #endif } void <a name="f425"></a>ImageViewer::paste() { #ifndef TQT_NO_MIMECLIPBOARD - <a href="tqimage.html">TQImage</a> p = TQApplication::<a href="ntqapplication.html#clipboard">clipboard</a>()->image(); + <a href="tqimage.html">TQImage</a> p = TQApplication::<a href="tqapplication.html#clipboard">clipboard</a>()->image(); <a name="x1322"></a> if ( !p.<a href="tqimage.html#isNull">isNull</a>() ) { filename = "pasted"; setImage(p); @@ -823,26 +823,26 @@ void <a name="f431"></a>ImageViewer::toBitDepth(int d) #include "showimg.h" #include "imagefip.h" -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include <<a href="tqimage-h.html">tqimage.h</a>> int main( int argc, char **argv ) { if ( argc > 1 && TQString(argv[1]) == "-m" ) { -<a name="x1361"></a> TQApplication::<a href="ntqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::ManyColor ); +<a name="x1361"></a> TQApplication::<a href="tqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::ManyColor ); argc--; argv++; } else if ( argc > 1 && TQString(argv[1]) == "-n" ) { - TQApplication::<a href="ntqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::NormalColor ); + TQApplication::<a href="tqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::NormalColor ); argc--; argv++; } else { - TQApplication::<a href="ntqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::CustomColor ); + TQApplication::<a href="tqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::CustomColor ); } - <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); + <a href="tqapplication.html">TQApplication</a> a( argc, argv ); ImageIconProvider iip; <a name="x1362"></a> TQFileDialog::<a href="tqfiledialog.html#setIconProvider">setIconProvider</a>( &iip ); @@ -864,9 +864,9 @@ int main( int argc, char **argv ) } } - TQObject::<a href="tqobject.html#connect">connect</a>(tqApp, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>())); + TQObject::<a href="tqobject.html#connect">connect</a>(tqApp, TQ_SIGNAL(<a href="tqapplication.html#lastWindowClosed">lastWindowClosed</a>()), tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>())); - return a.<a href="ntqapplication.html#exec">exec</a>(); + return a.<a href="tqapplication.html#exec">exec</a>(); } </pre> |
