TTKMusicPlayer  3.7.0.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 blockMoveOption (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_pressAt
 
bool m_moveOption
 
bool m_showShadow
 
bool m_leftButtonPress
 

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::blockMoveOption ( 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

Definition at line 30 of file ttkabstractmovedialog.cpp.

References m_leftButtonPress, m_moveOption, m_pressAt, and QtMouseGlobalPos.

void TTKAbstractMoveDialog::mouseReleaseEvent ( QMouseEvent *  event)
overrideprivatevirtual

Definition at line 56 of file ttkabstractmovedialog.cpp.

References m_leftButtonPress, m_pressAt, and QtMouseGlobalPos.

void TTKAbstractMoveDialog::paintEvent ( QPaintEvent *  event)
overrideprivatevirtual

Override the widget event.

Definition at line 20 of file ttkabstractmovedialog.cpp.

References m_showShadow, and TTK::setBorderShadow().

Member Data Documentation

bool TTKAbstractMoveDialog::m_leftButtonPress
private

Definition at line 60 of file ttkabstractmovedialog.h.

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

bool TTKAbstractMoveDialog::m_moveOption
private

Definition at line 59 of file ttkabstractmovedialog.h.

Referenced by mousePressEvent().

QPoint TTKAbstractMoveDialog::m_pressAt
private

Definition at line 58 of file ttkabstractmovedialog.h.

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

bool TTKAbstractMoveDialog::m_showShadow
private

Definition at line 59 of file ttkabstractmovedialog.h.

Referenced by paintEvent().


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