QsHBoxLayout.h 408 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <QtWidgets/qwidget.h>
  3. #include <QtWidgets/qlayout.h>
  4. #include <string>
  5. #include <Kaguya/kaguya.hpp>
  6. #include "yqlua/QsWidget.h"
  7. class QsHBoxLayout
  8. {
  9. public:
  10. QsHBoxLayout();
  11. ~QsHBoxLayout();
  12. QLayout* layout() { return m_layout; }
  13. static void regist(kaguya::State& T);
  14. private:
  15. void addStretch();
  16. void addWidget(QsWidget* widget);
  17. private:
  18. QHBoxLayout* m_layout = nullptr;
  19. };