Own sorting func in KTabListBox
Bernd Gehrmann
bernd at physik.hu-berlin.de
Tue Nov 2 22:56:49 GMT 1999
On Tue, 02 Nov 1999 Frank Werner wrote:
>ccview.cpp:18: no matching function for call to `KccView::setColumn (int, const char *, int, KTabListBox::ColumnType, KTabListBox::OrderType, KTabListBox::OrderMode, bool, int (KccView::)(char *, char *))'
>/opt/kde/include/ktablistbox.h:273: candidates are: KTabListBox::setColumn(int, const char *, int, KTabListBox::ColumnType, KTabListBox::OrderType, KTabListBox::OrderMode, bool, int (*)(const char *, const char *))
>make[1]: Leaving directory `/home/frank/projects/kcc/kcc'
>make[1]: *** [kccview.o] Error 1
>
>Whats wrong?
int (*)(const char *, const char *)
stands for a pointer to a _global_ function. You have used a method as argument.
Furthermore, the argument types must be 'const char*', not 'char*'
BTW: KTabListBox has been removed in KDE 2. Better use QListView.
Bernd.
More information about the KDevelop
mailing list