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 Slots | Signals | Public Member Functions | Properties | List of all members
QGlobalShortcut Class Reference

The class of the qglobal shortcut. More...

#include <qglobalshortcut.h>

+ Inheritance diagram for QGlobalShortcut:

Public Slots

void setEnabled (bool enabled=true)
 
void setDisabled (bool disabled=true)
 

Signals

void activated ()
 

Public Member Functions

 QGlobalShortcut (QObject *parent=nullptr)
 
 QGlobalShortcut (const QKeySequence &shortcut, QObject *parent=nullptr)
 
 ~QGlobalShortcut ()
 
QKeySequence shortcut () const
 
bool setShortcut (const QKeySequence &shortcut)
 
void unsetShortcut ()
 
bool isEnabled () const
 

Properties

bool enabled
 
QKeySequence shortcut
 

Detailed Description

The class of the qglobal shortcut.

Author
libqxt found.nosp@m.atio.nosp@m.n@lib.nosp@m.qxt..nosp@m.org

Definition at line 31 of file qglobalshortcut.h.

Constructor & Destructor Documentation

QGlobalShortcut::QGlobalShortcut ( QObject *  parent = nullptr)
explicit

Definition at line 101 of file qglobalshortcut.cpp.

References TTK_INIT_PRIVATE.

QGlobalShortcut::QGlobalShortcut ( const QKeySequence &  shortcut,
QObject *  parent = nullptr 
)
explicit

Definition at line 107 of file qglobalshortcut.cpp.

References setShortcut().

QGlobalShortcut::~QGlobalShortcut ( )

Definition at line 113 of file qglobalshortcut.cpp.

References unsetShortcut().

Member Function Documentation

void QGlobalShortcut::activated ( )
signal
bool QGlobalShortcut::isEnabled ( ) const

Definition at line 140 of file qglobalshortcut.cpp.

References TTK_D.

Referenced by QGlobalShortcutPrivate::activateShortcut().

void QGlobalShortcut::setDisabled ( bool  disabled = true)
slot

Definition at line 152 of file qglobalshortcut.cpp.

References TTK_D.

void QGlobalShortcut::setEnabled ( bool  enabled = true)
slot

Definition at line 146 of file qglobalshortcut.cpp.

References enabled, and TTK_D.

bool QGlobalShortcut::setShortcut ( const QKeySequence &  shortcut)

Definition at line 124 of file qglobalshortcut.cpp.

References TTK_D, and unsetShortcut().

Referenced by QGlobalShortcut().

QKeySequence QGlobalShortcut::shortcut ( ) const
void QGlobalShortcut::unsetShortcut ( )

Definition at line 131 of file qglobalshortcut.cpp.

References TTK_D.

Referenced by setShortcut(), and ~QGlobalShortcut().

Property Documentation

bool QGlobalShortcut::enabled
readwrite

Definition at line 34 of file qglobalshortcut.h.

Referenced by setEnabled().

QKeySequence QGlobalShortcut::shortcut
readwrite

Definition at line 35 of file qglobalshortcut.h.


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