forked from blue/squawk
removed Order, resolved a crash on several files being uploaded simultaniuosly
This commit is contained in:
parent
0a530bfa93
commit
be466fbad1
12 changed files with 122 additions and 304 deletions
|
@ -16,8 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef BADGE_H
|
||||
#define BADGE_H
|
||||
#pragma once
|
||||
|
||||
#include <QFrame>
|
||||
#include <QLabel>
|
||||
|
@ -25,13 +24,7 @@
|
|||
#include <QIcon>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "shared/utils.h"
|
||||
|
||||
/**
|
||||
* @todo write docs
|
||||
*/
|
||||
class Badge : public QFrame
|
||||
{
|
||||
class Badge : public QFrame {
|
||||
Q_OBJECT
|
||||
public:
|
||||
Badge(const QString& id, const QString& text, const QIcon& icon, QWidget* parent = nullptr);
|
||||
|
@ -45,7 +38,7 @@ public:
|
|||
void setIcon(const QIcon& icon);
|
||||
|
||||
signals:
|
||||
void close();
|
||||
void closeClicked();
|
||||
|
||||
private:
|
||||
QLabel* image;
|
||||
|
@ -55,12 +48,5 @@ private:
|
|||
|
||||
private:
|
||||
void createMandatoryComponents();
|
||||
|
||||
public:
|
||||
struct Comparator {
|
||||
bool operator()(const Badge& a, const Badge& b) const;
|
||||
bool operator()(const Badge* a, const Badge* b) const;
|
||||
};
|
||||
};
|
||||
|
||||
#endif // BADGE_H
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue