Unquoting text pasted from clipboard in Browse Data table.

This commit is contained in:
Milos Subotic
2015-12-24 12:11:01 +01:00
parent 7ccae1a926
commit fb8814729a

View File

@@ -158,7 +158,15 @@ void ExtendedTableWidget::paste()
int column = firstColumn;
foreach(const QString& cell, clipboardRow)
{
m->setData(m->index(row, column), cell);
if(cell.startsWith('"') && cell.endsWith('"'))
{
QString unquatedCell = cell.mid(1, cell.length()-2);
m->setData(m->index(row, column), unquatedCell);
}
else
{
m->setData(m->index(row, column), cell);
}
column++;
if(column> lastColumn)