Improve error reporting.

This cost me far too much time to figure out...
Hide inline private data type and use typedef for Defines more.

This is a SIC change, but I really don't care as its nowhere else
used besides the IDAIM which is also where I'll move the ConfigEntry.
Remove another todo message, this looks OK to me. We don't care for multi-line edits after all.
Fix crash on shutdown.

Apparently the old-school Qt signal/slot connection was more
safe here before. The new-style connect gets executed when the
plugin is about to shutdown and then we'd crash. Now we manually
disconnect to prevent that from happening.
Don't set a minimum size on the settings dialog.

It apparently completely messes up the whole dialog and leads to
very strange behavior (it can be made as small as you want...).
Add todo on future cleanup possibility.
Fix lambda connection, pass by value

Fixes crash
Only connect the lambda to BackgroundParser::parseJobFinished once.

Otherwise we'd connect many different lambdas to the signal whenever
a document gets activated. The addresses of these lambdas are also
different thus Qt::UniqueConnection won't work as intended here.

This should fix a big slow-down over time when using KF5 KDevelop!

To get safe access to the LanguageController via ICore::self(),
without tying ourselves to that in the public API, we delay the
creation of the StaticAssistantManager until the language controller
is initialized.
KF5: Port KDialog -> QDialog

Some parts/plugins were left out, because I did not verify everything
was working after the porting scripts did their job
- plugins/cvs - (don't even know how to trigger the code path)
- plugins/subversion (lot's of dialogs involved)
- plugins/snippet/legacy/ (will be dropped anyway, not worth it)
- plugins/dashboard (not built, what's the state of that anyway?)

For the rest of dialogs, ported in this patch, I manually tested each
of them. So everything should still be working as expected.
Still putting this up for review to have another pair of eyes on the patch.

REVIEW: 121128
KF5: Port KIO::NetAccess
Less use of KDELibs4Support in libraries/plugins
Add and use KDevelop::MimeType class

Copied over KMimeType::isBinaryData which is no longer available in KF5
Make compile
Make compile, take 2
Minor: Another compile fix
codegen: Remove compat code with older Grantlee
Really make compile
Fixup kdev_format_source config

Changes:
- Use style as close as possible to wanted KDevelop coding style
- Remove non-existing files from blacklist
Reformat source
Disable status bar in source formatter preview