I'm stuck with this one. It's about the download OSM data dialogue. The idea is to show the area in the OSM map widget when a location bookmark is selected from the list. Right now, when you select a bookmark, you then download data blindly because you won't get visible feedback about the area this bookmark covers. But since we have a map, it would be nice to see the bookmark in the small map view.
I've tried to do that, but the problem is that Qt doesn't allow me to connect an arbitrary function with a signal. It must be a declared slot from a QObject-derived class. The DownloadMapDialog.ui window is instantiated from DownloadOSM.cpp, which is not a class. So there's nothing I could connect the Bookmarks.activated(int) signal to. Adding a private class for the purpose to that file led to linker errors that I couldn't resolve. What's the proposed solution for this? (From C#, I'm used to that every window has a class and thus a place for code to react on control events. And then I can still assign any delegate (like a function reference) to an event.) Is that feature accepted at all, anyway? -- Yves Goergen "LonelyPixel" <[email protected]> Visit my web laboratory at http://beta.unclassified.de _______________________________________________ Merkaartor mailing list [email protected] http://lists.openstreetmap.org/listinfo/merkaartor
