KShortcut and properties
Thiago Macieira
thiago at kde.org
Wed Apr 18 05:52:13 BST 2007
Jakub Stachowski wrote:
>> While you're at it, here are some suggested improvements for
>> KShortcut: * add operator QVariant() const { return
>> qVariantFromValue(*this); }, just like QKeySequence has it.
>> Unlike KUrl, KShortcut's base class won't cause us problems
>>
>> * make qHash(const KShortcut &) non-inline.
>
>This breaks BC, right?
De-inlining a method isn't BC, provided calling the older method is
acceptable.
If you want, you can commit this on the next Monday, to be sure.
>> I don't think it's a good idea
>> to have qHash on a Qt type (QKeySequence) in one of our public header
>> files.
>
>It was introduced in rev 614682 (log message "msvc compile") by
> Christian Ehrlicher. I have no windows machine to test it so i will
> leave this fragment to Christian.
It's only there because of the inlined KShortcut just above it. IMHO, it
has to go.
>> Actually, the whole qHash function looks dangerous to me the way it
>> is written.
>
>Looks like it assumes that KShortcut is always two-key. I wonder why?
I wonder the same.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070418/75a78cbb/attachment.sig>
More information about the kde-core-devel
mailing list