add classes for font icon styling
This commit is contained in:
@@ -32,7 +32,7 @@ namespace noggit
|
||||
{
|
||||
painter->save();
|
||||
{
|
||||
QWidget* temp_btn = new QWidget();
|
||||
auto temp_btn = new font_awesome_button_style();
|
||||
|
||||
temp_btn->ensurePolished();
|
||||
|
||||
|
||||
@@ -973,6 +973,12 @@ namespace noggit
|
||||
};
|
||||
};
|
||||
|
||||
class font_awesome_button_style : public QWidget
|
||||
{
|
||||
public:
|
||||
font_awesome_button_style(QWidget* parent = nullptr) : QWidget(parent) {};
|
||||
};
|
||||
|
||||
class font_awesome_icon : public QIcon
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace noggit
|
||||
{
|
||||
painter->save();
|
||||
{
|
||||
auto temp_btn = new QWidget();
|
||||
auto temp_btn = new font_noggit_button_style();
|
||||
|
||||
temp_btn->ensurePolished();
|
||||
|
||||
|
||||
@@ -105,6 +105,12 @@ namespace noggit
|
||||
};
|
||||
};
|
||||
|
||||
class font_noggit_button_style : public QWidget
|
||||
{
|
||||
public:
|
||||
font_noggit_button_style(QWidget* parent = nullptr) : QWidget(parent) {};
|
||||
};
|
||||
|
||||
class font_noggit_icon : public QIcon
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user