KVIrc
4.9.2
DeveloperAPIs
|
History window class. More...
#include <KviHistoryWindow.h>
Public Slots | |
void | itemSelected (QListWidgetItem *pItem) |
Called when an item is selected. More... | |
void | ownerDead () |
Called when the owner is dead. More... | |
Public Member Functions | |
void | doHide () |
Hides the parent and set the focus to the owner. More... | |
KviHistoryWindow (QWidget *pParent) | |
Constructs the history window object. More... | |
void | popup (KviInput *pOwner) |
Shows the popup. More... | |
~KviHistoryWindow () | |
Destroys the history window object. More... | |
Private Member Functions | |
void | fill () |
Fills in the window with strings from input history. More... | |
virtual void | hideEvent (QHideEvent *e) |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | show () |
Shows the widget. More... | |
virtual void | timerEvent (QTimerEvent *e) |
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(), KviInputHistory::instance(), KviInputHistory::list(), and KviPointerList< T >::prev().
Referenced by popup().
|
privatevirtual |
References m_iTimerId.
|
slot |
Called when an item is selected.
pItem | The selected item |
References doHide(), m_pOwner, and KviInput::setText().
Referenced by KviHistoryWindow().
|
privatevirtual |
|
privatevirtual |
References doHide().
|
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 |
|
privatevirtual |
References doHide(), 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().