tizenqtversion.cpp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2013 Jarek Pelczar <jpelczar@gmail.com>
  4. **
  5. ** This file is part of Qt Creator.
  6. **
  7. ** Commercial License Usage
  8. ** Licensees holding valid commercial Qt licenses may use this file in
  9. ** accordance with the commercial license agreement provided with the
  10. ** Software or, alternatively, in accordance with the terms contained in
  11. ** a written agreement between you and Digia. For licensing terms and
  12. ** conditions see http://qt.digia.com/licensing. For further information
  13. ** use the contact form at http://qt.digia.com/contact-us.
  14. **
  15. ** GNU Lesser General Public License Usage
  16. ** Alternatively, this file may be used under the terms of the GNU Lesser
  17. ** General Public License version 2.1 as published by the Free Software
  18. ** Foundation and appearing in the file LICENSE.LGPL included in the
  19. ** packaging of this file. Please review the following information to
  20. ** ensure the GNU Lesser General Public License version 2.1 requirements
  21. ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
  22. **
  23. ** In addition, as a special exception, Digia gives you certain additional
  24. ** rights. These rights are described in the Digia Qt LGPL Exception
  25. ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
  26. **
  27. ****************************************************************************/
  28. #include "tizenqtversion.h"
  29. #include "tizenconstants.h"
  30. #include <qtsupport/qtsupportconstants.h>
  31. #include <QCoreApplication>
  32. using namespace QtSupport;
  33. namespace Tizen {
  34. TizenQtVersion::TizenQtVersion()
  35. {
  36. }
  37. TizenQtVersion::TizenQtVersion(const Utils::FileName &path, bool isAutodetected, const QString &autodetectionSource) :
  38. BaseQtVersion(path, isAutodetected, autodetectionSource)
  39. {
  40. setDisplayName(defaultDisplayName(qtVersionString(), path, false));
  41. }
  42. TizenQtVersion::~TizenQtVersion()
  43. {
  44. }
  45. QtSupport::BaseQtVersion * TizenQtVersion::clone() const
  46. {
  47. return new TizenQtVersion(*this);
  48. }
  49. QString TizenQtVersion::type() const
  50. {
  51. return QLatin1String(Constants::TIZEN_QT);
  52. }
  53. QList<ProjectExplorer::Abi> TizenQtVersion::detectQtAbis() const
  54. {
  55. return qtAbisFromLibrary(qtCorePath(versionInfo(), qtVersionString()));
  56. }
  57. QString TizenQtVersion::description() const
  58. {
  59. return QCoreApplication::translate("QtVersion", "Tizen Qt", "Qt version used for Tizen application development");
  60. }
  61. QString TizenQtVersion::platformName() const
  62. {
  63. return QLatin1String(Constants::TIZEN_PLATFORM);
  64. }
  65. QString TizenQtVersion::platformDisplayName() const
  66. {
  67. return QLatin1String(Constants::TIZEN_PLATFORM_TR);
  68. }
  69. } // namespace Tizen