Display simplified RAW data when Contents column is actiev.
This commit is contained in:
		
							parent
							
								
									eb777b9670
								
							
						
					
					
						commit
						6b72937992
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -227,6 +227,10 @@ QVariant MessagesModel::data(const QModelIndex& idx, int role) const { | ||||||
|           return dt.toString(m_customDateFormat); |           return dt.toString(m_customDateFormat); | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|  |       else if (index_column == MSG_DB_CONTENTS_INDEX) { | ||||||
|  |         // Do not display full contents here.
 | ||||||
|  |         return data(idx, Qt::EditRole).toString().mid(0, 64).simplified() + QL1S("..."); | ||||||
|  |       } | ||||||
|       else if (index_column == MSG_DB_AUTHOR_INDEX) { |       else if (index_column == MSG_DB_AUTHOR_INDEX) { | ||||||
|         const QString author_name = QSqlQueryModel::data(idx, role).toString(); |         const QString author_name = QSqlQueryModel::data(idx, role).toString(); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue