Autotest: Introduce ItemDataCache

Change-Id: Icbd703a8ddd3c5dea4a90d2c32c1866764bc0267
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2020-06-18 12:32:48 +02:00
parent 286d1832e6
commit dfd7bdd22a
4 changed files with 57 additions and 49 deletions

View File

@@ -27,6 +27,8 @@
#include "testrunner.h"
#include "testtreemodel.h"
#include <coreplugin/inavigationwidgetfactory.h>
#include <utils/navigationtreeview.h>
@@ -47,12 +49,8 @@ class ProgressIndicator;
}
namespace Autotest {
class TestTreeModel;
namespace Internal {
class TestTreeSortFilterModel;
class TestTreeView;
class TestNavigationWidget : public QWidget
@@ -86,8 +84,7 @@ private:
Utils::ProgressIndicator *m_progressIndicator;
QTimer *m_progressTimer;
QFrame *m_missingFrameworksWidget;
QHash<QString, bool> m_expandedStateCache;
QHash<QString, int> m_itemUseCache;
ItemDataCache<bool> m_expandedStateCache;
};
class TestNavigationWidgetFactory : public Core::INavigationWidgetFactory