New Widget: KFontRequester

Carsten Pfeiffer carpdjih at mailbox.tu-berlin.de
Thu May 8 16:30:22 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----

On Thursday 08 May 2003 05:43, Nadeem Hasan wrote:

Hiya,

> I have created a new widget KFontRequester. It contains a QLabel and a
> QPushButton. Its similar in look and functionality to the font input widget
> in kcm_fonts. We already have 2 font related widgets, KFontChooser and
> KFontDialog. This widget provides a simpler and more compact interface. The
> .cpp and .h files are linked below. Comments are welcome.
>
> I have also modified kcm_fonts to make use of this widget. That patch is
> linked below too.

Looks good to me. Only missing is a d-pointer and maybe accessors to the label 
and the pushbutton. And maybe make the mutators (setFont(), setTitle() and 
setSampleText()) virtual so that subclassing is possible (even though no 
direct need for this is apparent).

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPrp4DqWgYMJuwmZtAQGjogf/aCqGAFmYkD4ofJNYm72IcK8ojU1mzyeu
yu9+EHg8TvK0iB0NMwk65ZsKqLkJ8mN4bwPGiO1K0PJPV6cCZu2wUWz1XfvzTdoS
6kBeCqKuvuaP3+K/FfUNpUp3vewJojBBCwzsOxdm7HSEA45exhFZ4EbHeGR1pFLO
awlEWozLDveRj6gvhLDfAXXRFZrorc5kwJh9+5hTg4QpPZl7eUpbnvg4g8136wdX
Z9tGyqdGBU1y+jwsTnhDmN8jyqoNoDpt8vbjFb0fO65YczUxXkqlMWquV/A0Fqdt
4VZqo3ACQxDymmNCsKl4DTU/ipi99+FsnxgrkMMXCESo4S9g0hipOA==
=baxC
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list