summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@digia.com>2014-04-08 06:32:25 +0200
committerAlessandro Portale <alessandro.portale@digia.com>2014-04-08 11:51:38 +0200
commit0b53638a75cf66357fc16639cbfd011b61e8e5db (patch)
tree9819a4f1005e58dcf05228535ffa603494db9926 /src/plugins/qtsupport
parent5ba6fc0195cdfaa26508ea6840339df144e6a867 (diff)
downloadqt-creator-0b53638a75cf66357fc16639cbfd011b61e8e5db.tar.gz
Revert "Welcome: Store examples search text in settings"
This reverts commit 894ade6f1e2767a8866642a4ea278659730c26d8 Storing the search text was not thought well through. It causes bad user experience. Also, the real solution for showing filtered Example sets in the chooser is coming here: https://codereview.qt-project.org/#change,82906 Change-Id: Ibb51bf5c0fa08fdeb8530a19d823ba97a3c167d1 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/qtsupport')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp11
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.h2
2 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index ebab776318..22f4bf66d1 100644
--- a/src/plugins/qtsupport/exampleslistmodel.cpp
+++ b/src/plugins/qtsupport/exampleslistmodel.cpp
@@ -54,7 +54,6 @@ static bool debugExamples()
}
static const char kSelectedExampleSetKey[] = "WelcomePage/SelectedExampleSet";
-static const char kExamplesSearchStringKey[] = "WelcomePage/ExamplesSearchString";
void ExampleSetModel::writeCurrentIdToSettings(int currentIndex) const
{
@@ -842,16 +841,6 @@ void ExamplesListModelFilter::filterForExampleSet(int index)
m_sourceModel->selectExampleSet(index);
}
-void ExamplesListModelFilter::writeSearchStringToSettings(const QString &string)
-{
- Core::ICore::settings()->setValue(QLatin1String(kExamplesSearchStringKey), string);
-}
-
-QString ExamplesListModelFilter::readSearchStringsFromSettings()
-{
- return Core::ICore::settings()->value(QLatin1String(kExamplesSearchStringKey)).toString();
-}
-
void ExamplesListModelFilter::setShowTutorialsOnly(bool showTutorialsOnly)
{
m_showTutorialsOnly = showTutorialsOnly;
diff --git a/src/plugins/qtsupport/exampleslistmodel.h b/src/plugins/qtsupport/exampleslistmodel.h
index ae30ec9290..6a2607de74 100644
--- a/src/plugins/qtsupport/exampleslistmodel.h
+++ b/src/plugins/qtsupport/exampleslistmodel.h
@@ -185,8 +185,6 @@ public:
QAbstractItemModel* exampleSetModel();
Q_INVOKABLE void filterForExampleSet(int index);
- Q_INVOKABLE void writeSearchStringToSettings(const QString &string);
- Q_INVOKABLE QString readSearchStringsFromSettings();
public slots:
void setFilterTags(const QStringList &arg)