mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 20:56:40 +00:00 
			
		
		
		
	1. Errors found are added to default tool tip text. (Instead of replacing it.) 2. If multiple errors are found, all are shown in tool tip text, not just first one. 3. Load Order Errors are updated when files are activated/deactivated, not just when the files have their position in list changed.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			441 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			441 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "loadordererror.hpp"
 | |
| #include <assert.h>
 | |
| 
 | |
| QString ContentSelectorModel::LoadOrderError::sErrorToolTips[ErrorCode_LoadOrder] =
 | |
| {
 | |
|     QString("Unable to find dependent file: %1"),
 | |
|     QString("Dependent file needs to be active: %1"),
 | |
|     QString("This file needs to load after %1")
 | |
| };
 | |
| 
 | |
| QString ContentSelectorModel::LoadOrderError::toolTip() const
 | |
| {
 | |
|     assert(mErrorCode);
 | |
|     return sErrorToolTips[mErrorCode - 1].arg(mFileName);
 | |
| }
 |