mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
* utility function for CVariant * use CVariant for cut/copy/paste
This commit is contained in:
committed by
Mathew Sutcliffe
parent
5ba438699f
commit
08f8916344
@@ -1454,7 +1454,8 @@ namespace BlackGui
|
||||
if (!this->hasSelection()) { return; }
|
||||
const ContainerType selection = this->selectedObjects();
|
||||
if (selection.isEmpty()) { return; }
|
||||
const QString json = selection.toJsonString();
|
||||
const CVariant copyJson = CVariant::from(selection);
|
||||
const QString json = copyJson.toJsonString();
|
||||
clipboard->setText(json);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user