[bt-devel] Optionsdialog

bt-devel@crosswire.org bt-devel@crosswire.org
Sat, 04 Mar 2000 01:44:16 GMT


Joachim Ansorg writes:

> I changed the icons.
> The new KDE2 CVS sources use ListIcon to load list icons, so I changed the code.

Thanks for clearing that up.

Can anyone help me on 2 other things:

First, in the save method for colors, I create a tempColor object and set
it to each color, such as:

*tempColor = xxxColorButton->color();
config->writeEntry("xxx", tempColor->name());

Can this be combined to avoid using an explicit temp variable.  Would there
be a benefit to doing it?

Also, in defining the KFontChooser, I want to use the first and last
arguments of the constructor, and let the rest default.  How would I do
this?  I have tried various permutations in trying to specify the proper
values (the booleans are easy, the QStringList seems to be my problem).  I
am hoping to shrink the size of the overall dialog by only displaying 4 or
5 fonts at a time.

--
   Darwin Gregory

   Help California define marriage the way God does...
   Support Proposition 22!   Vote YES on Prop 22!