[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Augmenting KFileDialog
From:       Florent Pillet <florent.pillet () opteway ! com>
Date:       2001-02-23 15:28:24
[Download RAW message or body]

On Friday 23 February 2001 15:17, Michael Jarrett wrote:
> This REALLY needs to be changed, I agree. While binary compatability is
> an issue, maybe the best solution would be to add some accessors to some
> of the more important layouts?
>
> I am working on some tweaks for the file dialog anyways, so we'll see.

You can actually get the layout. The problem is that you have to guess what 
kind of layout it is, or pray to obtain the results that you want.
Here is what I do in my code:

KFileDialog fd (QString::null, QString::null, this, NULL,
           i18n ("Select a profiling results file"));
QWidget *w = fd.mainWidget ();
QLayout *layout = w->layout ();
QHBoxLayout *hl = new QHBoxLayout (layout);
hl->add (new QLabel (i18n ("Text File Format:"), w));
hl->addSpacing (10);
QButtonGroup *bg = new QHButtonGroup (w);
bg->setRadioButtonExclusive (true);
QRadioButton *fmtGPROF = new QRadioButton (i18n ("GNU gprof  "), bg);
QRadioButton *fmtFNCCHECK = new QRadioButton (i18n ("Function Check  "), bg);
if (!fmtGPROF->isOn ())
    fmtGPROF->toggle ();
hl->add (bg);
hl->addStretch ();
fd.exec();

-- 
Florent Pillet, Software Architect. e-mail: fpillet@opteway.com
opt[e]way S.A., 2881 route des cretes, BP 308
06906 Sophia Antipolis Cedex, France
Phone: +33 4 92 95 26 13 - Fax: +33 4 92 95 26 03
http://www.opteway.com/
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic