From 812c3cafce538d542da618ec09926ef03f180a85 Mon Sep 17 00:00:00 2001 From: Anna Udovichenko Date: Thu, 3 May 2012 19:42:51 +0300 Subject: [PATCH] fixed not worked features widget --- src/board/UBFeaturesController.h | 6 +++--- src/gui/UBFeaturesWidget.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/board/UBFeaturesController.h b/src/board/UBFeaturesController.h index 5b56d8c4..92008227 100644 --- a/src/board/UBFeaturesController.h +++ b/src/board/UBFeaturesController.h @@ -59,7 +59,7 @@ public: UBFeaturesController(QWidget *parentWidget); virtual ~UBFeaturesController(); - const QList & getFeatures()const { return featuresList; } + QList * getFeatures()const { return featuresList; } const QString& getRootPath()const { return rootPath; } @@ -89,7 +89,7 @@ private: static UBFeatureElementType fileTypeFromUrl( const QString &path ); - QList featuresList; + QList *featuresList; UBFeature *rootElement; QString mUserAudioDirectoryPath; @@ -132,7 +132,7 @@ private: UBFeature shapesElement; UBFeature searchElement; - QSet favoriteSet; + QSet *favoriteSet; }; diff --git a/src/gui/UBFeaturesWidget.h b/src/gui/UBFeaturesWidget.h index 614c0335..faaea0c4 100644 --- a/src/gui/UBFeaturesWidget.h +++ b/src/gui/UBFeaturesWidget.h @@ -205,9 +205,9 @@ public: Qt::DropActions supportedDropActions() const { return Qt::MoveAction | Qt::CopyAction; } - void setFeaturesList(const QList &flist ) { featuresList = flist; } + void setFeaturesList(QList *flist ) { featuresList = flist; } private: - QList featuresList; + QList *featuresList; }; class UBFeaturesProxyModel : public QSortFilterProxyModel