[vlc-devel] osx / svn 22733 / qt4
Jean-Baptiste Kempf
jb at videolan.org
Sun Oct 21 03:40:23 CEST 2007
On Sat, Oct 20, 2007, Benjamin Sergeant wrote :
> Last, drag'n'dropping files on the icon dock does not load it:
> There is this document:
> http://chaos.troll.no/~ahanssen/devdays2007/BringingYourAppToTheMac.pdf
> that tells how to do that.
>
> I think you just have to add this to the code, and do the right thing
> in the (do your file stuff).
>
> bool MyApplication::event(QEvent *event)
> {
> switch (event->type()) {
> case QEvent::FileOpen:
> QString fileName =
> static_cast<QFileOpenEvent *>(event)->file();
> // ... (do your file stuff)
> return true;
> default:
> return QApplication::event(event);
> }
> }
Patches are welcome, I guess it should go in qt4/qt4.cpp
Again, the Qt4 module hasn't been yet tested/coded/checked on OS-X
Best Regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/
More information about the vlc-devel
mailing list