Qt: ExtensionItemDelegate: rewrite (fix #10407)

does it the right way