BibleTime
|
#include <btquickwidget.h>
Signals | |
void | referenceDropped (const QString &reference) |
Public Member Functions | |
BtQuickWidget (QWidget *const parent=nullptr) | |
CSwordKey * | getMouseClickedKey () |
void | pageDown () |
void | pageUp () |
BtQmlInterface * | qmlInterface () const noexcept |
void | scroll (int pixels) |
void | updateReferenceText () |
Protected Member Functions | |
void | dragEnterEvent (QDragEnterEvent *e) override |
void | dragMoveEvent (QDragMoveEvent *event) override |
void | dropEvent (QDropEvent *e) override |
virtual bool | event (QEvent *e) override |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | wheelEvent (QWheelEvent *event) override |
Private Member Functions | |
template<typename ... Args> | |
void | callQml (char const *const method, Args &&... args) |
Private Attributes | |
BtQmlInterface *const | m_qmlInterface |
QTimer | m_scrollTimer |
Definition at line 29 of file btquickwidget.h.
BtQuickWidget::BtQuickWidget | ( | QWidget *const | parent = nullptr | ) |
Definition at line 32 of file btquickwidget.cpp.
References BT_ASSERT, m_qmlInterface, m_scrollTimer, and scroll().
|
inlineprivate |
Definition at line 59 of file btquickwidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), pageDown(), pageUp(), scroll(), and updateReferenceText().
|
overrideprotected |
Definition at line 63 of file btquickwidget.cpp.
References CSwordModuleInfo::Bible, BT_ASSERT, CSwordModuleInfo::Commentary, CSwordBackend::findModuleByName(), CSwordBackend::instance(), BtQmlInterface::isBibleOrCommentary(), and m_qmlInterface.
|
overrideprotected |
Definition at line 97 of file btquickwidget.cpp.
|
overrideprotected |
Definition at line 85 of file btquickwidget.cpp.
References BookmarkItem::key(), and referenceDropped().
|
overrideprotectedvirtual |
Definition at line 120 of file btquickwidget.cpp.
References BtQmlInterface::cancelMagTimer(), and m_qmlInterface.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().
CSwordKey * BtQuickWidget::getMouseClickedKey | ( | ) |
Definition at line 112 of file btquickwidget.cpp.
References BtQmlInterface::getMouseClickedKey(), and m_qmlInterface.
Referenced by CDisplayWindow::getMouseClickedKey().
|
overrideprotectedvirtual |
Definition at line 126 of file btquickwidget.cpp.
|
overrideprotectedvirtual |
Definition at line 145 of file btquickwidget.cpp.
References callQml(), event(), and m_scrollTimer.
|
overrideprotectedvirtual |
Definition at line 131 of file btquickwidget.cpp.
|
overrideprotectedvirtual |
Definition at line 167 of file btquickwidget.cpp.
References callQml(), event(), and m_scrollTimer.
void BtQuickWidget::pageDown | ( | ) |
Definition at line 108 of file btquickwidget.cpp.
References callQml().
Referenced by BtModelViewReadDisplay::pageDown().
void BtQuickWidget::pageUp | ( | ) |
Definition at line 110 of file btquickwidget.cpp.
References callQml().
Referenced by BtModelViewReadDisplay::pageUp().
|
inlinenoexcept |
Definition at line 42 of file btquickwidget.h.
References m_qmlInterface.
|
signal |
Referenced by BtModelViewReadDisplay::BtModelViewReadDisplay(), and dropEvent().
void BtQuickWidget::scroll | ( | int | pixels | ) |
Definition at line 116 of file btquickwidget.cpp.
References callQml().
Referenced by BtQuickWidget(), BtModelViewReadDisplay::scroll(), and BtModelViewReadDisplay::slotSliderMoved().
void BtQuickWidget::updateReferenceText | ( | ) |
Definition at line 106 of file btquickwidget.cpp.
References callQml().
Referenced by BtModelViewReadDisplay::slotSliderReleased(), and BtModelViewReadDisplay::updateReferenceText().
|
overrideprotectedvirtual |
Definition at line 182 of file btquickwidget.cpp.
References BibleTime::autoScrollStop(), event(), and BibleTime::instance().
|
private |
Definition at line 67 of file btquickwidget.h.
Referenced by BtQuickWidget(), dragEnterEvent(), event(), getMouseClickedKey(), and qmlInterface().
|
private |
Definition at line 69 of file btquickwidget.h.
Referenced by BtQuickWidget(), mouseMoveEvent(), and mouseReleaseEvent().