gldraw.cpp

changeset 158
499286fcbf37
parent 156
d35b7e440585
child 160
edcb03f3ef75
equal deleted inserted replaced
157:635da3135bd4 158:499286fcbf37
99 thinBorderPen = thickBorderPen; 99 thinBorderPen = thickBorderPen;
100 thinBorderPen.setWidth (1); 100 thinBorderPen.setWidth (1);
101 101
102 // Init camera icons 102 // Init camera icons
103 for (const GLRenderer::Camera cam : g_Cameras) { 103 for (const GLRenderer::Camera cam : g_Cameras) {
104 str path; 104 str iconname;
105 path.format ("./icons/camera-%s.png", str (g_CameraNames[cam]).tolower ().chars ()); 105 iconname.format ("camera-%s", str (g_CameraNames[cam]).tolower ().chars ());
106 106
107 CameraIcon* info = &g_CameraIcons[cam]; 107 CameraIcon* info = &g_CameraIcons[cam];
108 info->img = new QPixmap (path); 108 info->img = new QPixmap (getIcon (iconname));
109 info->cam = cam; 109 info->cam = cam;
110 } 110 }
111 111
112 calcCameraIconRects (); 112 calcCameraIconRects ();
113 } 113 }

mercurial