Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1KB

  1. /*
  2. * DISTRHO Plugin Toolkit (DPT)
  3. * Copyright (C) 2012-2013 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * For a full copy of the license see the LGPL.txt file
  15. */
  16. #include "DistrhoUIInternal.hpp"
  17. #include <QtGui/QResizeEvent>
  18. START_NAMESPACE_DISTRHO
  19. // -------------------------------------------------
  20. // Qt UI
  21. QtUI::QtUI()
  22. : UI(),
  23. QWidget(nullptr)
  24. {
  25. }
  26. QtUI::~QtUI()
  27. {
  28. }
  29. // -------------------------------------------------
  30. void QtUI::setSize(unsigned int width, unsigned int height)
  31. {
  32. if (d_resizable())
  33. resize(width, height);
  34. else
  35. setFixedSize(width, height);
  36. d_uiResize(width, height);
  37. }
  38. // -------------------------------------------------
  39. END_NAMESPACE_DISTRHO