|
|
@ -45,8 +45,6 @@ PrimitivesView::PrimitivesView(QWidget *parent)
|
|
|
|
|
|
|
|
|
|
|
|
connect(m_deleteAction, SIGNAL(triggered()), this, SLOT(deletePrimitives()));
|
|
|
|
connect(m_deleteAction, SIGNAL(triggered()), this, SLOT(deletePrimitives()));
|
|
|
|
|
|
|
|
|
|
|
|
connect(this, SIGNAL(clicked(QModelIndex)), this, SLOT(clickedItem(QModelIndex)));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef Q_OS_DARWIN
|
|
|
|
#ifdef Q_OS_DARWIN
|
|
|
|
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
|
|
|
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -62,10 +60,6 @@ void PrimitivesView::setModel(PrimitivesTreeModel *model)
|
|
|
|
m_primitivesTreeModel = model;
|
|
|
|
m_primitivesTreeModel = model;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void PrimitivesView::clickedItem(const QModelIndex &index)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void PrimitivesView::deletePrimitives()
|
|
|
|
void PrimitivesView::deletePrimitives()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QModelIndexList indexList = selectionModel()->selectedRows();
|
|
|
|
QModelIndexList indexList = selectionModel()->selectedRows();
|
|
|
|