scroll to insert widget at import copy
This commit is contained in:
		
							parent
							
								
									b458850877
								
							
						
					
					
						commit
						1be0c054e4
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -168,6 +168,9 @@ void ProfileInterface::insertSnapmaticIPI(QWidget *widget)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
        int picIndex = pictureKeyList.indexOf(QRegExp(widgetKey));
 | 
					        int picIndex = pictureKeyList.indexOf(QRegExp(widgetKey));
 | 
				
			||||||
        ui->vlSnapmatic->insertWidget(picIndex, proWidget);
 | 
					        ui->vlSnapmatic->insertWidget(picIndex, proWidget);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        qApp->processEvents();
 | 
				
			||||||
 | 
					        ui->saProfile->ensureWidgetVisible(proWidget, 0, 0);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -182,6 +185,9 @@ void ProfileInterface::insertSavegameIPI(QWidget *widget)
 | 
				
			||||||
        qSort(savegameKeyList.begin(), savegameKeyList.end());
 | 
					        qSort(savegameKeyList.begin(), savegameKeyList.end());
 | 
				
			||||||
        int sgdIndex = savegameKeyList.indexOf(QRegExp(widgetKey));
 | 
					        int sgdIndex = savegameKeyList.indexOf(QRegExp(widgetKey));
 | 
				
			||||||
        ui->vlSavegame->insertWidget(sgdIndex, proWidget);
 | 
					        ui->vlSavegame->insertWidget(sgdIndex, proWidget);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        qApp->processEvents();
 | 
				
			||||||
 | 
					        ui->saProfile->ensureWidgetVisible(proWidget, 0, 0);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue