mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Update DockAreaTabBar.cpp
Sometimes the synchronous calculation of the rectangular area fails
This commit is contained in:
parent
0bfee09b17
commit
1049576349
@ -36,6 +36,7 @@
|
|||||||
#include <QBoxLayout>
|
#include <QBoxLayout>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
#include "FloatingDockContainer.h"
|
#include "FloatingDockContainer.h"
|
||||||
#include "DockAreaWidget.h"
|
#include "DockAreaWidget.h"
|
||||||
@ -107,7 +108,9 @@ void DockAreaTabBarPrivate::updateTabs()
|
|||||||
{
|
{
|
||||||
TabWidget->show();
|
TabWidget->show();
|
||||||
TabWidget->setActiveTab(true);
|
TabWidget->setActiveTab(true);
|
||||||
_this->ensureWidgetVisible(TabWidget);
|
QTimer::singleShot(0, [&, TabWidget]{
|
||||||
|
_this->ensureWidgetVisible(TabWidget);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user