You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
475 B
19 lines
475 B
#ifndef TEXTITEM_HPP |
|
#define TEXTITEM_HPP |
|
|
|
#include "drawitem.hpp" |
|
#include <QGraphicsSimpleTextItem> |
|
|
|
class TextItem : public DrawItem { |
|
public: |
|
QString name() override; |
|
bool init(CropScene *) override; |
|
void mouseDragEvent(QGraphicsSceneMouseEvent *e, CropScene *scene) override; |
|
void mouseDragEndEvent(QGraphicsSceneMouseEvent *, CropScene *) override; |
|
|
|
private: |
|
QGraphicsSimpleTextItem *textItem = nullptr; |
|
QString text; |
|
}; |
|
|
|
#endif // TEXTITEM_HPP
|
|
|