mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T506, make dock widget overlay message compliant
* overlay widget can used that functionality directly * no need to use COverlayMessagesFrame * added COverlayMessagesDockWidget
This commit is contained in:
committed by
Mat Sutcliffe
parent
d6f3932e5b
commit
8696f45a7c
@@ -43,7 +43,7 @@ using namespace BlackGui::Menus;
|
||||
namespace BlackGui
|
||||
{
|
||||
CDockWidget::CDockWidget(bool allowStatusBar, QWidget *parent) :
|
||||
QDockWidget(parent),
|
||||
COverlayMessagesDockWidget(parent),
|
||||
CEnableForFramelessWindow(CEnableForFramelessWindow::WindowTool, false, "framelessDockWidget", this),
|
||||
m_allowStatusBar(allowStatusBar)
|
||||
{
|
||||
@@ -88,7 +88,7 @@ namespace BlackGui
|
||||
void CDockWidget::setOriginalTitleBar()
|
||||
{
|
||||
if (!m_titleBarWidgetOriginal) { this->initTitleBarWidgets(); }
|
||||
if (this->titleBarWidget() == m_titleBarWidgetOriginal) return; // on purpose, as I do not know what happens when I call setTitleBar
|
||||
if (this->titleBarWidget() == m_titleBarWidgetOriginal) { return; } // on purpose, as I do not know what happens when I call setTitleBar
|
||||
this->setTitleBarWidget(m_titleBarWidgetOriginal);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user