[Kget] Fwd: Re: [PATCH] New Drop-Target-Download-Dialog

Javier Goday jgoday at gmail.com
Tue Oct 2 17:52:05 CEST 2007


well, i would do this way
1.- Create a NewTransferWidgetType enum as this
class NewTransferWidget : QDialog {
public:
     enum NewTransferWidgetType {
          Single,
          Multiple
     }

and change the NewTransferWidget constructor to receive a QWidget
*parent, and a NewTransferWidgetType who determines in the ctor which
widget add to the layout
an urlRequester or a QListWidget or KListWidget

2.- in the void NewTransferDialog::showNewTransferDialog(QString url)
or (QList urls) method

only changes the call to the NewTransferWidget constructor, don't call
to the getSaveDirectoryFromExceptions if the type is Multiple ...
and when the dialog  is ok, then check the widget type and the rest is
history ...

What do you think ??

of course this way is only  IMHO :)
Cheers



On 10/2/07, Lukas Appelhans <l.appelhans at gmx.de> wrote:
> So, everything compiles correctly, but don't works... something's wrong abou
> QList->isEmpty(), but don't know what :-(
> look at the errors file in the atttachment^^
>
> Except from this, when I disable the "for(...; ;...)" in void
> NewTransferDialog::showNewTransferDialog(KUrl::List list), then everything
> works fine, QListWidget will be created and one Url added...
>
> Do you have any ideas about this??
>
>
> Cheers boom1992
>


More information about the Kget mailing list