Klaus Basan
8c2d2b0667
Floating dock widget close issue with Qt 5.14.1
...
see https://discordapp.com/channels/539048679160676382/539846348275449887/691667651285483564
2020-06-12 18:42:39 +01:00
Klaus Basan
1d5bbb6747
[5.14.1] UI fixes
...
* restore settings, 1st toogle, then frameless, THEN restore geometry
* closeEvent: toggleFloating, then close
* setOffsetWhenFloating, also pass "frameless", if ever needed
2020-06-12 18:42:30 +01:00
Klaus Basan
4183a67e1f
Dock widget minor style issues
2020-06-12 18:42:30 +01:00
Klaus Basan
62e74092ba
Remove Qt::QueuedConnection from addAction
...
* the parameter is actually the shortcut, not the connection type
* caused odd characters in Qt 5.14.1 context menu
2020-06-12 18:42:30 +01:00
Klaus Basan
2a3fd0e94c
Style
2020-01-07 19:57:28 +00:00
Klaus Basan
53de0d56b9
Style
2020-01-07 19:46:17 +00:00
Klaus Basan
2e6eac45bd
If using SHIFT and navigator button reset to screen center
2019-09-16 22:41:30 +01:00
Klaus Basan
49d1bcbd39
Restore dock widget from settings, fixed frameless widget restore
...
https://discordapp.com/channels/539048679160676382/539486309882789888/593835010566521033
2019-09-16 22:40:07 +01:00
Klaus Basan
6f6a3d8314
Fixed restore dock widget
...
* fixed CDockWidget::restoreFloatingSizeAndPositionDeferred
* CMarginsInput::changedMargins needs direct connection
* reset setting extended
2019-09-16 20:29:50 +01:00
Klaus Basan
ecc203cf2e
Ref T643, disable interactive docking
2019-05-13 11:20:48 +02:00
Klaus Basan
242d6137e5
Avoid crash when accessing the main windget position
2019-05-13 11:20:47 +02:00
Klaus Basan
60b4b08da6
Ref T592, remember size/position where last floating
...
This seems to work more reliable as the Qt mechanism,
but still suffers incorrect positions from time to time.
The floating window opens on to of the main widget,
which is uncritical but still strange why it happens
2019-04-11 22:12:10 +01:00
Klaus Basan
d33b913e62
Ref T592, sometimes using verify or default values instead of ASSERTs
2019-04-11 22:12:10 +01:00
Klaus Basan
097dfe0a24
Ref T592, no more dock widget float/dock to init, init explicitly and when first opened
2019-04-11 22:12:10 +01:00
Klaus Basan
546a8a06d3
Ref T592, improved position handling/failover: use screen position if main widget pos. is unavailable
2019-04-11 22:12:09 +01:00
Klaus Basan
89c5d87c1c
Ref T592, allow to reset floating widget position by pressing SHIFT
...
SHIT mouseclick resets
2019-04-11 22:12:09 +01:00
Klaus Basan
c45592f9b5
Ref T592, minor tweaks
...
* style
* hide wip_CockpitComPanelShowHideBar initially
* sGui guarding
* function initialFloating() public so it can be explicitly called
2019-04-11 22:12:09 +01:00
Klaus Basan
9f0daa58ea
Ref T592, made dock widget related slots Qt::QueuedConnection
...
Rational: the widget emits floating but is not yet in full floating state, so with a direct connection we deal a bit too early with the widget.
Much more stable (hopefully) using queued connection, then all the handling is done if the window is really a floating window.
2019-04-11 22:12:09 +01:00
Klaus Basan
28d9e98e38
Minor dock widget related tweaks
2019-04-11 22:12:08 +01:00
Roland Rossgotterer
338d4d0cdb
Use QScreen instead of QDesktopWidget::screen
2019-04-11 22:11:49 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Klaus Basan
8696f45a7c
Ref T506, make dock widget overlay message compliant
...
* overlay widget can used that functionality directly
* no need to use COverlayMessagesFrame
* added COverlayMessagesDockWidget
2019-02-22 20:35:24 +00:00
Mat Sutcliffe
80308b85d5
Changed QOverload to qOverload.
2019-02-22 20:35:11 +00:00
Mat Sutcliffe
333ea1b8df
Fixed clazy warnings: empty QStringLiteral.
2019-02-22 20:23:32 +00:00
Klaus Basan
08495a7854
Ref T447, utility function to set on top flag
...
Also a signal when "always on top" was triggered
2018-12-11 09:00:15 +01:00
Klaus Basan
cd062ba451
Ref T447, allow to set "on top" flag for floating dock widgets
2018-12-05 04:03:42 +01:00
Klaus Basan
a8321f3563
Ref T447, dock widget style
2018-12-05 04:03:42 +01:00
Klaus Basan
499236c391
Ref T369, link font size signals with dock widget
2018-10-03 03:03:39 +02:00
Klaus Basan
35b70db67d
Ref T310, removed "m_separator" from IMenuDelegate as it is not used
2018-08-26 15:27:05 +02:00
Klaus Basan
4ca6bb11aa
Style change signals used Qt::QueuedConnection
2018-07-31 01:43:38 +02:00
Klaus Basan
4021822753
Setting UI improvement
...
* pressing shift while clicking the button shows overview
* hint in overview, that there are shortcuts
2018-06-01 01:30:48 +02:00
Klaus Basan
b74652c94a
Ref T220, renamed some main window / widget functions
...
Make clearer if dealing with a window or widget
2018-01-14 18:47:03 +01:00
Klaus Basan
68b01077ba
Some dock widget formatting and ESC key can dock ("unfloat") widget
2018-01-14 18:46:38 +01:00
Klaus Basan
c39b8cd7fd
Ref T30, use font shortcuts with dock widget
...
(instead of view)
2017-09-24 19:50:43 +01:00
Klaus Basan
14f3eadc08
refs #766 , refs #776 using object name as setting name %OwnerName%
...
* removed CDockWidgetsSettings (note Widgets, not Widget)
* goal: Use CDockWidgetSettings for all dock widgets
refs #684
2016-12-06 09:34:30 +01:00
Roland Winklmeier
e5e5e796f7
Reduce risk of window init interference when floating dock widgets on XCB platforms
...
On XCB platforms, the initialization of native windows is an async task.
When floating a dock widget, a new top level window is created, followed
by further customizations (changes to title and status bar, child
rearrangements etc). The customizations might be triggered at a time
when Qt was still processing XCB events and the QWindows state not yet
fully initialized. In some random cases, this caused the Window to be
invisible.
By sleeping for 100 ms on XCB platforms, we make sure that
all customizations are delayed long enough that the XCB event thread can
continue to process. By then all XCB communication
should be finished and the window setup complete.
refs #754
2016-09-19 16:25:00 +02:00
Klaus Basan
d2aa2e9c1c
refs #750 , allow to reset window position of dock widget
2016-08-29 18:33:00 +02:00
Klaus Basan
862a84b661
refs #697 , BlackGui settings renamed
2016-08-01 16:48:48 +02:00
Klaus Basan
c1179ed52b
refs #680 , now display CDockWidget context menus in views/info area
2016-06-23 20:13:34 +02:00
Klaus Basan
44bfcc2d9c
Allow to reset dockwidget settings/margins
...
* changed name to object name
* reset to defaults possible
2016-06-23 20:13:33 +02:00
Mathew Sutcliffe
9bef6854ca
Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get.
2016-06-08 18:21:01 +02:00
Klaus Basan
8b66f595d4
refs #512 , changed dock widget to use settings
...
* allow to load from settings / save to settings
* removed outdated members / functions
* aligned naming of some functioss
2016-06-08 18:20:55 +02:00
Klaus Basan
436b60700f
refs #512 , added settings to dock widget for testing
2016-06-08 18:20:53 +02:00
Klaus Basan
67512d9d1f
refs #512 , GUI improvements
...
* menu widget to correct margin
* optimized stylesheet by adding dynamic properties for CDockWidget widgets (allows better qss selection)
2016-06-08 18:20:49 +02:00
Roland Winklmeier
f4c2939253
Fix BlackGui header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #598
2016-05-20 01:31:11 +02:00
Klaus Basan
18a907086d
refs #485 , moved stylesheet utility into CGuiApplication
2016-03-18 01:10:32 +00:00
Klaus Basan
431117e83b
Support stylesheets in drop site widget
2015-12-20 16:57:54 +01:00
Klaus Basan
0d27351e11
Improved asserts/comments in dock widget class
2015-11-19 20:59:29 +00:00
Klaus Basan
6119c22c78
some fixes noticed during today's discussion around refs #302
...
* move hotkey settings in own GUI component -> easier adjustments
* some fixes for dock widgets when tab widget is shown without names (unrelated but found + fixed in same step)
2015-05-12 21:03:41 +01:00
Klaus Basan
464a8f4258
Some improvements and fixes refs #312 , Navigator (aka navigation bars)
...
* Added extra QFrame in CDockWidgets to have better control in stylesheez (CDockWidget -> QWidget -> QFrame)
* Adjusted stylesheets
* Force update of stylesheet when frameless changes
* Cascading status message in nested CInfoArea components
Floating frameless dock widget still not transparent
2015-04-19 03:04:22 +02:00