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

#include <snackbar.h>

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

Public Member Functions

 SnackBar (PIVXGUI *_window=nullptr, QWidget *parent=nullptr)
 
 ~SnackBar ()
 
virtual void showEvent (QShowEvent *event) override
 
void setText (const QString &text)
 

Private Slots

void hideAnim ()
 
void windowResizeEvent (QResizeEvent *event)
 

Private Member Functions

void setTimeoutForText (const QString &text)
 

Static Private Member Functions

static int GetTimeout (const QString &message)
 

Private Attributes

Ui::SnackBar * ui
 
PIVXGUIwindow = nullptr
 
int timeout
 

Static Private Attributes

static const int MIN_TIMEOUT = 2000
 
static const int MAX_TIMEOUT = 10000
 

Detailed Description

Definition at line 17 of file snackbar.h.

Constructor & Destructor Documentation

◆ SnackBar()

SnackBar::SnackBar ( PIVXGUI _window = nullptr,
QWidget *  parent = nullptr 
)
explicit

Definition at line 13 of file snackbar.cpp.

Here is the call graph for this function:

◆ ~SnackBar()

SnackBar::~SnackBar ( )

Definition at line 68 of file snackbar.cpp.

Member Function Documentation

◆ GetTimeout()

int SnackBar::GetTimeout ( const QString &  message)
staticprivate

Definition at line 62 of file snackbar.cpp.

Here is the caller graph for this function:

◆ hideAnim

void SnackBar::hideAnim ( )
privateslot

Definition at line 45 of file snackbar.cpp.

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

◆ setText()

void SnackBar::setText ( const QString &  text)

Definition at line 51 of file snackbar.cpp.

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

◆ setTimeoutForText()

void SnackBar::setTimeoutForText ( const QString &  text)
private

Definition at line 57 of file snackbar.cpp.

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

◆ showEvent()

void SnackBar::showEvent ( QShowEvent *  event)
overridevirtual

Definition at line 40 of file snackbar.cpp.

Here is the call graph for this function:

◆ windowResizeEvent

void SnackBar::windowResizeEvent ( QResizeEvent *  event)
privateslot

Definition at line 35 of file snackbar.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ MAX_TIMEOUT

const int SnackBar::MAX_TIMEOUT = 10000
staticprivate

Definition at line 37 of file snackbar.h.

◆ MIN_TIMEOUT

const int SnackBar::MIN_TIMEOUT = 2000
staticprivate

Definition at line 36 of file snackbar.h.

◆ timeout

int SnackBar::timeout
private

Definition at line 34 of file snackbar.h.

◆ ui

Ui::SnackBar* SnackBar::ui
private

Definition at line 32 of file snackbar.h.

◆ window

PIVXGUI* SnackBar::window = nullptr
private

Definition at line 33 of file snackbar.h.


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