Fix inheritance hierarchy of LegendWidget in qti.sip declaration

It was wrongly stated that it inherits from QObject so that the
Python type was showing up as QWidget & not the leaf class LegendWidget
Refs #7142
Merge remote-tracking branch 'origin/bugfix/7142_qtiplot_python_cmds'