toolprops.cpp 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "toolprops.h"
  2. #include <qvariant.h>
  3. #include <qimage.h>
  4. #include <qpixmap.h>
  5. #include "toolprops.ui.h"
  6. /*
  7. * Constructs a ToolProperties 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. ToolProperties::ToolProperties(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. ToolProperties::~ToolProperties()
  23. {
  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 ToolProperties::languageChange()
  31. {
  32. retranslateUi(this);
  33. }