Bug 316591 - Contact list does not show settings-button, if its to narrow
Summary: Contact list does not show settings-button, if its to narrow
Status: CONFIRMED
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: contactlist (show other bugs)
Version: git-latest
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-12 12:25 UTC by m4yer+zeug
Modified: 2021-03-09 07:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m4yer+zeug 2013-03-12 12:25:32 UTC
If the contact list is to narrow, it does not show the settings-button any more (see screenshots)

Screenshots:
wide enough:
http://share.minad.de/gD4.png

decreasing window size:
http://share.minad.de/4cg.png

further decreasing:
https://share.minad.de/dl.php?i=cDSL.png

Reproducible: Always

Steps to Reproduce:
1. Decrease window size
Actual Results:  
settings-button is gone

Expected Results:  
settings-button should be in context-menu
Comment 1 Martin Klapetek 2013-03-12 13:36:05 UTC
Thanks for the report.

This happens because the settings button is QToolButton while the rest is QActions and apparently QToolBar is not happy with that. I'm not sure how to properly fix this, inserting QMenu::menuAction() instead of the toolbutton works too, but it inserts a button and a dropdown button, that are visually separated. Furthermore the button itself does nothing (the dropdown button works), it does emit triggered() while being clicked, so it could be just connected to a slot and the menu popped up from that slot, but we'd need to know the position of the popup and that's no easy task (50 lines of ifs and coords mapping in Qt's source, I don't feel like copying that).

Does anyone know if this can be fixed using QToolButton?
Comment 2 Martin Klapetek 2014-03-14 18:18:46 UTC
The core of the problem lies in the docs:

"When a QToolBar is not a child of a QMainWindow, it loses the ability to populate the extension pop up with widgets added to the toolbar using addWidget(). Please use widget actions created by inheriting QWidgetAction and implementing QWidgetAction::createWidget() instead."

So our options are either
1) Make the QToolBar child of QMainWindow (might be tricky)
2) Create a special QWidgetAction class which reimplements QWidgetAction::createWidget() (easier imho, but longer to finish)
Comment 3 soee 2014-11-07 14:04:38 UTC
We have it in version 0.9. I struggled few minutes how to find the settings button and it was really annoying, till i resized the window :)

Would love to see some fix for this. Thanks!
Comment 4 Alexander Potashev 2015-05-05 15:37:34 UTC
What do you think about moving the Configure button up, next to the presence status?
Comment 5 soee 2015-05-23 10:42:34 UTC
Hard to say, VDG team should take a look at this. This button won't be used to often. If you configure app once, than you won't look there any soon. But situation when it is hidden and can't be easily located might be frustrated :)
Comment 6 Justin Zobel 2021-03-09 07:26:34 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.