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 c44642cf7..93f34acd1 100644 --- a/doc/html/showimg-example.html +++ b/doc/html/showimg-example.html @@ -231,8 +231,8 @@ private slots: 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="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 ); +<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(); menubar-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); @@ -247,7 +247,7 @@ private slots: status-><a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::WinPanel | TQFrame::Sunken ); <a name="x1354"></a> status-><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>( <a href="tqwidget.html#fontMetrics">fontMetrics</a>().height() + 4 ); - <a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); + <a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( true ); } ImageViewer::~ImageViewer() @@ -399,12 +399,12 @@ void <a name="f408"></a>ImageViewer::updateStatus() int nalpha=0; for (i=0; i<256; i++) - alpha[i] = FALSE; + alpha[i] = false; for (i=0; i<image.numColors(); i++) { int alevel = image.color(i) >> 24; if (!alpha[alevel]) { - alpha[alevel] = TRUE; + alpha[alevel] = true; nalpha++; } } @@ -473,13 +473,13 @@ void <a name="f412"></a>ImageViewer::openFile() format was unknown it will resize the widget to fit the errorText message (see above) displayed in the current font. - Returns TRUE if the image was successfully loaded. + Returns true if the image was successfully loaded. */ bool <a name="f413"></a>ImageViewer::loadImage( const <a href="tqstring.html">TQString</a>& fileName ) { filename = fileName; - bool ok = FALSE; + bool ok = false; if ( !filename.isEmpty() ) { <a name="x1312"></a> TQApplication::<a href="tqapplication.html#setOverrideCursor">setOverrideCursor</a>( waitCursor ); // this might take time ok = image.load(filename, 0); @@ -515,9 +515,9 @@ bool <a name="f413"></a>ImageViewer::loadImage( const <a href="tqstring.html">TQ bool <a name="f414"></a>ImageViewer::reconvertImage() { - bool success = FALSE; + bool success = false; - if ( image.isNull() ) return FALSE; + if ( image.isNull() ) return false; if ( alloc_context ) { TQColor::<a href="tqcolor.html#destroyAllocContext">destroyAllocContext</a>( alloc_context ); @@ -536,7 +536,7 @@ bool <a name="f414"></a>ImageViewer::reconvertImage() pmScaled = TQPixmap(); scale(); <a href="tqwidget.html#resize">resize</a>( <a href="tqwidget.html#width">width</a>(), height() ); - success = TRUE; // load successful + success = true; // load successful } else { pm.resize(0,0); // couldn't load image } @@ -547,7 +547,7 @@ bool <a name="f414"></a>ImageViewer::reconvertImage() if ( useColorContext() ) <a name="x1315"></a> TQColor::<a href="tqcolor.html#leaveAllocContext">leaveAllocContext</a>(); - return success; // TRUE if loaded OK + return success; // true if loaded OK } bool <a name="f415"></a>ImageViewer::smooth() const @@ -622,10 +622,10 @@ bool <a name="f418"></a>ImageViewer::convertEvent( <a href="tqmouseevent.html">T x = nx; y = ny; updateStatus(); - return TRUE; + return true; } } - return FALSE; + return false; } void ImageViewer::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e ) @@ -647,7 +647,7 @@ void ImageViewer::<a href="tqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a if (convertEvent(e,pickx,picky)) { updateStatus(); <a name="x1334"></a> if ((e-><a href="tqmouseevent.html#state">state</a>()&LeftButton)) { - may_be_other = FALSE; + may_be_other = false; if ( clickx >= 0 && other) { copyFrom(other); } @@ -687,7 +687,7 @@ void <a name="f419"></a>ImageViewer::giveHelp() helptext += "</blockquote>"; helpmsg = new <a href="tqmessagebox.html">TQMessageBox</a>( "Help", helptext, - TQMessageBox::Information, TQMessageBox::Ok, 0, 0, 0, 0, FALSE ); + TQMessageBox::Information, TQMessageBox::Ok, 0, 0, 0, 0, false ); } <a name="x1317"></a> helpmsg-><a href="tqdialog.html#show">show</a>(); <a name="x1352"></a> helpmsg-><a href="tqwidget.html#raise">raise</a>(); @@ -719,17 +719,17 @@ ImageViewer* ImageViewer::other = 0; void <a name="f421"></a>ImageViewer::hFlip() { - setImage(image.mirror(TRUE,FALSE)); + setImage(image.mirror(true,false)); } void <a name="f422"></a>ImageViewer::vFlip() { - setImage(image.mirror(FALSE,TRUE)); + setImage(image.mirror(false,true)); } void <a name="f423"></a>ImageViewer::rot180() { - setImage(image.mirror(TRUE,TRUE)); + setImage(image.mirror(true,true)); } void <a name="f424"></a>ImageViewer::copy() |