SnapmaticPicture: replace read() with readAll()
This commit is contained in:
		
							parent
							
								
									8d866cb44e
								
							
						
					
					
						commit
						3d87cebeac
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -366,8 +366,7 @@ bool SnapmaticPicture::preloadFile()
 | 
			
		|||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    const qint64 fileMaxSize = (1024 * 1024 * 64);
 | 
			
		||||
    const QByteArray fileData = picFile.read(fileMaxSize);
 | 
			
		||||
    const QByteArray fileData = picFile.readAll();
 | 
			
		||||
 | 
			
		||||
    bool ok = p_ragePhoto.load(fileData.constData(), fileData.size());
 | 
			
		||||
    picFormat = p_ragePhoto.format();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue