Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

34 rader
538 B

  1. #ifndef PLC_H
  2. #define PLC_H
  3. #include <QGraphicsScene>
  4. #include <QWidget>
  5. namespace Ui {
  6. class PLC;
  7. }
  8. class PLC : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit PLC(QWidget *parent = nullptr);
  13. ~PLC();
  14. void createComponents();
  15. protected:
  16. bool eventFilter(QObject *obj, QEvent *event) override;
  17. private slots:
  18. void onListwidgetCurrenttextchanged(const QString &currentText);
  19. void btnInsertClicked();
  20. private:
  21. Ui::PLC *ui;
  22. QGraphicsScene *m_scene;
  23. QString selectedComponentType;
  24. };
  25. #endif // PLC_H