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:
Klaus Basan
2019-01-06 20:20:12 +01:00
committed by Mat Sutcliffe
parent d6f3932e5b
commit 8696f45a7c
10 changed files with 103 additions and 33 deletions

View File

@@ -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);
}