SettingCardGroup.h 525 B

12345678910111213141516171819202122232425262728
  1. #ifndef SETTINGCARDGROUP_H
  2. #define SETTINGCARDGROUP_H
  3. #include <QLabel>
  4. #include <QVBoxLayout>
  5. class ExpandLayout;
  6. class SettingCardGroup : public QWidget
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit SettingCardGroup(const QString &title, QWidget *parent = nullptr);
  11. void addSettingCard(QWidget *card);
  12. void addSettingCards(const QList<QWidget *> &cards);
  13. void adjustSize();
  14. QVBoxLayout *vBoxLayout;
  15. ExpandLayout *cardLayout;
  16. signals:
  17. private:
  18. QLabel *m_titleLabel;
  19. };
  20. #endif // SETTINGCARDGROUP_H