![]() |
KVIrc 5.2.6
Developer APIs
|
History window class. More...
#include <KviHistoryWindow.h>
Public Slots | |
void | itemSelected (QListWidgetItem *pItem) |
Called when an item is selected. | |
void | ownerDead () |
Called when the owner is dead. | |
Public Member Functions | |
void | doHide () |
Hides the parent and set the focus to the owner. | |
KviHistoryWindow (QWidget *pParent) | |
Constructs the history window object. | |
void | popup (KviInput *pOwner) |
Shows the popup. | |
~KviHistoryWindow () | |
Destroys the history window object. | |
Private Member Functions | |
void | fill () |
Fills in the window with strings from input history. | |
void | hideEvent (QHideEvent *e) override |
void | keyPressEvent (QKeyEvent *e) override |
void | mousePressEvent (QMouseEvent *e) override |
virtual void | show () |
Shows the widget. | |
void | timerEvent (QTimerEvent *e) override |
Private Attributes | |
int | m_iTimerId |
KviInput * | m_pOwner |
QWidget * | m_pParent |
History window class.
KviHistoryWindow::KviHistoryWindow | ( | QWidget * | pParent | ) |
Constructs the history window object.
pParent | The parent widget |
References connect(), itemSelected(), m_iTimerId, m_pOwner, and m_pParent.
KviHistoryWindow::~KviHistoryWindow | ( | ) |
Destroys the history window object.
References m_iTimerId.
void KviHistoryWindow::doHide | ( | ) |
Hides the parent and set the focus to the owner.
References m_iTimerId, m_pOwner, m_pParent, and KviInput::setFocus().
Referenced by itemSelected(), keyPressEvent(), mousePressEvent(), ownerDead(), and timerEvent().
|
private |
Fills in the window with strings from input history.
References clear(), and KviInputHistory::instance().
Referenced by popup().
|
overrideprivate |
References m_iTimerId.
|
slot |
Called when an item is selected.
pItem | The selected item |
References doHide(), m_pOwner, and KviInput::setText().
Referenced by KviHistoryWindow().
|
overrideprivate |
|
overrideprivate |
|
slot |
void KviHistoryWindow::popup | ( | KviInput * | pOwner | ) |
Shows the popup.
pOwner | The owner of the popup |
References connect(), fill(), m_pOwner, ownerDead(), and show().
Referenced by KviHistoryWindowWidget::popup().
|
privatevirtual |
|
overrideprivate |
References doHide(), e, m_iTimerId, and m_pOwner.
|
private |
Referenced by doHide(), hideEvent(), KviHistoryWindow(), show(), timerEvent(), and ~KviHistoryWindow().
|
private |
Referenced by doHide(), itemSelected(), keyPressEvent(), KviHistoryWindow(), ownerDead(), popup(), and timerEvent().
|
private |
Referenced by doHide(), and KviHistoryWindow().