ondetectplan.cpp 528 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "ondetectplan.h"
  2. #include "ui_ondetectplan.h"
  3. #include "timewidget.h"
  4. #include "customcombobox.h"
  5. OnDetectPlan::OnDetectPlan(QWidget *parent) :
  6. QWidget(parent),
  7. ui(new Ui::OnDetectPlan)
  8. {
  9. ui->setupUi(this);
  10. /* 设置下拉框阴影 */
  11. ui->comboBox->setViewShadowEffect();
  12. }
  13. OnDetectPlan::~OnDetectPlan()
  14. {
  15. delete ui;
  16. }
  17. /* 设置QSS */
  18. void OnDetectPlan::setQSS(const QString &qss)
  19. {
  20. if(qss.isEmpty())
  21. {
  22. return;
  23. }
  24. /* 设置QSS */
  25. this->setStyleSheet(qss);
  26. }