BibleTime
Signals | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
BtShortcutsDialog Class Reference

#include <btshortcutsdialog.h>

Inheritance diagram for BtShortcutsDialog:

Signals

void keyChangeRequest (QKeySequence const &keys)
 

Public Member Functions

 BtShortcutsDialog (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
void changeSelectedShortcut (QKeySequence const &keys)
 
QString getFirstKeys ()
 
QString getSecondKeys ()
 
void setFirstKeys (const QString &keys)
 
void setSecondKeys (const QString &keys)
 

Protected Member Functions

void keyReleaseEvent (QKeyEvent *event) override
 

Private Member Functions

void retranslateUi ()
 

Private Attributes

QRadioButton * m_alternateButton
 
QLabel * m_alternateLabel
 
QRadioButton * m_primaryButton
 
QLabel * m_primaryLabel
 

Detailed Description

Definition at line 31 of file btshortcutsdialog.h.

Constructor & Destructor Documentation

◆ BtShortcutsDialog()

BtShortcutsDialog::BtShortcutsDialog ( QWidget parent = nullptr,
Qt::WindowFlags  f = Qt::WindowFlags() 
)
explicit

Member Function Documentation

◆ changeSelectedShortcut()

void BtShortcutsDialog::changeSelectedShortcut ( QKeySequence const &  keys)

◆ getFirstKeys()

QString BtShortcutsDialog::getFirstKeys ( )

Definition at line 76 of file btshortcutsdialog.cpp.

References m_primaryLabel.

Referenced by BtShortcutsEditor::customButtonClicked().

◆ getSecondKeys()

QString BtShortcutsDialog::getSecondKeys ( )

Definition at line 86 of file btshortcutsdialog.cpp.

References m_alternateLabel.

Referenced by BtShortcutsEditor::customButtonClicked().

◆ keyChangeRequest

void BtShortcutsDialog::keyChangeRequest ( QKeySequence const &  keys)
signal

◆ keyReleaseEvent()

void BtShortcutsDialog::keyReleaseEvent ( QKeyEvent *  event)
overrideprotected

Definition at line 96 of file btshortcutsdialog.cpp.

References keyChangeRequest().

◆ retranslateUi()

void BtShortcutsDialog::retranslateUi ( )
private

Definition at line 126 of file btshortcutsdialog.cpp.

References m_alternateButton, m_alternateLabel, m_primaryButton, and m_primaryLabel.

Referenced by BtShortcutsDialog().

◆ setFirstKeys()

void BtShortcutsDialog::setFirstKeys ( const QString &  keys)

Definition at line 81 of file btshortcutsdialog.cpp.

References m_primaryLabel.

Referenced by BtShortcutsEditor::customButtonClicked().

◆ setSecondKeys()

void BtShortcutsDialog::setSecondKeys ( const QString &  keys)

Definition at line 91 of file btshortcutsdialog.cpp.

References m_alternateLabel.

Referenced by BtShortcutsEditor::customButtonClicked().

Member Data Documentation

◆ m_alternateButton

QRadioButton* BtShortcutsDialog::m_alternateButton
private

Definition at line 69 of file btshortcutsdialog.h.

Referenced by BtShortcutsDialog(), changeSelectedShortcut(), and retranslateUi().

◆ m_alternateLabel

QLabel* BtShortcutsDialog::m_alternateLabel
private

◆ m_primaryButton

QRadioButton* BtShortcutsDialog::m_primaryButton
private

Definition at line 68 of file btshortcutsdialog.h.

Referenced by BtShortcutsDialog(), changeSelectedShortcut(), and retranslateUi().

◆ m_primaryLabel

QLabel* BtShortcutsDialog::m_primaryLabel
private

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