Am 23.09.2010 um 19:02 schrieb Jean-Marc Lasgouttes:

> Le 23 sept. 10 à 16:16, Stephan Witt a écrit :
>> But I don't like that much.
>> * One has to convert all FileDialogs to non-native to make them consistent 
>> looking.
>> * The result would be that LyX is unlike other applications.
>> * The native FileDialog on Mac is more powerful.
>> (It allows direct mount of network resources.)
> 
> The documentation states:
> 
>  By default, the native file dialog is used unless you use a subclass of 
> QFileDialog
>  that contains the Q_OBJECT macro.
> 
> We do subclass QFileDialog in LyXFileDialog, for the purpose of using 
> buttons. If we did
> not do that, we'd have native dialogs.

Yes, or I omit the line:

 dialog.setOptions(QFileDialog::DontUseNativeDialog);

But then the dialog.setSidebarUrls(urls); call has no effect.
At least I cannot see any result. I'd expect to see one of
the urls at the left of the open dialog.

I googled already for more than a hour for a solution.
(The "sidebar" keyword is a little bit like a wildcard.)
The only thing I could find is a reference to 
"LaunchServices/LSSharedFileList.h".

Now I'll go and read the Qt sources...

Am 23.09.2010 um 19:19 schrieb Rob Oakes:

> I know that this has come up before, but would it be better to use the native 
> file dialogs and add the links to the Templates and Examples directories as 
> shortcuts in the appropriate sub-menu?  

You are right. But how to do it?

> I personally find it a bit annoying to be presented with a non-native dialog 
> that doesn't include the my existing links.
> I think I remember this coming up once before and someone offered a similar 
> solution, but I'm not sure what became of it.

Where and when? I don't know how to find a pointer...

Stephan

Reply via email to