newsdlg.cpp 788 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "newsdlg.h"
  2. #include <qvariant.h>
  3. #include <qimage.h>
  4. #include <qpixmap.h>
  5. #include "newsdlg.ui.h"
  6. /*
  7. * Constructs a NewsDialog 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. NewsDialog::NewsDialog(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
  14. : QDialog(parent, name, modal, fl)
  15. {
  16. setupUi(this);
  17. }
  18. /*
  19. * Destroys the object and frees any allocated resources
  20. */
  21. NewsDialog::~NewsDialog()
  22. {
  23. // no need to delete child widgets, Qt does it all for us
  24. }
  25. /*
  26. * Sets the strings of the subwidgets using the current
  27. * language.
  28. */
  29. void NewsDialog::languageChange()
  30. {
  31. retranslateUi(this);
  32. }