programoutput.cpp 744 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "programoutput.h"
  2. #include <QVariant>
  3. /*
  4. * Constructs a ProgramOutput as a child of 'parent', with the
  5. * name 'name' and widget flags set to 'f'.
  6. *
  7. * The dialog will by default be modeless, unless you set 'modal' to
  8. * true to construct a modal dialog.
  9. */
  10. ProgramOutput::ProgramOutput(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
  11. : QDialog(parent, name, modal, fl)
  12. {
  13. setupUi(this);
  14. }
  15. /*
  16. * Destroys the object and frees any allocated resources
  17. */
  18. ProgramOutput::~ProgramOutput()
  19. {
  20. // no need to delete child widgets, Qt does it all for us
  21. }
  22. /*
  23. * Sets the strings of the subwidgets using the current
  24. * language.
  25. */
  26. void ProgramOutput::languageChange()
  27. {
  28. retranslateUi(this);
  29. }