mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:50:05 +00:00 
			
		
		
		
	Fix Qt 6.6 deprecation warnings
This commit is contained in:
		
							parent
							
								
									c70640ac08
								
							
						
					
					
						commit
						0e633e1808
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -161,7 +161,7 @@ QSize FlowLayout::sizeHint() const | ||||||
| QSize FlowLayout::minimumSize() const | QSize FlowLayout::minimumSize() const | ||||||
| { | { | ||||||
|    QSize size; |    QSize size; | ||||||
|    for (const QLayoutItem* item : qAsConst(itemList_)) |    for (const QLayoutItem* item : std::as_const(itemList_)) | ||||||
|    { |    { | ||||||
|       size = size.expandedTo(item->minimumSize()); |       size = size.expandedTo(item->minimumSize()); | ||||||
|    } |    } | ||||||
|  | @ -181,7 +181,7 @@ int FlowLayout::doLayout(const QRect& rect, bool testOnly) const | ||||||
|    int   y             = effectiveRect.y(); |    int   y             = effectiveRect.y(); | ||||||
|    int   lineHeight    = 0; |    int   lineHeight    = 0; | ||||||
| 
 | 
 | ||||||
|    for (QLayoutItem* item : qAsConst(itemList_)) |    for (QLayoutItem* item : std::as_const(itemList_)) | ||||||
|    { |    { | ||||||
|       const QWidget* wid    = item->widget(); |       const QWidget* wid    = item->widget(); | ||||||
|       int            spaceX = horizontalSpacing(); |       int            spaceX = horizontalSpacing(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat