projectoptions.cpp 853 B

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