mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-29 03:26:38 +00:00 
			
		
		
		
	Merge branch 'NonTableFields' of https://github.com/sirherrbatka/openmw
into NonTableFields I have no idea what I'm doing Conflicts: apps/opencs/model/world/idtable.cpp apps/opencs/model/world/refidadapter.hpp apps/opencs/model/world/refidadapterimp.hpp
This commit is contained in:
		
						commit
						03980034a5
					
				
					 3 changed files with 6 additions and 2 deletions
				
			
		|  | @ -42,7 +42,7 @@ QVariant CSMWorld::IdTable::data  (const QModelIndex & index, int role) const | |||
|     if (role==Qt::EditRole && !mIdCollection->getColumn (index.column()).isEditable()) | ||||
|         return QVariant(); | ||||
| 
 | ||||
|     if (index.internalId() != 0) | ||||
|     if (index.hasChildren()) | ||||
|     { | ||||
|         std::pair<int, int> parentAdress(unfoldIndexAdress(index.internalId())); | ||||
|         return mIdCollection->getNestedData(parentAdress.first, parentAdress.second, index.row(), index.column()); | ||||
|  |  | |||
|  | @ -46,7 +46,7 @@ namespace CSMWorld | |||
|                                         const QVariant& value, int subRowIndex, int subColIndex) const = 0; | ||||
| 
 | ||||
|             virtual QVariant getNestedData (const RefIdColumn *column, const RefIdData& data, | ||||
|                                         int index, int subRowIndex, int subColIndex) const = 0; | ||||
|                                             int index, int subRowIndex, int subColIndex) const = 0; | ||||
| 
 | ||||
|             virtual int getNestedColumnsCount(const RefIdColumn *column, const RefIdData& data) const = 0; | ||||
| 
 | ||||
|  |  | |||
|  | @ -624,7 +624,11 @@ namespace CSMWorld | |||
|             virtual QVariant getData (const RefIdColumn *column, const RefIdData& data, int index) const; | ||||
| 
 | ||||
|             virtual void setNestedData (const RefIdColumn *column, RefIdData& data, int index, | ||||
| <<<<<<< HEAD | ||||
|                                         const QVariant& value, int subRowIndex, int subColIndex) const; | ||||
| ======= | ||||
|                 const QVariant& value, int subRowIndex, int subColIndex) const; | ||||
| >>>>>>> 187fccc8cc630f1f469b4f5fc4e23a28ad8253ec | ||||
| 
 | ||||
|             virtual void setData (const RefIdColumn *column, RefIdData& data, int index, | ||||
|                                   const QVariant& value) const; | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue