[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-perl
Subject:    Re: [Kde-perl] PerlQt-3.004-RC2
From:       Stéphane Payrard <stef () payrard ! net>
Date:       2002-12-12 15:28:06
[Download RAW message or body]

Hi Germain,

1/ I tried you recommandation  (--with-treshold=0) and many other things.
Eventually, recompiled everything with debuggin enabled (qt-x11-free-3.1.0
and PerlQt-3.004-RC2) from scratch and my problem disappeared.
I still don't understand the cause.
The make clean seems pretty weird nevertheless.

2/ About the &Qt::PopupMenu::insertItem, the problem seems a Qt one
   when listing the stack from the core. The called method is indeed
   the expected one.


#0  0x406d8286 in QKeySequence::count (this=0x0) at kernel/qkeysequence.cpp:299
299	    if ( ! d->key[0] )
(gdb) up
#1  0x406d9d0e in QKeySequence::operator int (this=0x0) at kernel/qkeysequence.cpp:581
581	    if ( 1 <= count() )
Current language:  auto; currently c++
(gdb) up
#2  0x40825f38 in QMenuData::insertItem (this=0x835492c, text=@0x8356510, 
    receiver=0x834e3d8, member=0x83555e0 "1showdoc(int)", accel=@0x0, id=10, index=10)
    at widgets/qmenudata.cpp:401
401	    if ( accel )


  So I use a fake keysequence instead of using a undef for the key sequence:  

  my $nullkseq = Qt::KeySequence("\255\255");
  $menu->insertItem('item', $m, SLOT("showdoc(int)"), $nullkseq,
  10,10);



Thx.
I envy you. You certainly have a nicer weather at Lisbonne than in Paris.

--
  stef
_______________________________________________
Kde-perl mailing list
Kde-perl@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-perl
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic