forked from blue/squawk
removed unused old message line files, first thoughts on message edition
This commit is contained in:
parent
73b1b58a96
commit
0823b35148
11 changed files with 121 additions and 1083 deletions
|
@ -25,6 +25,8 @@
|
|||
#include <QIcon>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "shared/utils.h"
|
||||
|
||||
/**
|
||||
* @todo write docs
|
||||
*/
|
||||
|
@ -33,9 +35,14 @@ class Badge : public QFrame
|
|||
Q_OBJECT
|
||||
public:
|
||||
Badge(const QString& id, const QString& text, const QIcon& icon, QWidget* parent = nullptr);
|
||||
Badge(QWidget* parent = nullptr);
|
||||
~Badge();
|
||||
|
||||
const QString id;
|
||||
|
||||
public:
|
||||
void setText(const QString& text);
|
||||
void setIcon(const QIcon& icon);
|
||||
|
||||
signals:
|
||||
void close();
|
||||
|
@ -45,6 +52,9 @@ private:
|
|||
QLabel* text;
|
||||
QPushButton* closeButton;
|
||||
QHBoxLayout* layout;
|
||||
|
||||
private:
|
||||
void createMandatoryComponents();
|
||||
|
||||
public:
|
||||
struct Comparator {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue