Filter combobox is really ugly on mac.

Submitted by pasnox on 2009-09-28

I dunno what u did with the menu, but on mac it's terribly unusable ( all version of WI are impacted if i recall correctly ).
When the combobox popup 99% of the time we can only see on line of the items, we need to scroll and scrolling is buggy too, many times it scroll but no items appear.
We need to click many time in the combobox to have correct result.
Please fix it.

WebIssues has a custom implementation of combo box with separators which apparently is not compatible with Mac. Interestingly, Qt recently introduced separators in combo boxes, but it didn't work too well so I left my custom implementation. Of course it can be disabled on Mac.

Other than that, does WebIssues work ok? Currently Mac is not officially supported and didn't work quite well (see this thread). I would like to support it, but for that I need someone to test it thoroughly; I would also need someone to generate binary packages for each release.

One important thing that is platform-dependent in WI is default locations of some files (see application.cpp). I'm not sure what are the correct locations for personal application files and temp. application files on Mac. Currently the same defaults are used on Mac and Linux (using the XDG env. variables - not sure if Mac supports them - and defaulting to ~/.local/share and ~/.cache). Also I'm not sure it the relative paths to manual and translations are correct.

Regards,
Michał

Hi Michal,

Could you point me the files i need to edit to try patching the custom combo box for mac ?
Apart some minor bugs, it works exactly like unix/windows version, great job ;)
About settings & cache path, you could eventually take advantage of the QDesktopServices::storagePath() it exists enumerator for cache, temporary path and many others.
Standard path for applications on mac is /Applications it's where we are intended to copy bundles system wide.
About Qt translations and manuals i does not know where to put them, i will investigate.

Minor bugs are :
- Clicking in the system tray icon does not show the main window, i need to explicitly click the dock ( task bar like for mac ) first for it work.
- Binary have no mac icons.
- Fucking combo box :)

I could eventually try fixing all that and sent you patches, or maybe have write access to the svn ?
I can eventually prepare the mac dmg for each release too.

Regards,

EDIT: It may be interesting to update the layouts too, they are too big on mac. Using a margin of 5 and a spacing of 3 ( vertically / horizontally ) would be just fine i think.

--
Monkey Studio IDE, a cross paltform IDE written in Qt.
Support for all relating Qt4 project type (php-qt, pyqt, qmake/c++) with powerfull plugin system.
Assistant & Designer integrated, more infos on the official web page : http://monkeystudio.org

Combo is implemented inwidgets/separatorcombobox.h/cpp.

I wasn't aware of the storagePath() function; unfortunately it's only available since 4.4, but you can peek its implementation on Mac and put it to application.cpp. Manual and translation paths are generally relative to the application executable so it shouldn't matter where it's installed.

The system tray bug looks like a problem with Qt (I'm using plain QSystemTrayIcon). For the binary icon I'd need a .icns file (at least according to http://doc.trolltech.com/4.5/appicon.html).

I gave you access to SVN, I suppose your user name is pasnox :). Thanks a lot for your help!

Regards,
Michał

Thanks ;)

I will try to fix all that shortly.
Btw i doesn't receive an email for svn account , does it have same password that the forum one ?

Regards,

--
Monkey Studio IDE, a cross paltform IDE written in Qt.
Support for all relating Qt4 project type (php-qt, pyqt, qmake/c++) with powerfull plugin system.
Assistant & Designer integrated, more infos on the official web page : http://monkeystudio.org

I fixed most os x bugs/problems.
Please review the code and tell me if i broke something ;)
It could be interresting to have a im address to contact you, like a googletalk/jabber im.

--
Monkey Studio IDE, a cross paltform IDE written in Qt.
Support for all relating Qt4 project type (php-qt, pyqt, qmake/c++) with powerfull plugin system.
Assistant & Designer integrated, more infos on the official web page : http://monkeystudio.org

Is not this thing already fixed months / years ago ?
Can you give us more informations ?

--
Monkey Studio IDE, a cross paltform IDE written in Qt.
Support for all relating Qt4 project type (php-qt, pyqt, qmake/c++) with powerfull plugin system.
Assistant & Designer integrated, more infos on the official web page : http://monkeystudio.org