View | Details | Raw Unified | Return to bug 210900
Collapse All | Expand All

(-)devel/qtcreator/Makefile (-2 / +1 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	qtcreator
4
PORTNAME=	qtcreator
5
DISTVERSION=	4.0.2
5
DISTVERSION=	4.0.3
6
PORTREVISION=	1
7
CATEGORIES=	devel
6
CATEGORIES=	devel
8
MASTER_SITES=	QT/official_releases/qtcreator/${DISTVERSION:R}/${DISTVERSION}
7
MASTER_SITES=	QT/official_releases/qtcreator/${DISTVERSION:R}/${DISTVERSION}
9
DISTNAME=	qt-creator-opensource-src-${DISTVERSION}
8
DISTNAME=	qt-creator-opensource-src-${DISTVERSION}
(-)devel/qtcreator/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1466350737
1
TIMESTAMP = 1467899547
2
SHA256 (KDE/Qt/qtcreator/qt-creator-opensource-src-4.0.2.tar.gz) = c2fce74fef0cc3a8f5c03d7ed1e95ccfe508d855ee750647896876824fcaee10
2
SHA256 (KDE/Qt/qtcreator/qt-creator-opensource-src-4.0.3.tar.gz) = a213a9b66e7e0eb906036a1587256fc0f7bac33912d9ae5e6117459231f56449
3
SIZE (KDE/Qt/qtcreator/qt-creator-opensource-src-4.0.2.tar.gz) = 21651190
3
SIZE (KDE/Qt/qtcreator/qt-creator-opensource-src-4.0.3.tar.gz) = 21972901
(-)devel/qtcreator/files/patch-src_plugins_android_android.pro (-15 lines)
Lines 1-12 Link Here
1
--- src/plugins/android/android.pro.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/android/android.pro
3
@@ -89,7 +89,8 @@ SOURCES += \
4
     avddialog.cpp \
5
     androidbuildapkstep.cpp \
6
     androidbuildapkwidget.cpp \
7
-    androidqtsupport.cpp
8
+    androidqtsupport.cpp \
9
+    androidrunnable.cpp
10
 
11
 FORMS += \
12
     androidsettingswidget.ui \
13
yes
14
native
15
text/plain
(-)devel/qtcreator/files/patch-src_plugins_android_android.qbs (-13 lines)
Lines 1-10 Link Here
1
--- src/plugins/android/android.qbs.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/android/android.qbs
3
@@ -76,6 +76,7 @@ QtcPlugin {
4
         "androidruncontrol.h",
5
         "androidrunfactories.cpp",
6
         "androidrunfactories.h",
7
+        "androidrunnable.cpp",
8
         "androidrunnable.h",
9
         "androidrunner.cpp",
10
         "androidrunner.h",
11
yes
12
native
13
text/plain
(-)devel/qtcreator/files/patch-src_plugins_android_androiddevice.cpp (-14 lines)
Lines 1-11 Link Here
1
--- src/plugins/android/androiddevice.cpp.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/android/androiddevice.cpp
3
@@ -27,6 +27,8 @@
4
 #include "androidconstants.h"
5
 #include "androidsignaloperation.h"
6
 
7
+#include <projectexplorer/runnables.h>
8
+
9
 #include <QCoreApplication>
10
 
11
 using namespace ProjectExplorer;
12
yes
13
native
14
text/plain
(-)devel/qtcreator/files/patch-src_plugins_android_androidrunnable.cpp (-38 lines)
Lines 1-35 Link Here
1
--- src/plugins/android/androidrunnable.cpp.orig	2016-06-21 16:54:43 UTC
2
+++ src/plugins/android/androidrunnable.cpp
3
@@ -0,0 +1,32 @@
4
+/****************************************************************************
5
+**
6
+** Copyright (C) 2016 The Qt Company Ltd.
7
+** Contact: https://www.qt.io/licensing/
8
+**
9
+** This file is part of Qt Creator.
10
+**
11
+** Commercial License Usage
12
+** Licensees holding valid commercial Qt licenses may use this file in
13
+** accordance with the commercial license agreement provided with the
14
+** Software or, alternatively, in accordance with the terms contained in
15
+** a written agreement between you and The Qt Company. For licensing terms
16
+** and conditions see https://www.qt.io/terms-conditions. For further
17
+** information use the contact form at https://www.qt.io/contact-us.
18
+**
19
+** GNU General Public License Usage
20
+** Alternatively, this file may be used under the terms of the GNU
21
+** General Public License version 3 as published by the Free Software
22
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
23
+** included in the packaging of this file. Please review the following
24
+** information to ensure the GNU General Public License requirements will
25
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
26
+**
27
+****************************************************************************/
28
+
29
+#include "androidrunnable.h"
30
+
31
+namespace Android {
32
+
33
+void *AndroidRunnable::staticTypeId = &AndroidRunnable::staticTypeId;
34
+
35
+} // namespace Android
36
yes
37
native
38
text/plain
(-)devel/qtcreator/files/patch-src_plugins_android_androidrunnable.h (-14 lines)
Lines 1-11 Link Here
1
--- src/plugins/android/androidrunnable.h.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/android/androidrunnable.h
3
@@ -40,6 +40,8 @@ struct ANDROID_EXPORT AndroidRunnable
4
     QVector<QStringList> beforeStartADBCommands;
5
     QVector<QStringList> afterFinishADBCommands;
6
     QString deviceSerialNumber;
7
+
8
+    static void *staticTypeId;
9
 };
10
 
11
 inline bool operator==(const AndroidRunnable &r1, const AndroidRunnable &r2)
12
yes
13
native
14
text/plain
(-)devel/qtcreator/files/patch-src_plugins_debugger_analyzer_analyzerstartparameters.h (-14 lines)
Lines 1-11 Link Here
1
--- src/plugins/debugger/analyzer/analyzerstartparameters.h.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/debugger/analyzer/analyzerstartparameters.h
3
@@ -42,6 +42,8 @@ public:
4
     QString analyzerHost;
5
     QString analyzerSocket;
6
     quint16 analyzerPort = 0;
7
+
8
+    static void *staticTypeId;
9
 };
10
 
11
 DEBUGGER_EXPORT bool operator==(const AnalyzerConnection &c1, const AnalyzerConnection &c2);
12
yes
13
native
14
text/plain
(-)devel/qtcreator/files/patch-src_plugins_debugger_debuggerplugin.cpp (-15 lines)
Lines 1-12 Link Here
1
--- src/plugins/debugger/debuggerplugin.cpp.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/debugger/debuggerplugin.cpp
3
@@ -3834,6 +3834,9 @@ QList<QObject *> DebuggerPlugin::createT
4
 #endif // if  WITH_TESTS
5
 
6
 } // namespace Internal
7
+
8
+void *AnalyzerConnection::staticTypeId = &AnalyzerConnection::staticTypeId;
9
+
10
 } // namespace Debugger
11
 
12
 #include "debuggerplugin.moc"
13
yes
14
native
15
text/plain
(-)devel/qtcreator/files/patch-src_plugins_projectexplorer_customwizard_customwizard.cpp (-16 lines)
Lines 1-13 Link Here
1
--- src/plugins/projectexplorer/customwizard/customwizard.cpp.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/projectexplorer/customwizard/customwizard.cpp
3
@@ -28,8 +28,9 @@
4
 #include "customwizardpage.h"
5
 #include "customwizardscriptgenerator.h"
6
 
7
-#include <projectexplorer/projectexplorer.h>
8
 #include <projectexplorer/baseprojectwizarddialog.h>
9
+#include <projectexplorer/projectexplorer.h>
10
+#include <projectexplorer/runconfiguration.h>
11
 
12
 #include <coreplugin/icore.h>
13
 #include <coreplugin/messagemanager.h>
14
yes
15
native
16
text/plain
(-)devel/qtcreator/files/patch-src_plugins_projectexplorer_devicesupport_desktopdevice.cpp (-13 lines)
Lines 1-10 Link Here
1
--- src/plugins/projectexplorer/devicesupport/desktopdevice.cpp.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/projectexplorer/devicesupport/desktopdevice.cpp
3
@@ -30,6 +30,7 @@
4
 #include "desktopdeviceconfigurationwidget.h"
5
 #include "desktopprocesssignaloperation.h"
6
 #include <projectexplorer/projectexplorerconstants.h>
7
+#include <projectexplorer/runnables.h>
8
 
9
 #include <ssh/sshconnection.h>
10
 
11
yes
12
native
13
text/plain
(-)devel/qtcreator/files/patch-src_plugins_projectexplorer_devicesupport_idevice.cpp (-20 lines)
Lines 1-17 Link Here
1
--- src/plugins/projectexplorer/devicesupport/idevice.cpp.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/projectexplorer/devicesupport/idevice.cpp
3
@@ -30,6 +30,7 @@
4
 
5
 #include "../kit.h"
6
 #include "../kitinformation.h"
7
+#include "../runnables.h"
8
 
9
 #include <ssh/sshconnection.h>
10
 #include <utils/portlist.h>
11
@@ -466,4 +467,6 @@ DeviceEnvironmentFetcher::DeviceEnvironm
12
 {
13
 }
14
 
15
+void *HostName::staticTypeId = &HostName::staticTypeId;
16
+
17
 } // namespace ProjectExplorer
18
yes
19
native
20
text/plain
(-)devel/qtcreator/files/patch-src_plugins_projectexplorer_runconfiguration.h (-50 lines)
Lines 1-47 Link Here
1
--- src/plugins/projectexplorer/runconfiguration.h.orig	2016-06-24 12:44:00 UTC
2
+++ src/plugins/projectexplorer/runconfiguration.h
3
@@ -159,6 +159,7 @@ public:
4
     virtual ~ClonableConcept() = default;
5
     virtual ClonableConcept *clone() const = 0;
6
     virtual bool equals(const std::unique_ptr<ClonableConcept> &other) const = 0;
7
+    virtual void *typeId() const = 0;
8
 };
9
 
10
 template <class T>
11
@@ -168,11 +169,16 @@ public:
12
     ClonableModel(const T &data) : m_data(data) { }
13
     ~ClonableModel() Q_DECL_NOEXCEPT { } // gcc 4.7.3
14
     ClonableConcept *clone() const override { return new ClonableModel(*this); }
15
+    void *typeId() const { return T::staticTypeId; }
16
 
17
     bool equals(const std::unique_ptr<ClonableConcept> &other) const override
18
     {
19
-        auto that = dynamic_cast<const ClonableModel<T> *>(other.get());
20
-        return that && m_data == that->m_data;
21
+        if (!other.get())
22
+            return false;
23
+        if (other->typeId() != typeId())
24
+            return false;
25
+        auto that = static_cast<const ClonableModel<T> *>(other.get());
26
+        return m_data == that->m_data;
27
     }
28
 
29
     T m_data;
30
@@ -189,7 +195,7 @@ public:
31
     void operator=(Runnable other) { d = std::move(other.d); }
32
 
33
     template <class T> bool is() const {
34
-        return dynamic_cast<ClonableModel<T> *>(d.get()) != 0;
35
+        return d.get()->typeId() == T::staticTypeId;
36
     }
37
 
38
     template <class T> const T &as() const {
39
@@ -213,7 +219,7 @@ public:
40
     void operator=(Connection other) { d = std::move(other.d); }
41
 
42
     template <class T> bool is() const {
43
-        return dynamic_cast<ClonableModel<T> *>(d.get()) != 0;
44
+        return d.get()->typeId() == T::staticTypeId;
45
     }
46
 
47
     template <class T> const T &as() const {
48
yes
49
native
50
text/plain
(-)devel/qtcreator/files/patch-src_plugins_projectexplorer_runnables.cpp (-12 lines)
Lines 1-9 Link Here
1
--- src/plugins/projectexplorer/runnables.cpp.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/projectexplorer/runnables.cpp
3
@@ -35,4 +35,6 @@ bool operator==(const StandardRunnable &
4
         && r1.environment == r2.environment;
5
 }
6
 
7
+void *StandardRunnable::staticTypeId = &StandardRunnable::staticTypeId;
8
+
9
 } // namespace ProjectExplorer
10
yes
11
native
12
text/plain
(-)devel/qtcreator/files/patch-src_plugins_projectexplorer_runnables.h (-28 lines)
Lines 1-25 Link Here
1
--- src/plugins/projectexplorer/runnables.h.orig	2016-06-21 13:37:35 UTC
2
+++ src/plugins/projectexplorer/runnables.h
3
@@ -43,8 +43,22 @@ public:
4
     Utils::Environment environment;
5
     ApplicationLauncher::Mode runMode = ApplicationLauncher::Gui;
6
     IDevice::ConstPtr device; // Override the kit's device. Keep unset by default.
7
+
8
+    static void *staticTypeId;
9
 };
10
 
11
 PROJECTEXPLORER_EXPORT bool operator==(const StandardRunnable &r1, const StandardRunnable &r2);
12
 
13
+class PROJECTEXPLORER_EXPORT HostName
14
+{
15
+public:
16
+    explicit HostName(const QString &host) : m_host(host) {}
17
+    QString host() const { return m_host; }
18
+
19
+    static void *staticTypeId;
20
+
21
+private:
22
+    QString m_host;
23
+};
24
+
25
 } // namespace ProjectExplorer
26
yes
27
native
28
text/plain

Return to bug 210900