7 std::vector<QAction*>
GetActions(QList<QAction*> acts)
9 std::vector<QAction*> res;
10 QList<QAction*>::iterator it;
12 for(it=acts.begin(); it != acts.end(); ++it)
13 if((*it)->menu() ==
nullptr && !((*it)->text().isEmpty()) && !(*it)->icon().isNull())
28 const QModelIndex& )
const 30 return Qt::ItemIsEnabled | Qt::ItemIsUserCheckable;
40 case Qt::TextAlignmentRole:
41 return int(Qt::AlignVCenter | Qt::AlignLeft);
46 QString name =
m_actions[index.row()]->objectName();
47 int pos = name.lastIndexOf(
".");
49 return (pos < 0) ?
m_actions[index.row()]->text() : name.mid(pos+1);
53 case Qt::DecorationRole:
57 case Qt::CheckStateRole:
91 if(role == Qt::CheckStateRole)
104 QList<QAction*>::const_iterator it;
109 for(it = acts.begin(); it != acts.end(); ++it)
116 #if (QT_VERSION < 0x050000) 126 QList<QAction*> acts = mnuBar->findChildren<QAction*>();
131 #if (QT_VERSION < 0x050000)
rasterPointer reset(te::rst::RasterFactory::make("MEM", new te::rst::Grid(nCols, nLines), bandsProps, std::map< std::string, std::string >(), 0, 0))