Special QPushButton class.
This class is a derivative of QPushButton designed specifically for use with pixmaps drawn by a PixData object. The size of each PixButton is identical to the size of the PixData object associated with it.I'm sure there's probably a better way to implement this, but this was not only my first attempt at a Qt widget, but also my first attempt at C++!
The first argument is a RawPixData structure, which
bDataInit() converts to a PixData object, rescaling it
to
You need to call this if you change any of the properties of a
PixButton for those changes to appear. For example, if
you changed the background color of a PixButton, you'd
need to do a bRepaint().
PixButton( QWidget *parent, RawPixData rawdat, float scale=1.0 )
void bRescale( float scale )
void bDataInit( RawPixData rawdat, float scale=1.0 )
void bRepaint(void)
QPixmap b_pm
PixData* b_pd
Copyright 1997 by John Weiss [John.Weiss@colorado.edu]
"generated by doc++"?! More like mangled generated by doc++