I have a function:
{
connect(checkBox, SIGNAL(stateChanged(2)), this, SLOT(addKeyword(key)));
connect(checkBox, SIGNAL(stateChanged(0)), this, SLOT(killKeyword(key)));
}
QCheckBox *Window::createCheckBox(const QString &text, const QString &key)
{
QCheckBox *checkBox = new QCheckBox(text);
connect(checkBox, SIGNAL(stateChanged(2)), this, SLOT(addKeyword(key)));
connect(checkBox, SIGNAL(stateChanged(0)), this, SLOT(killKeyword(key)));
}
To copy to clipboard, switch view to plain text mode
When I compile I receive:
warning: unused parameter ‘key’
Any thoughts?
Thanks
Bookmarks