TaskbarComponent.cpp 660 B

12345678910111213141516171819202122232425
  1. #include "TaskbarComponent.h"
  2. #if defined(Q_OS_WIN32)
  3. #include "TaskbarComponentWin.h"
  4. #endif
  5. /////////////////////////////////////////////////////////////////////////////////////////
  6. TaskbarComponent& TaskbarComponent::Get()
  7. {
  8. #if defined(Q_OS_WIN32)
  9. static TaskbarComponentWin instance;
  10. return instance;
  11. #else
  12. qWarning() << "Could not find a taskbar component matching this platform. Taskbar functions disabled.";
  13. static TaskbarComponent instance;
  14. return instance;
  15. #endif
  16. }
  17. /////////////////////////////////////////////////////////////////////////////////////////
  18. void TaskbarComponent::setWindow(QQuickWindow* window)
  19. {
  20. m_window = window;
  21. }