Commit 974926e2 authored by Claudio Valerio's avatar Claudio Valerio
parent d68abb81
......@@ -1058,7 +1058,6 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene()
continue;
}
qDebug() << item;
UBGraphicsCache* cache = qgraphicsitem_cast<UBGraphicsCache*>(item);
if(cache && cache->isVisible())
{
......
......@@ -99,6 +99,7 @@ struct UBGraphicsItemType
StrokeItemType,
TriangleItemType,
MagnifierItemType,
cacheItemType
};
};
......
......@@ -73,6 +73,8 @@ UBLibNavigatorWidget::UBLibNavigatorWidget(QWidget *parent, const char *name):QW
connect(libWidget->actionBar(), SIGNAL(searchElement(QString)), mLibWidget, SLOT(onSearchElement(QString)));
connect(libWidget->actionBar(), SIGNAL(newFolderToCreate()), mLibWidget, SLOT(onNewFolderToCreate()));
/*** to update the search bar **/
connect(mLibWidget, SIGNAL(itemClicked()),libWidget->actionBar(), SLOT(onItemChanged()));
connect(mPathViewer, SIGNAL(mouseClick(UBChainedLibElement*)),libWidget->actionBar(), SLOT(onItemChanged()));
......
......@@ -19,6 +19,7 @@
#include <QGraphicsSceneMouseEvent>
#include "domain/UBItem.h"
#include "core/UB.h"
#define CACHE_ZVALUE 100000
......@@ -33,6 +34,11 @@ class UBGraphicsCache : public QGraphicsRectItem, public UBItem
public:
UBGraphicsCache();
~UBGraphicsCache();
enum { Type = UBGraphicsItemType::cacheItemType };
virtual int type() const{ return Type;}
virtual UBItem* deepCopy() const;
QColor maskColor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment