summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport/gettingstartedwelcomepage.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-01-16 18:06:28 +0100
committerhjk <hjk@qt.io>2017-01-19 10:54:50 +0000
commit89a3dbb5468add639b9eb9a8ea8a99b6bdb08662 (patch)
tree88f16f0f2c284e39e3e9f96e063900ad93f2034f /src/plugins/qtsupport/gettingstartedwelcomepage.h
parentd5ac800b90ca8f12682c68530938c7490d0fe052 (diff)
downloadqt-creator-89a3dbb5468add639b9eb9a8ea8a99b6bdb08662.tar.gz
QtSupport: Fix and simplify ExampleListModel
This mainly removes no more needed glue code and fixes a recent regression where the example set picker combobox on the Examples welcome page always displayed the name of the first item, no matter which set was displayed on the main canvas Task-number: QTCREATORBUG-15727 Change-Id: I15b4c97f2e079a7470f6f63cde587dd4be58c40e Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/qtsupport/gettingstartedwelcomepage.h')
-rw-r--r--src/plugins/qtsupport/gettingstartedwelcomepage.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/qtsupport/gettingstartedwelcomepage.h b/src/plugins/qtsupport/gettingstartedwelcomepage.h
index 8a78ceffe9..61db65f8ea 100644
--- a/src/plugins/qtsupport/gettingstartedwelcomepage.h
+++ b/src/plugins/qtsupport/gettingstartedwelcomepage.h
@@ -37,6 +37,7 @@ namespace QtSupport {
namespace Internal {
class ExamplesListModel;
+class ExampleItem;
class ExamplesWelcomePage : public Core::IWelcomePage
{
@@ -50,10 +51,7 @@ public:
Core::Id id() const final;
QWidget *createWidget() const final;
- static void openHelpInExtraWindow(const QUrl &help);
- static void openProject(const QString& projectFile, const QStringList& additionalFilesToOpen,
- const QString &mainFile, const QUrl &help,
- const QStringList &dependencies, const QStringList &platforms);
+ static void openProject(const ExampleItem &item);
private:
static QString copyToAlternativeLocation(const QFileInfo &fileInfo, QStringList &filesToOpen, const QStringList &dependencies);