mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
fix QDockWidget
This commit is contained in:
parent
a5671e20e5
commit
09dba18994
@ -6,7 +6,7 @@
|
||||
"version" : "3.11.0"
|
||||
},
|
||||
"core" : {
|
||||
"theme" : "pure",
|
||||
"theme" : "moonlight",
|
||||
"locale" : "",
|
||||
"shortcuts" : {
|
||||
"FullScreen" : "F11",
|
||||
|
@ -243,6 +243,8 @@ void DockWidgetHelper::activateDock(DockIndex p_dockIndex)
|
||||
|
||||
void DockWidgetHelper::activateDock(QDockWidget *p_dock)
|
||||
{
|
||||
bool needUpdateTabBar = !p_dock->isVisible();
|
||||
|
||||
p_dock->show();
|
||||
Q_FOREACH(QTabBar* tabBar, m_mainWindow->findChildren<QTabBar*>(QString(), Qt::FindDirectChildrenOnly)) {
|
||||
bool found = false;
|
||||
@ -258,7 +260,12 @@ void DockWidgetHelper::activateDock(QDockWidget *p_dock)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
p_dock->setFocus();
|
||||
|
||||
if (needUpdateTabBar) {
|
||||
updateDockWidgetTabBar();
|
||||
}
|
||||
}
|
||||
|
||||
const QVector<QDockWidget *> &DockWidgetHelper::getDocks() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user