Commit graph

257 commits

Author SHA1 Message Date
Ivailo Monev
b4a354b74b generic: use QCryptographicHash instead of KMD5
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-04-01 04:32:22 +00:00
Ivailo Monev
b9788987ab generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-28 16:28:57 +00:00
Ivailo Monev
d8c17c0a7e kdecore: do not define KStandardDirs defaults on the stack
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-03-04 20:51:02 +02:00
Ivailo Monev
fea84d5570 kdecore: use QCache for the standard directories cache
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-02-20 16:21:10 +02:00
Ivailo Monev
7bdb242ad8 kdecore: remove useless equalizePath()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2016-01-01 16:09:19 +02:00
Ivailo Monev
fbd0e11b3d generic: implement special qml debugger handling for Katie 2015-11-29 18:30:02 +02:00
Ivailo Monev
0078793c98 kdecore: reserve memory for the KStandardDirs cache
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-05 09:33:34 +02:00
Ivailo Monev
f2e4e3f486 kdecore: limit standard directories cache to 10000 entries
this also fixes a strange bug that I originally tought that it's an RPATH
issues but it turns out that this is some kind of mutex-lock issue. to be
more interesting this bug does not occur when the NDEBUG conditionals are
removed or if they are unconditionalized, the first observation leads me to
think that this is compiler bug and the second that it's mutex-lock issue
that is resolved because some code in KDebug and/or QDebug (i've tried with
it too) locks/unlockes/detaches/does some voodoo that overcomes the bug.

in any case it's hard for me to pin-point the problem so if anyone can look
into it that would be great, for now this change will do


Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2015-11-03 06:51:57 +02:00
Ivailo Monev
ccbae05905 kdecore: oops, fix variable reference 2015-10-17 18:59:04 +03:00
Ivailo Monev
636f904183 generic: optimize standard directories lookup
by caching results and storing them in a hash the results should
flow faster, a limit should probably be set on this but for now
there isn't. exists() and realPath() now cannot be called without
object!
2015-10-17 18:53:50 +03:00
Ivailo Monev
060ce58f09 kdecore: simplify KStandardDirs::exists()
also, added a debug message to tell when and on what this method
is called. I'm seeing many obscure check done repeatedly,
especially MIME paths check done over and over again when opening
a folder with dolphin so that should help identify places where
optimizations should be made.
2015-10-17 12:27:05 +03:00
Ivailo Monev
79d3e27b58 generic: code shrinks 2015-10-17 11:45:14 +03:00
Ivailo Monev
153da2a410 kdecore: change kstandarddirs documentation to match defaults 2015-10-17 11:44:59 +03:00
Ivailo Monev
2d49fadeb1 generic: misc cleanups 2015-10-12 23:58:56 +03:00
Ivailo Monev
9457544b8b kdecore: misc cleanups 2015-10-12 18:43:14 +03:00
Ivailo Monev
a4996f3d49 generic: misc cleanups 2015-10-01 07:46:47 +03:00
Ivailo Monev
3d14a4b88b generic: code shrinks 2015-09-30 10:37:53 +03:00
Ivailo Monev
2eceb5f064 generic: misc cleanups 2015-09-27 01:19:30 +00:00
Ivailo Monev
a9e96a38b0 generic: drop Q_CC_MSVC conditionals 2015-09-25 04:08:21 +00:00
Ivailo Monev
9c7b41e8f4 generic: misc cleanups 2015-09-21 20:30:05 +00:00
Ivailo Monev
a8a54f0484 generic: proper support for icon and caption in .desktop files 2015-09-21 00:26:31 +00:00
Ivailo Monev
4d683ae8b3 generic: cleanups remains of custom apps resources support 2015-09-06 14:42:29 +03:00
Ivailo Monev
e7133114e1 generic: misc cleanups 2015-09-05 05:16:46 +00:00
Ivailo Monev
eeba19d4c4 generic: misc cleanups 2015-09-04 13:06:11 +00:00
Ivailo Monev
a3ec7d5356 generic: misc cleanups 2015-08-25 22:10:31 +03:00
Ivailo Monev
21ad0df488 generic: make changes required for building against katie 2015-08-11 05:56:07 +03:00
Ivailo Monev
5ddc190ce0 generic: normalize include guards 2015-07-11 18:42:46 +03:00
Ivailo Monev
7328e8abd1 generic: cleanup after the revert madness 2015-06-14 18:56:39 +03:00
Ivailo Monev
732148f49b generic: partitially revert 22db5ad6 2015-06-14 18:49:20 +03:00
Ivailo Monev
ae860d22c2 kdecore: fixup kstandarddirs 2015-05-20 23:32:01 +00:00
Ivailo Monev
22db5ad66c generic: change standard paths 2015-05-20 13:36:16 +00:00
Ivailo Monev
bf501e6429 generic: remove redudant virtual_hook definitions 2015-04-23 14:50:12 +00:00
Ivailo Monev
5333e9917d generic: remove deprecated API 2015-02-28 03:27:54 +00:00
Ivailo Monev
82fc15f54b generic: use CMake moc instead of automoc4 by default
for compatibilty reasons automoc4 support is not removed but it
shall be in the future. automoc4 has not been maintained for a
while (last commit is from 2011) and the stable release is from
2009.

CMake version >= 2.8.6 provides the functionality for mocking so
I see no reason to not make use of it.
2015-02-27 07:40:26 +00:00
Ivailo Monev
7fe9f582f7 make KGlobal reference counting thread safe.
REVIEW: 121134
2015-01-03 22:47:54 +00:00
Ivailo Monev
c71cc93299 remove mac cruft 2014-12-31 16:44:53 +00:00
Ivailo Monev
e2cdf69a5c standard dirs fixup after last commit 2014-12-12 14:15:28 +00:00
Ivailo Monev
4c6cd0ddcd build system cleanup and adjustments 2014-12-12 04:34:53 +00:00
Ivailo Monev
4f3fd401e4 KDE3_SUPPORT cleanup 2014-12-04 00:04:49 +00:00
Ivailo Monev
a499c2d11d fix build of external software by not including config-misc header and place BUG_REPORT_URL and BUG_REPORT_EMAIL into kglobalsettings header 2014-11-29 23:03:51 +00:00
Ivailo Monev
6e700dc650 replace bugs.kde.org with BUG_REPORT_URL; replace submit@bugs.kde.org with BUG_REPORT_EMAIL (new); remove kdoctools (Doxygen is used for API docs, anything else needs it besides some handbook slaves?); moved kwebkitpart translations to kde-l10n 2014-11-29 21:30:53 +00:00
Ivailo Monev
3f0dd268de remove win and mac cruft 2014-11-27 18:22:42 +00:00
Ivailo Monev
c5e95b5b90 rebranded platform string 2014-11-21 15:49:04 +00:00
Ivailo Monev
2d55a8d3dd katana -> kde4 2014-11-20 09:05:46 +00:00
Ivailo Monev
4f94d74af8 mac cruft remove 2014-11-19 22:55:36 +00:00
Ivailo Monev
354273cb81 more hardcore paths replacement 2014-11-19 22:10:27 +00:00
Ivailo Monev
9d86872eeb more hardcoded paths corrections (they should be unhardcoded but that will be done in the future) 2014-11-19 18:20:59 +00:00
Ivailo Monev
1162efa517 god, I hate hardcoded paths 2014-11-19 17:39:46 +00:00
Ivailo Monev
7cb8be0601 remove unnecessary includes 2014-11-19 15:49:46 +00:00
Ivailo Monev
c7a2a17692 yet more windows and mac code remove 2014-11-19 15:30:39 +00:00