bunch of stuff. very basic drag/drop now working
This commit is contained in:
27
tierrowtitlecard.hpp
Normal file
27
tierrowtitlecard.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef TIERROWTITLECARD_HPP
|
||||
#define TIERROWTITLECARD_HPP
|
||||
|
||||
#include <QWidget>
|
||||
#include <QLabel>
|
||||
|
||||
class TierRowTitleCard : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
using IdType = uint32_t;
|
||||
explicit TierRowTitleCard(IdType id, QWidget *parent = nullptr);
|
||||
void setColor(QColor color);
|
||||
QColor color() const;
|
||||
void setText(QString& text);
|
||||
QString text() const;
|
||||
uint32_t id() const;
|
||||
|
||||
private:
|
||||
QColor _color;
|
||||
QLabel* titleLabel;
|
||||
QLabel* idLabel;
|
||||
|
||||
signals:
|
||||
};
|
||||
|
||||
#endif // TIERROWTITLECARD_HPP
|
||||
Reference in New Issue
Block a user