EditorCommon.cpp 486 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include "EditorCommon.h"
  9. #include <QApplication>
  10. #include <QMimeData>
  11. #include <QClipboard>
  12. bool ClipboardContainsOurDataType()
  13. {
  14. const QMimeData* mimeData = QApplication::clipboard()->mimeData();
  15. return mimeData->hasFormat(UICANVASEDITOR_MIMETYPE);
  16. }