2012-01-31 14:19 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtgui/qth/QWidget.qth
    + Restored: PaintEvent = YES

  * contrib/hbqt/hbmk2_qt.hbs
    + Implemented: Style-sheets working when current class 
       is actually a sub-class. Tip and code snippet 
       forwarded by Francesco Perillo, many thanks.
This commit is contained in:
Pritpal Bedi
2012-01-31 22:26:40 +00:00
parent 5b1e2b4466
commit aadce7770a
3 changed files with 15 additions and 1 deletions

View File

@@ -16,6 +16,15 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-01-31 14:19 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/QWidget.qth
+ Restored: PaintEvent = YES
* contrib/hbqt/hbmk2_qt.hbs
+ Implemented: Style-sheets working when current class
is actually a sub-class. Tip and code snippet
forwarded by Francesco Perillo, many thanks.
2012-01-31 20:04 UTC+0100 Viktor Szakats (harbour syenar.net)
* src/rdd/usrrdd/rdds/arrayrdd.prg
* contrib/gtwvg/wvgax.prg

View File

@@ -1751,6 +1751,7 @@ METHOD HbQtSource:buildExtendedHeader()
aadd( txt_, '' )
aadd( txt_, '#include <QtGui/' + cObj + '>' )
IF ::lPaintEvent
aadd( txt_, '#include <QtGui/QStyleOption>' )
aadd( txt_, '#include <QtGui/QPainter>' )
aadd( txt_, '#include <QtGui/QPaintEvent>' )
ENDIF
@@ -1866,6 +1867,10 @@ METHOD HbQtSource:buildExtendedSource( t_ )
AAdd( txt_, ' }' )
AAdd( txt_, ' if( ! bEventHandelled )' )
AAdd( txt_, ' {' )
AAdd( txt_, ' QStyleOption opt;' )
AAdd( txt_, ' opt.init( this );' )
AAdd( txt_, ' QPainter p( this );' )
AAdd( txt_, ' style()->drawPrimitive( QStyle::PE_Widget, &opt, &p, this );' )
AAdd( txt_, ' ' + cObj + '::paintEvent( event );' )
AAdd( txt_, ' }' )
AAdd( txt_, '}' )

View File

@@ -15,7 +15,7 @@
Inherit = QObject, QPaintDevice
New = pParent, nFlags
PaintEvent =
PaintEvent = YES
</CLASS>
<CODE>