[Patch] fix compile kdeui with msvc

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Oct 30 17:56:54 GMT 2005


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

Hi,

And once more a patch for msvc support.

kcharselect.cpp
khelpmenu.cpp
klanguagebutton.cpp
knuminput.cpp
kruler.cpp
kruler.h
- - masked 'warning' directive

SConscript
- - added -DMAKE_KDEUI_LIB to ccflags

kactivelabel.cpp
- - struct -> class for private data structure

kconfigdialogmanager.h
- - KDECORE_EXPORT -> KDEUI_EXPORT (wrong macro used)

khbox.cpp
- - removed '#undef QT3_SUPPORT' to prevent compiler error in qwidget.h

kled.cpp
- - removed superflous "QColor Qt::black=Qt::black" (same for Qt::white)

kshortcutdialog.cpp
- - used QKeyEvent::modifiers() instead QKeyEvent::state() for conversion
to kde modifiers (QKeyEvent::modifiers() is new in Qt4)

ktabctl.h
- - use QVector instead of Q3MemArray according to Qt porting guide
(Q3MemArray throws compiler errors with msvc)

ktabctl.cpp
- - unsigned int -> int because QVector::size() returns int (avoid
compiler warnings)

And one small change for kdecore to use Qt::KeyboardModifiers instead of
Qt::KeyboardModifier for qtButtonStateToMod()

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDZQlmnNKwkgf+zVMRAgH7AJ4s7e9exxvHQXvL36Fsh+BNy2M9NACfXlMs
bD8CEG8lb6kdQfN9TqW4WP8=
=hCQV
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdeui.patch
Type: text/x-diff
Size: 10187 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051030/f683a8f0/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdecore.patch
Type: text/x-diff
Size: 869 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051030/f683a8f0/attachment-0001.patch>


More information about the kde-core-devel mailing list