QGraphicsLineEdit.hpp
1 #pragma once
2 #include <score/graphics/widgets/Constants.hpp>
3 
4 #include <QGraphicsItem>
5 #include <QGraphicsSceneEvent>
6 #include <QRectF>
7 #include <QSizeF>
8 
9 #include <score_lib_base_export.h>
10 
11 #include <verdigris>
12 
13 namespace score
14 {
15 
16 struct SCORE_LIB_BASE_EXPORT QGraphicsLineEdit : public QGraphicsTextItem
17 {
18  W_OBJECT(QGraphicsLineEdit)
19  SCORE_GRAPHICS_ITEM_TYPE(80)
20 public:
21  explicit QGraphicsLineEdit(QGraphicsItem* parent);
22 
23  void dropEvent(QGraphicsSceneDragDropEvent* drop) override;
24  void focusOutEvent(QFocusEvent* e) override;
25  QVariant itemChange(GraphicsItemChange change, const QVariant& value) override;
26 
27  void checkSize();
28 
29  void sizeChanged(QSizeF sz) E_SIGNAL(SCORE_LIB_BASE_EXPORT, sizeChanged, sz)
30  void editingFinished() E_SIGNAL(SCORE_LIB_BASE_EXPORT, editingFinished)
31 
32 private:
33  QRectF m_previousSize;
34 };
35 
36 }
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: QGraphicsLineEdit.hpp:17