[kdevqtdesigner] Help to port kdevqtdesigner in to KDevelop 5
petross404 at gmail.com
Wed Oct 17 06:25:19 BST 2018
Thank you very much, I will try to accomplish this.
On Wed, Oct 17, 2018 at 5:21 AM Friedrich W. H. Kossebau <kossebau at kde.org>
> Hi Πέτρος,
> Am Dienstag, 16. Oktober 2018, 17:36:52 CEST schrieb Πέτρος Σιλιγκούνας:
> > You can see here  the latest changes. I am getting linker's errors
> > some functions that are unimplemented. I ported most of the code base to
> > newer C++ and Qt5 but I don't know where to go from here.
> > Any help would be appreciated.
> Nice to see you are still seeing to scratch your itch here, as started
> December (
> Sadly myself I currently have no time to really help with any
> but let me at least point you to some building and linking initial code of
> reimplementation of the qtdesigner integration plugin. Which I had started
> this spring, but then did not pursue more so far as it was low priority.
> The code builds and links against current KDevelop, and I pushed that now
> in a
> repository just for you :) so you can compare:
> https://cgit.kde.org/scratch/kossebau/kdevqtdesigner.git (web UI)
> The code so far only works for registering a custom document/view handler
> Qt Designer files, and itself only can load and show files.
> As you found out, the Qt Designer library still exists in Qt5, e.g. is
> consumed in Qt Creator. Sadly though the interface has changed a bit, a
> library Qt5DesignerComponent has been split off which has no proper CMake
> Config files yet (see also comment in src/CMakeLists.txt). That needs
> filing a
> bug and fixing in Qt, as well as writing some workaround cmake code in the
> plugin to handle that properly (I only did a simple hack that worked for
> IIRC the code of the old qtdesigner plugin had some broken support for the
> multi-view feature of kdevelop, the implementation would only work if
> did not do split views and have multiple views on the same UI file. My
> reimplementation should have also deal with that, by having some
> QBuffer object in the document, to which the views should then sync their
> data. That syncing part is missing also yet, only sketched in my mind. :)
> Another issue with the plugin is that in KDevelop/KDevPlatform switching
> between text editor view and custom editor view seems broken meanwhile and
> possible for the same file, something has regressed in kdevplatform when
> comes to that feature over what I think to remember from kdevelop4. So
> the plugin is active, one currently no longer can edit UI files as plain
> only be the plugin.
> Personally as before I would like to see more non-text editor integration
> KDevelop, but seems current maintainers have no own needs here, so not
> myself into that direction :) and concentrating on other features which
> more agreed about.
> Though then KDevelop is plugin-based, and perhaps we can manage to fix the
> core in a way, that the qtdesigner integration plugin can be made nicely
> and still maintained externally, without getting in the way of the
> who are not interested in it :)
> BTW: this mailinglist "kdevelop" is for users of KDevelop rather, you
> want to continue any questions on "kdevelop-devel" one instead. I already
> this email there, please subscribe to that mailinglist and continue
> implementation discussion there.
> In any case is this a bigger challenge you chose to master here, with lots
> hurdles. So hopefully you have good energies :) As said, myself will not
> time left to help you a lot, my KDevelop TODO list is full of own interest
> things. Perhaps you find some other people here who will be happy to join
> existing effort for such a qtdesigner integration plugin?
> Next to the code of the old plugin, some place which might hold some ideas
> you is the Designer-based plugin for Qt Creator, you can nicely browse the
> code here:
> That might help in case more API has changed for Qt5. But this is really
> challenging stuff, given some of the Designer(Component) API used is also
> private and might break between minor Qt versions. Really no free lunch
> Good luck, lots to learn, you will be a Qt expert afterwards :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the KDevelop