forked from qt-creator/qt-creator
		
	Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
		
				
					committed by
					
						
						Orgad Shaneh
					
				
			
			
				
	
			
			
			
						parent
						
							3747e941ad
						
					
				
				
					commit
					a44aa55502
				
			@@ -95,7 +95,7 @@ void StashModel::setStashes(const QList<Stash> &stashes)
 | 
			
		||||
    m_stashes = stashes;
 | 
			
		||||
    if (const int rows = rowCount())
 | 
			
		||||
        removeRows(0, rows);
 | 
			
		||||
    foreach(const Stash &s, stashes)
 | 
			
		||||
    foreach (const Stash &s, stashes)
 | 
			
		||||
        appendRow(stashModelRowItems(s));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -185,7 +185,7 @@ void StashDialog::refresh(const QString &repository, bool force)
 | 
			
		||||
        gitClient()->synchronousStashList(m_repository, &stashes);
 | 
			
		||||
        m_model->setStashes(stashes);
 | 
			
		||||
        if (!stashes.isEmpty()) {
 | 
			
		||||
            for(int c = 0; c < ColumnCount; c++)
 | 
			
		||||
            for (int c = 0; c < ColumnCount; c++)
 | 
			
		||||
                ui->stashView->resizeColumnToContents(c);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
@@ -379,7 +379,7 @@ int StashDialog::currentRow() const
 | 
			
		||||
QList<int> StashDialog::selectedRows() const
 | 
			
		||||
{
 | 
			
		||||
    QList<int> rc;
 | 
			
		||||
    foreach(const QModelIndex &proxyIndex, ui->stashView->selectionModel()->selectedRows()) {
 | 
			
		||||
    foreach (const QModelIndex &proxyIndex, ui->stashView->selectionModel()->selectedRows()) {
 | 
			
		||||
        const QModelIndex index = m_proxyModel->mapToSource(proxyIndex);
 | 
			
		||||
        if (index.isValid())
 | 
			
		||||
            rc.push_back(index.row());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user