Commit 72278970 authored by Jan Möbius's avatar Jan Möbius

Updated internal types handling (directly initialized by core now)

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7700 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 00bc7bab
......@@ -49,7 +49,7 @@
#include <OpenFlipper/common/Types.hh>
#include "../OpenFlipper/BasePlugin/PluginFunctions.hh"
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
//******************************************************************************
......@@ -117,11 +117,18 @@ QVariant TreeModel::data(const QModelIndex &index, int role) const
return QVariant( QBrush(QColor(100,100,100) ) );
}
}
switch (index.column() ) {
// Name
case 0 :
// If we are setting the name, also add the icon
if ( role == Qt::DecorationRole ) {
return QVariant( typeIcon(item->dataType()) );
}
if (role != Qt::DisplayRole && role != Qt::EditRole )
return QVariant();
......
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