How to handle deprecated constructors

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


Hi,

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?

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060224/d279da78/attachment.sig>


More information about the kde-core-devel mailing list