Don't flicker when showing a floating dock widget

Create the FloatingWindow directly, instead of creating the DockWidget
then reparenting it
This commit is contained in:
Sergio Martins
2020-03-07 21:15:44 +00:00
parent ca4d63ed2e
commit cc1e1eaa51
3 changed files with 21 additions and 4 deletions

View File

@@ -257,6 +257,9 @@ public:
*/
QString affinityName() const;
/// @brief Equivalent to QWidget::show(), but it's optimized to reduce flickering on some platforms
void show();
Q_SIGNALS:
///@brief signal emitted when the parent changed
void parentChanged();