Qt Quick based coffee brewing control chart.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

newpointcontrol.cpp 701B

123456789101112131415161718192021
  1. #include <QBoxLayout>
  2. #include <QFormLayout>
  3. #include <QLineEdit>
  4. #include <QPushButton>
  5. #include "newpointcontrol.h"
  6. NewPointControl::NewPointControl(QWidget *parent) :
  7. QWidget(parent)
  8. {
  9. QVBoxLayout *layout = new QVBoxLayout;
  10. QFormLayout *flayout = new QFormLayout;
  11. QLineEdit *groundsMass = new QLineEdit;
  12. QLineEdit *brewMass = new QLineEdit;
  13. QLineEdit *tds = new QLineEdit;
  14. QPushButton *plot = new QPushButton(tr("Plot"));
  15. flayout->addRow(tr("Mass of ground coffee:"), groundsMass);
  16. flayout->addRow(tr("Mass of brewed coffee:"), brewMass);
  17. flayout->addRow(tr("% total dissolved solids:"), tds);
  18. layout->addLayout(flayout);
  19. layout->addWidget(plot);
  20. }