ctkExtensionFactory.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. All rights reserved.
  5. Distributed under a BSD License. See LICENSE.txt file.
  6. This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the above copyright notice for more information.
  9. =========================================================================*/
  10. // CTK includes
  11. #include "ctkExtensionFactory.h"
  12. // #include "ctkCollapsibleWidgetContainerExtension.h"
  13. // #include "ctkCollapsibleWidget.h"
  14. // --------------------------------------------------------------------------
  15. ctkExtensionFactory::ctkExtensionFactory(QExtensionManager *_parent)
  16. : QExtensionFactory(_parent)
  17. {
  18. }
  19. // --------------------------------------------------------------------------
  20. QObject *ctkExtensionFactory::createExtension(QObject *object,
  21. const QString &iid,
  22. QObject *_parent) const
  23. {
  24. Q_UNUSED(object);
  25. Q_UNUSED(iid);
  26. Q_UNUSED(_parent);
  27. // ctkCollapsibleWidget *widget = qobject_cast<ctkCollapsibleWidget*>(object);
  28. //
  29. // if (widget && (iid == Q_TYPEID(QDesignerContainerExtension))) {
  30. // return new ctkCollapsibleWidgetContainerExtension(widget, parent);
  31. // } else {
  32. // return 0;
  33. // }
  34. return 0;
  35. }