mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-19 04:33:25 +02:00
improved DND on table
This commit is contained in:
@@ -329,7 +329,7 @@ void TableRenderer::renderProperties(const Table* pTable, const RenderContext& c
|
||||
// sorting is allowed though, i.e row matching is active
|
||||
ostr << ",clicksToEdit:1,stripeRows:true,enableColumnHide:false,enableColumnMove:false,loadMask:true";
|
||||
if (pTable->getDragAndDrop())
|
||||
ostr << ",enableDragDrop:true";
|
||||
ostr << ",enableDragDrop:true,ddGroup:'" << createDnDGroupName(pTable) << "'";
|
||||
|
||||
if (pTable->getSelectionModel() != Table::SM_CELL)
|
||||
{
|
||||
@@ -407,6 +407,13 @@ void TableRenderer::renderProperties(const Table* pTable, const RenderContext& c
|
||||
}
|
||||
|
||||
|
||||
std::string TableRenderer::createDnDGroupName(const Table* pTable)
|
||||
{
|
||||
poco_check_ptr (pTable);
|
||||
return "ddgrid" + Poco::NumberFormatter::format(pTable->id());
|
||||
}
|
||||
|
||||
|
||||
void TableRenderer::renderColumns(const Table* pTable, const RenderContext& context, std::ostream& ostr)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user