Claudio Valerio 13 years ago
parent d68abb8165
commit 974926e2af
  1. 1
      src/adaptors/UBSvgSubsetAdaptor.cpp
  2. 1
      src/core/UB.h
  3. 2
      src/gui/UBLibNavigatorWidget.cpp
  4. 6
      src/tools/UBGraphicsCache.h

@ -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();

Loading…
Cancel
Save