Re: File dialog filters

2016-02-17 Thread Aleix Pol
On Tue, Feb 16, 2016 at 6:27 PM, Christian Dávid wrote: > Hi, > > I noticed that in KMyMoney the filter strings for file dialogs are created "by > hand", e.g. i18n("C++ sources (*.cpp *.cxx *.c++);;All files (*)"). So each of > them must be translated. Alternatively something like > > QMimeDatabas

Re: File dialog filters

2016-02-16 Thread Frederik Schwarzer
Am Dienstag, 16. Februar 2016, 18:27:23 schrieb Christian Dávid: Hi, > I noticed that in KMyMoney the filter strings for file dialogs are > created "by hand", e.g. i18n("C++ sources (*.cpp *.cxx *.c++);;All > files (*)"). So each of them must be translated. Alternatively > something like > > QMi

File dialog filters

2016-02-16 Thread Christian Dávid
Hi, I noticed that in KMyMoney the filter strings for file dialogs are created "by hand", e.g. i18n("C++ sources (*.cpp *.cxx *.c++);;All files (*)"). So each of them must be translated. Alternatively something like QMimeDatabase db; db.mimeTypeForName("text/x-c++src").filterString() could be