srcfilewin.cpp 746 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "srcfilewin.h"
  2. #include <qvariant.h>
  3. #include <qimage.h>
  4. #include <qpixmap.h>
  5. #include "srcfilewin.ui.h"
  6. /*
  7. * Constructs a SourceFileWindow as a child of 'parent', with the
  8. * name 'name' and widget flags set to 'f'.
  9. *
  10. */
  11. SourceFileWindow::SourceFileWindow(QWidget* parent, const char* name, Qt::WindowFlags fl)
  12. : Q3MainWindow(parent, name, fl)
  13. {
  14. setupUi(this);
  15. (void)statusBar();
  16. }
  17. /*
  18. * Destroys the object and frees any allocated resources
  19. */
  20. SourceFileWindow::~SourceFileWindow()
  21. {
  22. destroy();
  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 SourceFileWindow::languageChange()
  30. {
  31. retranslateUi(this);
  32. }