PIVX Core  5.6.99
P2P Digital Currency
Functions | Variables
qtutils.cpp File Reference
#include "qtutils.h"
#include "guiconstants.h"
#include "qrencode.h"
#include "snackbar.h"
#include <QFile>
#include <QGraphicsDropShadowEffect>
#include <QListView>
Include dependency graph for qtutils.cpp:

Go to the source code of this file.

Functions

bool openDialog (QDialog *widget, QWidget *gui)
 
void closeDialog (QDialog *widget, PIVXGUI *gui)
 
void openDialogFullScreen (QWidget *parent, QWidget *dialog)
 
bool openDialogWithOpaqueBackgroundY (QDialog *widget, PIVXGUI *gui, double posX, int posY, bool hideOpaqueBackground)
 
bool openDialogWithOpaqueBackground (QDialog *widget, PIVXGUI *gui, double posX)
 
bool openDialogWithOpaqueBackgroundFullScreen (QDialog *widget, PIVXGUI *gui)
 
QPixmap encodeToQr (const QString &str, QString &errorStr, const QColor &qrColor)
 
void setFilterAddressBook (QComboBox *filter, SortEdit *lineEdit)
 
void setSortTx (QComboBox *filter, SortEdit *lineEdit)
 
void setSortTxTypeFilter (QComboBox *filter, SortEdit *lineEditType)
 
void setupSettings (QSettings *settings)
 
QSettings * getSettings ()
 
bool isLightTheme ()
 
void setTheme (bool isLight)
 
void updateStyle (QWidget *widget)
 
QColor getRowColor (bool isLightTheme, bool isHovered, bool isSelected)
 
void initComboBox (QComboBox *combo, QLineEdit *lineEdit, QString cssClass, bool setView)
 
void fillAddressSortControls (SortEdit *seType, SortEdit *seOrder, QComboBox *boxType, QComboBox *boxOrder)
 
void initCssEditLine (QLineEdit *edit, bool isDialog)
 
void setCssEditLine (QLineEdit *edit, bool isValid, bool forceUpdate)
 
void setCssEditLineDialog (QLineEdit *edit, bool isValid, bool forceUpdate)
 
void setShadow (QWidget *edit)
 
void setCssBtnPrimary (QPushButton *btn, bool forceUpdate)
 
void setCssBtnSecondary (QPushButton *btn, bool forceUpdate)
 
void setCssTextBodyDialog (std::initializer_list< QWidget * > args)
 
void setCssTextBodyDialog (QWidget *widget)
 
void setCssTitleScreen (QLabel *label)
 
void setCssSubtitleScreen (QWidget *wid)
 
void setCssProperty (std::initializer_list< QWidget * > args, const QString &value)
 
void setCssProperty (QWidget *wid, const QString &value, bool forceUpdate)
 
void forceUpdateStyle (QWidget *widget, bool forceUpdate)
 
void forceUpdateStyle (std::initializer_list< QWidget * > args)
 

Variables

Qt::Modifier SHORT_KEY = Qt::ALT
 
QSettings * settings = nullptr
 

Function Documentation

◆ closeDialog()

void closeDialog ( QDialog *  widget,
PIVXGUI gui 
)

Definition at line 38 of file qtutils.cpp.

Here is the caller graph for this function:

◆ encodeToQr()

QPixmap encodeToQr ( const QString &  str,
QString &  errorStr,
const QColor &  qrColor 
)

Definition at line 102 of file qtutils.cpp.

Here is the caller graph for this function:

◆ fillAddressSortControls()

void fillAddressSortControls ( SortEdit seType,
SortEdit seOrder,
QComboBox *  boxType,
QComboBox *  boxOrder 
)

Definition at line 257 of file qtutils.cpp.

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

◆ forceUpdateStyle() [1/2]

void forceUpdateStyle ( QWidget *  widget,
bool  forceUpdate 
)

Definition at line 348 of file qtutils.cpp.

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

◆ forceUpdateStyle() [2/2]

void forceUpdateStyle ( std::initializer_list< QWidget * >  args)

Definition at line 354 of file qtutils.cpp.

Here is the call graph for this function:

◆ getRowColor()

QColor getRowColor ( bool  isLightTheme,
bool  isHovered,
bool  isSelected 
)

Definition at line 233 of file qtutils.cpp.

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

◆ getSettings()

QSettings* getSettings ( )

Definition at line 199 of file qtutils.cpp.

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

◆ initComboBox()

void initComboBox ( QComboBox *  combo,
QLineEdit *  lineEdit,
QString  cssClass,
bool  setView 
)

Definition at line 244 of file qtutils.cpp.

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

◆ initCssEditLine()

void initCssEditLine ( QLineEdit *  edit,
bool  isDialog 
)

Definition at line 272 of file qtutils.cpp.

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

◆ isLightTheme()

bool isLightTheme ( )

Definition at line 210 of file qtutils.cpp.

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

◆ openDialog()

bool openDialog ( QDialog *  widget,
QWidget *  gui 
)

Definition at line 23 of file qtutils.cpp.

Here is the caller graph for this function:

◆ openDialogFullScreen()

void openDialogFullScreen ( QWidget *  parent,
QWidget *  dialog 
)

Definition at line 50 of file qtutils.cpp.

◆ openDialogWithOpaqueBackground()

bool openDialogWithOpaqueBackground ( QDialog *  widget,
PIVXGUI gui,
double  posX 
)

Definition at line 76 of file qtutils.cpp.

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

◆ openDialogWithOpaqueBackgroundFullScreen()

bool openDialogWithOpaqueBackgroundFullScreen ( QDialog *  widget,
PIVXGUI gui 
)

Definition at line 81 of file qtutils.cpp.

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

◆ openDialogWithOpaqueBackgroundY()

bool openDialogWithOpaqueBackgroundY ( QDialog *  widget,
PIVXGUI gui,
double  posX,
int  posY,
bool  hideOpaqueBackground 
)

Definition at line 59 of file qtutils.cpp.

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

◆ setCssBtnPrimary()

void setCssBtnPrimary ( QPushButton *  btn,
bool  forceUpdate 
)

Definition at line 302 of file qtutils.cpp.

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

◆ setCssBtnSecondary()

void setCssBtnSecondary ( QPushButton *  btn,
bool  forceUpdate 
)

Definition at line 307 of file qtutils.cpp.

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

◆ setCssEditLine()

void setCssEditLine ( QLineEdit *  edit,
bool  isValid,
bool  forceUpdate 
)

Definition at line 282 of file qtutils.cpp.

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

◆ setCssEditLineDialog()

void setCssEditLineDialog ( QLineEdit *  edit,
bool  isValid,
bool  forceUpdate 
)

Definition at line 287 of file qtutils.cpp.

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

◆ setCssProperty() [1/2]

void setCssProperty ( QWidget *  wid,
const QString &  value,
bool  forceUpdate 
)

Definition at line 341 of file qtutils.cpp.

Here is the call graph for this function:

◆ setCssProperty() [2/2]

void setCssProperty ( std::initializer_list< QWidget * >  args,
const QString &  value 
)

Definition at line 334 of file qtutils.cpp.

◆ setCssSubtitleScreen()

void setCssSubtitleScreen ( QWidget *  wid)

Definition at line 329 of file qtutils.cpp.

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

◆ setCssTextBodyDialog() [1/2]

void setCssTextBodyDialog ( QWidget *  widget)

Definition at line 319 of file qtutils.cpp.

Here is the call graph for this function:

◆ setCssTextBodyDialog() [2/2]

void setCssTextBodyDialog ( std::initializer_list< QWidget * >  args)

Definition at line 312 of file qtutils.cpp.

Here is the caller graph for this function:

◆ setCssTitleScreen()

void setCssTitleScreen ( QLabel *  label)

Definition at line 324 of file qtutils.cpp.

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

◆ setFilterAddressBook()

void setFilterAddressBook ( QComboBox *  filter,
SortEdit lineEdit 
)

Definition at line 131 of file qtutils.cpp.

Here is the caller graph for this function:

◆ setShadow()

void setShadow ( QWidget *  edit)

Definition at line 292 of file qtutils.cpp.

Here is the caller graph for this function:

◆ setSortTx()

void setSortTx ( QComboBox *  filter,
SortEdit lineEdit 
)

Definition at line 145 of file qtutils.cpp.

Here is the caller graph for this function:

◆ setSortTxTypeFilter()

void setSortTxTypeFilter ( QComboBox *  filter,
SortEdit lineEditType 
)

Definition at line 155 of file qtutils.cpp.

Here is the caller graph for this function:

◆ setTheme()

void setTheme ( bool  isLight)

Definition at line 215 of file qtutils.cpp.

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

◆ setupSettings()

void setupSettings ( QSettings *  settings)

Definition at line 190 of file qtutils.cpp.

Here is the caller graph for this function:

◆ updateStyle()

void updateStyle ( QWidget *  widget)

Definition at line 225 of file qtutils.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ settings

QSettings* settings = nullptr

Definition at line 197 of file qtutils.cpp.

◆ SHORT_KEY

Qt::Modifier SHORT_KEY = Qt::ALT

Definition at line 15 of file qtutils.cpp.