[KimDaBa] Selection problem with SUSE 10.0, KDE 3.4.3, Qt 3.3.4

Robert L Krawitz rlk at alum.mit.edu
Tue Nov 8 13:23:01 GMT 2005


I'm not sure exactly when this broke, but with the above configuration
I'm no longer able to select some images and use ctrl-1 or ctrl-2 to
make changes.  I can select *all* of the images in the viewer and make
changes with ctrl-1 or ctrl-2, but obviously that's not terribly
useful.

This is with kimdaba 2.1.  The identical source base worked for me
previously (running SUSE 9.1 and KDE 3.4.2), so it would appear to be
a change either in KDE or in Qt (my guess would be with Qt).  This
problem happens with either the SUSE-provided RPM's or with kimdaba
freshly compiled from source.

Since this works if I select all of the images (or, for that matter,
if I simply right click on a single image), I suspect that something's
going wrong in slotThumbNailSelectionChanged.  I don't have time right
now to debug it, and this code itself looks sane:


void MainView::slotThumbNailSelectionChanged()
{
    bool oneSelected = false;
    bool manySelected = false;
    for ( QIconViewItem* item = _thumbNailView->firstItem(); item; item = item->nextItem() ) {
        if ( item->isSelected() ) {
            if ( ! oneSelected )
                oneSelected = true;
            else {
                manySelected = true;
                break;
            }
        }
    }

    _configAllSimultaniously->setEnabled( manySelected );
    _configOneAtATime->setEnabled( oneSelected );
    _sortByDateAndTime->setEnabled( manySelected );
}


I don't know if it's a coincidence or not, but I'm getting these
warnings when I compile.  My guess is that they're unrelated (the
problem I'm having looks more like a problem with the Qt selection
code), but...

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include   -I./survey  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -DQT_NO_CAST_ASCII -DQT_CAST_NO_ASCII -DHASKIPI -MT datebarmousehandler.moc.o -MD -MP -MF ".deps/datebarmousehandler.moc.Tpo" -c -o datebarmousehandler.moc.o datebarmousehandler.moc.cpp; \
then mv -f ".deps/datebarmousehandler.moc.Tpo" ".deps/datebarmousehandler.moc.Po"; else rm -f ".deps/datebarmousehandler.moc.Tpo"; exit 1; fi
/usr/lib/qt3/include/private/qucom_p.h:69: warning: ‘struct QUBuffer’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:77: warning: ‘struct QUType’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:104: warning: ‘struct QUType_Null’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:287: warning: ‘struct QUType_enum’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:307: warning: ‘struct QUType_ptr’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:326: warning: ‘struct QUType_iface’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:345: warning: ‘struct QUType_idisp’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:364: warning: ‘struct QUType_bool’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:383: warning: ‘struct QUType_int’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:403: warning: ‘struct QUType_double’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:423: warning: ‘struct QUType_charstar’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucom_p.h:444: warning: ‘struct QUType_QString’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucomextra_p.h:65: warning: ‘struct QUType_QVariant’ has virtual functions but non-virtual destructor
/usr/lib/qt3/include/private/qucomextra_p.h:87: warning: ‘struct QUType_varptr’ has virtual functions but non-virtual destructor




More information about the Kphotoalbum mailing list