PIVX Core  5.6.99
P2P Digital Currency
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ContactsDropdown Class Reference

#include <contactsdropdown.h>

Inheritance diagram for ContactsDropdown:
[legend]
Collaboration diagram for ContactsDropdown:
[legend]

Signals

void contactSelected (QString address, QString label)
 
- Signals inherited from PWidget
void message (const QString &title, const QString &body, unsigned int style, bool *ret=nullptr)
 
void showHide (bool show)
 
bool execDialog (QDialog *dialog, int xDiv=3, int yDiv=5)
 

Public Member Functions

 ContactsDropdown (int minWidth, int minHeight, PWidget *parent=nullptr)
 
 ContactsDropdown (int minWidth, int minHeight, PIVXGUI *_window=nullptr, QWidget *parent=nullptr)
 
void resizeList (int minWidth, int mintHeight)
 
void setWalletModel (WalletModel *_model, const QStringList &type)
 
void setType (const QStringList &type)
 
void changeTheme (bool isLightTheme, QString &theme) override
 
- Public Member Functions inherited from PWidget
 PWidget (PIVXGUI *_window=nullptr, QWidget *parent=nullptr)
 
 PWidget (PWidget *parent=nullptr)
 
void setClientModel (ClientModel *model)
 
void setWalletModel (WalletModel *model)
 
PIVXGUIgetWindow ()
 
void run (int type) override
 
void onError (QString error, int type) override
 
void inform (const QString &message)
 
void emitMessage (const QString &title, const QString &message, unsigned int style, bool *ret=nullptr)
 
QString translate (const char *msg) override
 

Private Slots

void handleClick (const QModelIndex &index)
 

Private Member Functions

void init (int minWidth, int minHeight)
 

Private Attributes

FurAbstractListItemDelegatedelegate = nullptr
 
AddressTableModelmodel = nullptr
 
AddressFilterProxyModelfilter = nullptr
 
QListView * list
 
QFrame * frameList
 

Additional Inherited Members

- Protected Slots inherited from PWidget
void onChangeTheme (bool isLightTheme, QString &theme)
 
- Protected Member Functions inherited from PWidget
virtual void loadClientModel ()
 
virtual void loadWalletModel ()
 
void showHideOp (bool show)
 
bool execute (int type, std::unique_ptr< WalletModel::UnlockContext > pctx=nullptr)
 
void warn (const QString &title, const QString &message)
 
bool ask (const QString &title, const QString &message)
 
void showDialog (QDialog *dialog, int xDiv=3, int yDiv=5)
 
- Protected Attributes inherited from PWidget
PIVXGUIwindow = nullptr
 
ClientModelclientModel = nullptr
 
WalletModelwalletModel = nullptr
 

Detailed Description

Definition at line 27 of file contactsdropdown.h.

Constructor & Destructor Documentation

◆ ContactsDropdown() [1/2]

ContactsDropdown::ContactsDropdown ( int  minWidth,
int  minHeight,
PWidget parent = nullptr 
)
explicit

Definition at line 57 of file contactsdropdown.cpp.

Here is the call graph for this function:

◆ ContactsDropdown() [2/2]

ContactsDropdown::ContactsDropdown ( int  minWidth,
int  minHeight,
PIVXGUI _window = nullptr,
QWidget *  parent = nullptr 
)

Definition at line 51 of file contactsdropdown.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ changeTheme()

void ContactsDropdown::changeTheme ( bool  isLightTheme,
QString &  theme 
)
overridevirtual

Reimplemented from PWidget.

Definition at line 134 of file contactsdropdown.cpp.

Here is the call graph for this function:

◆ contactSelected

void ContactsDropdown::contactSelected ( QString  address,
QString  label 
)
signal
Here is the caller graph for this function:

◆ handleClick

void ContactsDropdown::handleClick ( const QModelIndex &  index)
privateslot

Definition at line 125 of file contactsdropdown.cpp.

Here is the caller graph for this function:

◆ init()

void ContactsDropdown::init ( int  minWidth,
int  minHeight 
)
private

Definition at line 63 of file contactsdropdown.cpp.

Here is the call graph for this function:

◆ resizeList()

void ContactsDropdown::resizeList ( int  minWidth,
int  mintHeight 
)

Definition at line 110 of file contactsdropdown.cpp.

Here is the caller graph for this function:

◆ setType()

void ContactsDropdown::setType ( const QStringList &  type)

Definition at line 105 of file contactsdropdown.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWalletModel()

void ContactsDropdown::setWalletModel ( WalletModel _model,
const QStringList &  type 
)

Definition at line 92 of file contactsdropdown.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ delegate

FurAbstractListItemDelegate* ContactsDropdown::delegate = nullptr
private

Definition at line 42 of file contactsdropdown.h.

◆ filter

AddressFilterProxyModel* ContactsDropdown::filter = nullptr
private

Definition at line 44 of file contactsdropdown.h.

◆ frameList

QFrame* ContactsDropdown::frameList
private

Definition at line 46 of file contactsdropdown.h.

◆ list

QListView* ContactsDropdown::list
private

Definition at line 45 of file contactsdropdown.h.

◆ model

AddressTableModel* ContactsDropdown::model = nullptr
private

Definition at line 43 of file contactsdropdown.h.


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