mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 20:26:43 +00:00 
			
		
		
		
	added type column
This commit is contained in:
		
							parent
							
								
									c22f773f72
								
							
						
					
					
						commit
						8ef2d04007
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -14,6 +14,7 @@ namespace CSMWorld | |||
|     { | ||||
|         const RefIdColumn *mId; | ||||
|         const RefIdColumn *mModified; | ||||
|         const RefIdColumn *mType; | ||||
|     }; | ||||
| 
 | ||||
|     template<typename RecordT> | ||||
|  | @ -65,6 +66,9 @@ namespace CSMWorld | |||
|             return static_cast<int> (record.mState); | ||||
|         } | ||||
| 
 | ||||
|         if (column==mBase.mType) | ||||
|             return static_cast<int> (mType); | ||||
| 
 | ||||
|         return QVariant(); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
|  | @ -42,6 +42,9 @@ CSMWorld::RefIdCollection::RefIdCollection() | |||
|     mColumns.push_back (RefIdColumn ("*", ColumnBase::Display_Integer, | ||||
|         ColumnBase::Flag_Table | ColumnBase::Flag_Dialogue, false, false)); | ||||
|     baseColumns.mModified = &mColumns.back(); | ||||
|     mColumns.push_back (RefIdColumn ("Type", ColumnBase::Display_Integer, | ||||
|         ColumnBase::Flag_Table | ColumnBase::Flag_Dialogue, false, false)); | ||||
|     baseColumns.mType = &mColumns.back(); | ||||
| //    mColumns.push_back (RefIdColumn ("Name", ColumnBase::Display_String));
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue