src/tools/selecttool.h

changeset 143
7b62c52835a1
parent 126
a7c720aff97c
child 152
03f8e6d42e13
equal deleted inserted replaced
142:e085f36e4d9f 143:7b62c52835a1
5 class SelectTool : public BaseTool 5 class SelectTool : public BaseTool
6 { 6 {
7 Q_OBJECT 7 Q_OBJECT
8 8
9 public: 9 public:
10 Q_INVOKABLE SelectTool(Model* model, QObject* parent = nullptr); 10 Q_INVOKABLE SelectTool(Model* model, QWidget* parent = nullptr);
11
12 QString name() const override; 11 QString name() const override;
13 QString toolTip() const override; 12 QString toolTip() const override;
14 bool mouseClick(Document*, Canvas*, QMouseEvent*) override; 13 bool mouseClick(Document*, Canvas*, QMouseEvent*) override;
15 QWidget* toolWidget() override; 14 QWidget* toolWidget() override;
16 void selectionChanged(const QSet<ldraw::id_t> &newSelection) override; 15 void selectionChanged(const QSet<ldraw::id_t> &newSelection) override;
17 ObjectEditor objectEditor; 16 ObjectEditor* objectEditor;
18 }; 17 };

mercurial