mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
PG source select maintain newline in tooltips
This commit is contained in:
parent
9f54bda17e
commit
112a1cd9ca
Binary file not shown.
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user