Alpar had the key, focus can be set in the window class. But it is not enough, the focused widget has to be activated, as well! Was a hard task to find out... By the way, two compilation warnings are removed.
4 #include <lemon/list_graph.h>
7 using lemon::ListGraph;
17 typedef typename M::Key Key;
18 typedef xy<typename M::Value> Value;
20 XYMap(M &_xmap, M &_ymap) : xmap(&_xmap), ymap(&_ymap) {}
21 void setXMap(M &_xmap) { xmap = &_xmap; }
22 void setYMap(M &_ymap) { ymap = &_ymap; }
23 Value operator[](Key k) const
25 Value v(xmap->operator[](k), ymap->operator[](k));
28 void set(Key k, Value v)