Skip navigation.
KDE Developer's Journals

Deprecated functions

coolo's picture

From time to time I do a fresh trunk compile to entertain myself on the logs (as I have no time to do real development at the moment).

So this is the top list of warnings about deprecated functions:

    168  'insertItem' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qmenu.h:170)
    156  '__base_ctor ' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qwidget.h:191)
    146  '__comp_ctor ' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qgridlayout.h:53)
    123  '__comp_ctor ' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qboxlayout.h:113)
    123  ‘bitBlt’ is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/painting/qpaintdevice.h:126)
     86  'setItemChecked' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qmenu.h:259)
     75  '__comp_ctor ' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qboxlayout.h:133)
     74  ‘insertItem’ is deprecated (declared at build/qt-copy/include/Qt/../../../../qt-copy/src/gui/widgets/qcombobox.h:257)
     69  ‘__comp_ctor ’ is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qboxlayout.h:113)
     65  'insertItem' is deprecated (declared at build/qt-copy/include/Qt/../../../../qt-copy/src/gui/widgets/qcombobox.h:257)
     64  'addMultiCellWidget' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qgridlayout.h:123)
     59  ‘__comp_ctor ’ is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qgridlayout.h:53)
     57  'latin1' is deprecated (declared at build/qt-copy/include/QtCore/../../../../qt-copy/src/corelib/tools/qstring.h:428)
     54  'setPixmap' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qabstractbutton.h:132)
     54  ‘setCurrentItem’ is deprecated (declared at build/qt-copy/include/Qt/../../../../qt-copy/src/gui/widgets/qcombobox.h:237)
     54  'insertItem' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qmenu.h:157)
     54  '__comp_ctor ' is deprecated (declared at inst/include/kaction.h:276)
     52  'find' is deprecated (declared at build/qt-copy/include/QtCore/../../../../qt-copy/src/corelib/tools/qstring.h:450)
     51  'insertSeparator' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qmenu.h:191)
     51  'insertItem' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qmenu.h:173)
     40  'repaint' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qwidget.h:726)
     40  ‘__base_ctor ’ is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/kernel/qwidget.h:191)
     37  'setItemEnabled' is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qmenu.h:250)
     37  'data' is deprecated (declared at build/qt-copy/include/QtCore/../../../../qt-copy/src/corelib/tools/qmap.h:270)
     37  '__comp_ctor ' is deprecated (declared at inst/include/kactivelabel.h:42)
     36  'lower' is deprecated (declared at build/qt-copy/include/QtCore/../../../../qt-copy/src/corelib/tools/qstring.h:477)
     35  'find' is deprecated (declared at build/qt-copy/include/QtCore/../../../../qt-copy/src/corelib/tools/qstring.h:448)
     32  'currentItem' is deprecated (declared at build/qt-copy/include/Qt/../../../../qt-copy/src/gui/widgets/qcombobox.h:236)
     32  '__comp_ctor ' is deprecated (declared at inst/include/ktoggleaction.h:125)
     31  'fromPathOrUrl' is deprecated (declared at inst/include/kurl.h:859)
     31  deprecated conversion from string constant to 'char*''
     31  '__comp_ctor ' is deprecated (declared at inst/include/kaction.h:331)
     28  'start' is deprecated (declared at build/qt-copy/include/QtCore/../../../../qt-copy/src/corelib/kernel/qtimer.h:67)
     28  ‘setPixmap’ is deprecated (declared at build/qt-copy/include/QtGui/../../../../qt-copy/src/gui/widgets/qabstractbutton.h:132)

So if you're interested, you can make any of these warnings an error for yourself and recompile to port the warnings away. But make sure know what you're doing.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cniehaus's picture

I wonder...

...how to create such a statistic? Log all error, put them in a textfile and run a script over it I guess. I there such a script in KDE-svn somewhere?

coolo's picture

some small guide to bash programming

find . -name build*.log | xargs grep warning: | sort -u | cut -d: -f4- | sed -e "s,.*warning:,," | sort | uniq -c | sort -n | tac | grep deprecated

martin ellis's picture

Looks like uniq -c output

A bit of file redirection, sort and "uniq -c" - should be a doddle.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.