[Digikam-devel] extragear/graphics/digikam/digikam

Tom Albers tomalbers at kde.nl
Sun Aug 28 17:33:11 BST 2005


Op zondag 28 augustus 2005 17:54, schreef Renchi Raju:
> Tom Albers wrote:
> > +    KConfig* config=kapp->config();
> > +    config->setGroup("AdvancedSearch Settings");
> > +    int w = config->readNumEntry("Width", 500);
> > +    int h = config->readNumEntry("Height", 500);
> > +    resize(w,h);
> > +
> >      // two columns, one for the rules, one for the preview.
> >      QHBoxLayout* hbox = new QHBoxLayout( page );
> >      hbox->setSpacing( spacingHint() );
> > @@ -150,6 +158,12 @@
> >
> >  SearchAdvancedDialog::~SearchAdvancedDialog()
> >  {
> > +    KConfig* config=kapp->config();
> > +    config->setGroup("AdvancedSearch Settings");
> > +    config->writeEntry("Width", width());
>
> you can just use:
>
> resize(configDialogSize("AdvancedSearch Dialog"));
> and
> saveDialogSize("AdvancedSearch Dialog"));

great! changed.
-- 
http://www.kde.nl | http://www.digikam.org |irc: toma | toma at jabber.kovoks.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1930 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20050828/01b6fdbe/attachment.bin>


More information about the Digikam-devel mailing list