Qt: fix unused parameter warning in ColorPreference
The model index is unused as setData is used to initialize the editor. Change-Id: If42bf59cd3f1f5e208bfff26b569c5c29d2013fd Fixes: v3.1.1rc0-415-g149521d3de ("Qt: Do not call exec() when editing color preferences") Reviewed-on: https://code.wireshark.org/review/34671 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
149521d3de
commit
d1e39253ed
|
@ -146,7 +146,7 @@ class ColorPreference : public WiresharkPreference
|
|||
{
|
||||
public:
|
||||
ColorPreference(QObject * parent = Q_NULLPTR) : WiresharkPreference(parent) {}
|
||||
virtual QWidget * editor(QWidget * parent, const QStyleOptionViewItem &option, const QModelIndex &index)
|
||||
virtual QWidget * editor(QWidget * parent, const QStyleOptionViewItem &/*option*/, const QModelIndex &/*index*/)
|
||||
{
|
||||
QColorDialog* color_dlg = new QColorDialog(parent);
|
||||
color_dlg->setWindowModality(Qt::ApplicationModal);
|
||||
|
|
Loading…
Reference in New Issue