PG source select maintain newline in tooltips

This commit is contained in:
Alessandro Pasotti 2019-10-22 13:23:16 +02:00
parent 9f54bda17e
commit 112a1cd9ca
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -102,7 +102,7 @@ void QgsPgTableModel::addTableEntry( const QgsPostgresLayerProperty &layerProper
if ( ! layerProperty.tableComment.isEmpty() )
{
// word wrap
commentItem->setToolTip( QStringLiteral( "<span>%1</span>" ).arg( layerProperty.tableComment ) );
commentItem->setToolTip( QStringLiteral( "<span>%1</span>" ).arg( layerProperty.tableComment ).replace( '\n', QStringLiteral( "<br/>") ) );
commentItem->setTextAlignment( Qt::AlignTop );
}
QStandardItem *geomItem = new QStandardItem( layerProperty.geometryColName );