mainform.cpp 706 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "mainform.h"
  2. #include <qvariant.h>
  3. #include <qimage.h>
  4. #include <qpixmap.h>
  5. #include "mainform.ui.h"
  6. /*
  7. * Constructs a MainForm as a child of 'parent', with the
  8. * name 'name' and widget flags set to 'f'.
  9. *
  10. */
  11. MainForm::MainForm(QWidget* parent, const char* name, Qt::WindowFlags fl)
  12. : Q3MainWindow(parent, name, fl)
  13. {
  14. setupUi(this);
  15. (void)statusBar();
  16. init();
  17. }
  18. /*
  19. * Destroys the object and frees any allocated resources
  20. */
  21. MainForm::~MainForm()
  22. {
  23. destroy();
  24. // no need to delete child widgets, Qt does it all for us
  25. }
  26. /*
  27. * Sets the strings of the subwidgets using the current
  28. * language.
  29. */
  30. void MainForm::languageChange()
  31. {
  32. retranslateUi(this);
  33. }