Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

34 рядки
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