wordlist.cpp 747 B

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