How to handle deprecated constructors

Christian Ehrlicher Ch.Ehrlicher at
Fri Feb 24 17:38:27 GMT 2006


I get a lot of warnings about deprecated constructors like this:

KShortcutDialogAdvanced::KShortcutDialogAdvanced(QWidget* parent, const
char* name, Qt::WFlags fl)
    : QWidget(parent, name, fl)

QWidget(QWidget* parent, const char *name, Qt::WFlags f = 0) is
deprected. I could simply remove 'name' from the constructor but this
wouldn't solve the real problem. I think also a new
KShortcutDialogAdvanced::KShortcutDialogAdvanced(QWidget* parent,
Qt::WFlags fl) is needed and the old one should declared deprecated.

Is the the correct way?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the kde-core-devel mailing list