Qt update

Dirk Hohndel dirk at hohndel.org
Sun Apr 7 16:36:59 PDT 2013


Just a quick update

I worked with Tomaz to get his build issues sorted out. The solution was
just pushed to the Qt branch. The Makefile in there isn't exactly where
I would want to be, but it seems to work for him (and me) and allows the
Qt UI development to move forward.

There are two things we'd rather have differently in the Makefile but my
make-foo is insufficient to make that happen

a) right now I need to explicitly create the dependency from the moc and
ui_*.h files to the object file in order to get those rebuilt. Is there
a way to detect the need to build those and create the dependencies
automagically? Maybe for every .cpp file in qt-ui ?

qt-ui/maintab.o: qt-ui/maintab.moc qt-ui/ui_maintab.h


b) right now the .cpp files have to manually include the .moc files at
the end. I'm sure we could have the Makefile automatically compile the
.moc files and add them to the objects that are linked together.

I'm pretty sure that's what the .moc.cpp style rules were supposed to
do, but I couldn't make that work for me.


So if any of the Makefile Magicians would like a little challenge... 
patches welcome :-)

And to stop any unrealistic expectations - no, no further actual code
has been committed; this even intentionally #ifdefs out some working
code that Alberto had written for the MainWindow because we moved the
class into a separate directory and Tomaz wanted to make sure he makes a
clean start for the Qt UI (some concern about calling Gtk derived code
from a Qt widget...)

/D


More information about the subsurface mailing list