27 #include "../../../../common/STLUtils.h"
28 #include "../../../../common/Translator.h"
29 #include "../../../../dataaccess/dataset/DataSetType.h"
30 #include "../../../../dataaccess/dataset/Index.h"
31 #include "../../../../dataaccess/datasource/DataSource.h"
32 #include "../../../../dataaccess/utils/Utils.h"
33 #include "../../Exception.h"
58 if(role == Qt::DecorationRole)
59 return QVariant(QIcon::fromTheme(
"indexes"));
61 if(role == Qt::DisplayRole)
62 return QVariant(QString(
"indexes"));
69 QMenu* m =
new QMenu(parent);
71 QAction* aOpenIndexes = m->addAction(tr(
"&Open indexes"));
73 connect(aOpenIndexes, SIGNAL(triggered()),
this, SLOT(openIndexes()));
80 if(!children().empty())
88 return Qt::NoItemFlags;
110 const std::size_t nidxs = dt->getNumberOfIndexes();
112 for(std::size_t i = 0; i < nidxs; ++i)
135 return dt->getNumberOfIndexes() != 0;
boost::shared_ptr< DataSetType > DataSetTypePtr
A class that represents an index in a TreeModel.
A class used to group a set of indexes from a dataset in a TreeModel.