andrew-bibb / cmst

QT GUI for Connman
174 stars 37 forks source link

Tray menu renders with a strange dashed line #170

Closed Coacher closed 7 years ago

Coacher commented 7 years ago

screenshot_20170707_002853

andrew-bibb commented 7 years ago

The dashed line indicates that this is a tear off menu. If you click the line the menu will detach and you can move it around you desktop wherever you want.

Coacher commented 7 years ago

I see. Do you know how I can disable this feature?

andrew-bibb commented 7 years ago

Your best bet would be to just not use the feature, it cannot be disabled within the program. Adding a user control to enable or disable it would be so low on my priority list that it would likely never get done.

If you want before you build the program go to cmst/apps/cmstapp/code/controlbox.cpp and change the "true" in line 2484 (current code base) to "false"

trayiconmenu->setTearOffEnabled(true);

Coacher commented 7 years ago

I hoped there is a way to disable these tear off menus via qt theme. Using your suggestion I can get rid of this dashed line. Thank you!