Commit f1dd751c authored by Dirk Wilden's avatar Dirk Wilden

default value when editing name

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4361 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e0936dcc
......@@ -85,12 +85,12 @@ QVariant TreeModel::data(const QModelIndex &index, int role) const
return QVariant( QBrush(QColor(100,100,100) ) );
}
}
switch (index.column() ) {
// Name
case 0 :
if (role != Qt::DisplayRole )
if (role != Qt::DisplayRole && role != Qt::EditRole )
return QVariant();
return QVariant(item->name());
......
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