TTKMusicPlayer  4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TTKAbstractMoveDialog Class Reference

The class of the ttk moving dialog base. More...

#include <ttkabstractmovedialog.h>

+ Inheritance diagram for TTKAbstractMoveDialog:

Public Member Functions

 TTKAbstractMoveDialog (QWidget *parent=nullptr)
 
 TTKAbstractMoveDialog (bool transparent, QWidget *parent=nullptr)
 
void drawWindowShadow (bool show)
 
void blockOption (bool block)
 

Private Member Functions

virtual void paintEvent (QPaintEvent *event) override
 
virtual void mousePressEvent (QMouseEvent *event) override
 
virtual void mouseMoveEvent (QMouseEvent *event) override
 
virtual void mouseReleaseEvent (QMouseEvent *event) override
 

Private Attributes

QPoint m_mousePressedAt
 
bool m_blockOption
 
bool m_shadowOption
 
bool m_mouseLeftPressed
 

Detailed Description

The class of the ttk moving dialog base.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 29 of file ttkabstractmovedialog.h.

Constructor & Destructor Documentation

TTKAbstractMoveDialog::TTKAbstractMoveDialog ( QWidget *  parent = nullptr)
explicit

Object constructor.

Definition at line 4 of file ttkabstractmovedialog.cpp.

TTKAbstractMoveDialog::TTKAbstractMoveDialog ( bool  transparent,
QWidget *  parent = nullptr 
)
explicit

Definition at line 10 of file ttkabstractmovedialog.cpp.

Member Function Documentation

void TTKAbstractMoveDialog::blockOption ( bool  block)
inline

Set or not block widget moving.

Definition at line 47 of file ttkabstractmovedialog.h.

void TTKAbstractMoveDialog::drawWindowShadow ( bool  show)
inline

Set or not draw window bound shadow.

Definition at line 43 of file ttkabstractmovedialog.h.

void TTKAbstractMoveDialog::mouseMoveEvent ( QMouseEvent *  event)
overrideprivatevirtual
void TTKAbstractMoveDialog::mousePressEvent ( QMouseEvent *  event)
overrideprivatevirtual
void TTKAbstractMoveDialog::mouseReleaseEvent ( QMouseEvent *  event)
overrideprivatevirtual

Definition at line 56 of file ttkabstractmovedialog.cpp.

References m_mouseLeftPressed, m_mousePressedAt, and QtMouseGlobalPos.

void TTKAbstractMoveDialog::paintEvent ( QPaintEvent *  event)
overrideprivatevirtual

Override the widget event.

Definition at line 20 of file ttkabstractmovedialog.cpp.

References m_shadowOption, and TTK::setBorderShadow().

Member Data Documentation

bool TTKAbstractMoveDialog::m_blockOption
private

Definition at line 59 of file ttkabstractmovedialog.h.

Referenced by mousePressEvent().

bool TTKAbstractMoveDialog::m_mouseLeftPressed
private

Definition at line 60 of file ttkabstractmovedialog.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

QPoint TTKAbstractMoveDialog::m_mousePressedAt
private

Definition at line 58 of file ttkabstractmovedialog.h.

Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

bool TTKAbstractMoveDialog::m_shadowOption
private

Definition at line 59 of file ttkabstractmovedialog.h.

Referenced by paintEvent().


The documentation for this class was generated from the following files: