KVIrc 5.2.6
Developer APIs
KviIconWidget Class Reference

The widget with holds the table of icons. More...

#include <KviIconManager.h>

+ Inheritance diagram for KviIconWidget:

Signals

void closed ()
 Emitted when we close the table widget.
 
void selected (KviIconManager::SmallIcon eIcon)
 Emitted when we select an icon from the table.
 

Public Member Functions

 KviIconWidget (QWidget *pPar=nullptr)
 Constructs the icon table widget.
 
 ~KviIconWidget ()
 Destroys the icon table widget.
 

Protected Member Functions

void closeEvent (QCloseEvent *pEvent) override
 
bool eventFilter (QObject *pObject, QEvent *pEvent) override
 
void init ()
 Initializes the table containing the icons.
 

Detailed Description

The widget with holds the table of icons.

Constructor & Destructor Documentation

◆ KviIconWidget()

KviIconWidget::KviIconWidget ( QWidget * pPar = nullptr)

Constructs the icon table widget.

Parameters
pParThe parent object
Returns
KviIconWidget

References init().

◆ ~KviIconWidget()

KviIconWidget::~KviIconWidget ( )
default

Destroys the icon table widget.

Member Function Documentation

◆ closed

void KviIconWidget::closed ( )
signal

Emitted when we close the table widget.

Returns
void

Referenced by closeEvent().

◆ closeEvent()

void KviIconWidget::closeEvent ( QCloseEvent * pEvent)
overrideprotected

References closed().

◆ eventFilter()

bool KviIconWidget::eventFilter ( QObject * pObject,
QEvent * pEvent )
overrideprotected

References selected(), and KviCString::toInt().

◆ init()

void KviIconWidget::init ( )
protected

Initializes the table containing the icons.

Returns
void

References __tr2qs, KviCString::Format, g_pIconManager, KviIconManager::getSmallIcon(), i, KviIconManager::IconCount, KviIconManager::IconManager, and KviCString::ptr().

Referenced by KviIconWidget().

◆ selected

void KviIconWidget::selected ( KviIconManager::SmallIcon eIcon)
signal

Emitted when we select an icon from the table.

Parameters
eIconThe index of the icon selected
Returns
void

Referenced by eventFilter().


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