2009-12-30 10:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbxbp/xbpmenubar.prg
    ! Removed default style-sheet application which has to be 
      done at .prg level with oXbp:setStyleSheet().

  * contrib/hbxbp/xbptoolbar.prg
    ! Fix to adjust toolbar button size with :imageHeight and :imageWidth.
This commit is contained in:
Pritpal Bedi
2009-12-30 18:40:51 +00:00
parent 1b181e9773
commit a1c89f7f3b
3 changed files with 13 additions and 4 deletions

View File

@@ -17,6 +17,14 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-30 10:35 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbxbp/xbpmenubar.prg
! Removed default style-sheet application which has to be
done at .prg level with oXbp:setStyleSheet().
* contrib/hbxbp/xbptoolbar.prg
! Fix to adjust toolbar button size with :imageHeight and :imageWidth.
2009-12-29 14:34 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapi.h
* harbour/src/common/hbprintf.c

View File

@@ -196,8 +196,6 @@ METHOD xbpMenuBar:create( oParent, aPresParams, lVisible )
::oParent:oMenu := Self
endif
::setStyle()
::oParent:addChild( self )
RETURN Self
@@ -735,7 +733,6 @@ METHOD xbpMenu:create( oParent, aPresParams, lVisible )
::oWidget := QMenu():new( ::pParent )
::oParent:oWidget:addMenu( ::pWidget )
::setStyle()
::oParent:addChild( self )
RETURN Self

View File

@@ -153,6 +153,10 @@ METHOD XbpToolbar:create( oParent, oOwner, aPos, aSize, aPresParams, lVisible )
::oWidget := QToolBar():new( oPar:oWidget )
oPar:oWidget:addToolBar_1( ::pWidget )
IF ::imageWidth > 0 .and. ::imageHeight > 0
::oWidget:setIconSize( QSize():new( ::imageWidth, ::imageHeight ) )
ENDIF
#if 0
/* Assign attributes */
IF ::style == XBPTOOLBAR_STYLE_FLAT
@@ -269,7 +273,7 @@ METHOD XbpToolbar:addItem( cCaption, xImage, xDisabledImage, xHotImage, cDLL, nS
ENDIF
/* Attach codeblock to be triggered */
::Connect( oBtn:oAction:pPtr, "triggered(bool)", {|| ::exeBlock( oBtn ) } )
::Connect( oBtn:oAction, "triggered(bool)", {|| ::exeBlock( oBtn ) } )
/* Attach Action with Toolbar */
::oWidget:addAction( oBtn:oAction )