Ref T346, framless window “UpdateLayeredWindowIndirect failed” error preparations

This commit is contained in:
Klaus Basan
2018-09-10 13:36:28 +02:00
parent d2d27a8eac
commit 97cf9f4939
4 changed files with 60 additions and 15 deletions

View File

@@ -51,6 +51,15 @@ namespace BlackGui
//! \param correspondingWidget the widget representing the window
CEnableForFramelessWindow(WindowMode mode, bool isMainApplicationWindow, const char *framelessPropertyname, QWidget *correspondingWidget);
//! Destructor
virtual ~CEnableForFramelessWindow() {}
//! Copy constructor
CEnableForFramelessWindow(const CEnableForFramelessWindow &) = delete ;
//! Copy assignment operator
CEnableForFramelessWindow &operator =(const CEnableForFramelessWindow &) = delete;
//! Window mode
void setMode(WindowMode mode);
@@ -76,7 +85,7 @@ namespace BlackGui
static WindowMode stringToWindowMode(const QString &s);
//! String to window mode
static QString windowModeToString(WindowMode m);
static const QString &windowModeToString(WindowMode m);
protected:
QPoint m_framelessDragPosition; //!< position, if moving is handled with frameless window */