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

#include <expandablebutton.h>

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

Public Slots

void setText2 (QString text2)
 
QString getText ()
 

Signals

void Mouse_Pressed ()
 
void Mouse_Hover ()
 
void Mouse_HoverLeave ()
 

Public Member Functions

 ExpandableButton (QWidget *parent=nullptr)
 
 ~ExpandableButton ()
 
void setButtonClassStyle (const char *name, const QVariant &value, bool forceUpdate=false)
 
void setButtonText (const QString &_text)
 
void setNoIconText (const QString &_text)
 
void setIcon (QString path)
 
bool isChecked ()
 
void setChecked (bool check)
 
void setKeepExpanded (bool _keepExpended)
 
void setSmall ()
 
void setExpanded ()
 

Protected Member Functions

virtual void enterEvent (QEvent *)
 
virtual void leaveEvent (QEvent *)
 

Private Slots

void on_pushButton_clicked (bool checked)
 
void innerMousePressEvent ()
 

Private Attributes

Ui::ExpandableButton * ui
 
QString notExpandedText
 
QString text
 
std::atomic< bool > isAnimating
 
QPropertyAnimation * animation = nullptr
 
bool isExpanded = false
 
bool keepExpanded = false
 

Detailed Description

Definition at line 20 of file expandablebutton.h.

Constructor & Destructor Documentation

◆ ExpandableButton()

ExpandableButton::ExpandableButton ( QWidget *  parent = nullptr)
explicit

Definition at line 15 of file expandablebutton.cpp.

Here is the call graph for this function:

◆ ~ExpandableButton()

ExpandableButton::~ExpandableButton ( )

Definition at line 63 of file expandablebutton.cpp.

Member Function Documentation

◆ enterEvent()

void ExpandableButton::enterEvent ( QEvent *  )
protectedvirtual

Definition at line 93 of file expandablebutton.cpp.

Here is the call graph for this function:

◆ getText

QString ExpandableButton::getText ( )
inlineslot

Definition at line 48 of file expandablebutton.h.

◆ innerMousePressEvent

void ExpandableButton::innerMousePressEvent ( )
privateslot

Definition at line 110 of file expandablebutton.cpp.

Here is the caller graph for this function:

◆ isChecked()

bool ExpandableButton::isChecked ( )

Definition at line 68 of file expandablebutton.cpp.

◆ leaveEvent()

void ExpandableButton::leaveEvent ( QEvent *  )
protectedvirtual

Definition at line 102 of file expandablebutton.cpp.

Here is the call graph for this function:

◆ Mouse_Hover

void ExpandableButton::Mouse_Hover ( )
signal
Here is the caller graph for this function:

◆ Mouse_HoverLeave

void ExpandableButton::Mouse_HoverLeave ( )
signal
Here is the caller graph for this function:

◆ Mouse_Pressed

void ExpandableButton::Mouse_Pressed ( )
signal
Here is the caller graph for this function:

◆ on_pushButton_clicked

void ExpandableButton::on_pushButton_clicked ( bool  checked)
privateslot
Todo:
: Add callback event

Definition at line 115 of file expandablebutton.cpp.

◆ setButtonClassStyle()

void ExpandableButton::setButtonClassStyle ( const char *  name,
const QVariant &  value,
bool  forceUpdate = false 
)

Definition at line 29 of file expandablebutton.cpp.

Here is the call graph for this function:

◆ setButtonText()

void ExpandableButton::setButtonText ( const QString &  _text)

Definition at line 42 of file expandablebutton.cpp.

◆ setChecked()

void ExpandableButton::setChecked ( bool  check)

Definition at line 73 of file expandablebutton.cpp.

◆ setExpanded()

void ExpandableButton::setExpanded ( )

Definition at line 86 of file expandablebutton.cpp.

Here is the caller graph for this function:

◆ setIcon()

void ExpandableButton::setIcon ( QString  path)

Definition at line 37 of file expandablebutton.cpp.

◆ setKeepExpanded()

void ExpandableButton::setKeepExpanded ( bool  _keepExpended)
inline

Definition at line 35 of file expandablebutton.h.

◆ setNoIconText()

void ExpandableButton::setNoIconText ( const QString &  _text)

Definition at line 50 of file expandablebutton.cpp.

◆ setSmall()

void ExpandableButton::setSmall ( )

Definition at line 78 of file expandablebutton.cpp.

Here is the caller graph for this function:

◆ setText2

void ExpandableButton::setText2 ( QString  text2)
slot

Definition at line 57 of file expandablebutton.cpp.

Member Data Documentation

◆ animation

QPropertyAnimation* ExpandableButton::animation = nullptr
private

Definition at line 66 of file expandablebutton.h.

◆ isAnimating

std::atomic<bool> ExpandableButton::isAnimating
private

Definition at line 65 of file expandablebutton.h.

◆ isExpanded

bool ExpandableButton::isExpanded = false
private

Definition at line 67 of file expandablebutton.h.

◆ keepExpanded

bool ExpandableButton::keepExpanded = false
private

Definition at line 69 of file expandablebutton.h.

◆ notExpandedText

QString ExpandableButton::notExpandedText
private

Definition at line 63 of file expandablebutton.h.

◆ text

QString ExpandableButton::text
private

Definition at line 64 of file expandablebutton.h.

◆ ui

Ui::ExpandableButton* ExpandableButton::ui
private

Definition at line 62 of file expandablebutton.h.


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