klipper's popup menus

Aaron J. Seigo aseigo at kde.org
Tue Aug 12 18:07:43 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi all...

after patiently fishing on IRC for two days and not getting a single bite, i'm 
going to ask here about an odd passage in klipper's code =)

in KlipperWidget::showPopupMenu( QPopupMenu *menu ) in toplevel.cpp there is 
the following bit of code:

    menu->move(-1000,-1000);
    menu->show();
    menu->hide();

this is run *before* ANY popups are shown...  the CVS log for the commit was:

- ----------------------------
revision 1.17
date: 2000/04/14 12:31:42;  author: pfeiffer;  state: Exp;  lines: +56 -42
"actions" to execute commands when matching some clipboard contents
are fully configurable now (and are saved & restored from klipperrc)
Added global klipperrc with default/example actions
==================

i can't see what it was trying to do, perhaps work around a Qt bug? i'd like 
to make a commit that includes removing those three lines since they make it 
impossible to accurately use QPopupMenu::aboutTo[Show|Hide](), but i also 
don't want to break anything. can someone shed some light on this?

- -- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE/OR7g1rcusafx20MRAiuUAJ9i7GLSltnSUNawqvdiVS95GkZDdgCfdnna
avY8NDYLjfFOwCtKR0e8Hr0=
=VbVR
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list