2012-09-13 14:27 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbxbp/toolbar.prg
    + Added: to send a QIcon() along the text for a toolbar button.

  * contrib/hbxbp/treeview.prg
    ! Minor. :setCaption() was not setting :caption value.
This commit is contained in:
Pritpal Bedi
2012-09-13 21:30:15 +00:00
parent 62f1c44f96
commit d6dd12934d
3 changed files with 11 additions and 2 deletions

View File

@@ -16,6 +16,13 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-09-13 14:27 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbxbp/toolbar.prg
+ Added: to send a QIcon() along the text for a toolbar button.
* contrib/hbxbp/treeview.prg
! Minor. :setCaption() was not setting :caption value.
2012-09-13 16:02 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* harbour/src/rtl/hbbffnc.c
* harbour/include/harbour.hbx

View File

@@ -257,8 +257,10 @@ METHOD XbpToolbar:addItem( cCaption, xImage, xDisabledImage, xHotImage, cDLL, nS
oBtn:oAction := QAction( ::oWidget )
oBtn:oAction:setText( cCaption )
IF valtype( xImage ) == "C"
IF HB_ISCHAR( xImage )
oBtn:oAction:setIcon( QIcon( xImage ) )
ELSEIF HB_ISOBJECT( xImage )
oBtn:oAction:setIcon( xImage )
ENDIF
ENDIF

View File

@@ -373,7 +373,7 @@ CLASS XbpTreeViewItem INHERIT DataRef
METHOD expand( lExpand ) INLINE ::oWidget:setExpanded( lExpand )
METHOD isExpanded() INLINE ::oWidget:isExpanded()
METHOD setCaption( cCaption ) INLINE ::oWidget:setText( 0, cCaption )
METHOD setCaption( cCaption ) INLINE ::caption := cCaption, ::oWidget:setText( 0, cCaption )
METHOD setImage( xIcon )
METHOD setExpandedImage( nResIdoBitmap )
METHOD setMarkedImage( nResIdoBitmap )