void EditWindow::CreateCursors(void)
{
- int hotx[9] = { 1, 1, 11, 15, 1, 1, 1, 1, 1 };
- int hoty[9] = { 1, 1, 11, 13, 1, 1, 1, 1, 1 };
+ int hotx[10] = { 1, 1, 11, 15, 1, 1, 1, 1, 1, 1 };
+ int hoty[10] = { 1, 1, 11, 13, 1, 1, 1, 1, 1, 1 };
+ char cursorName[10][48] = { "select", "select-poly", "scroll", "zoom", "add-point",
+ "add-poly", "del-point", "del-poly", "rotate", "rotate" };
- for(int i=0; i<9; i++)
+ for(int i=0; i<10; i++)
{
QString s;
- s.sprintf(":/res/cursor%u.png", i+1);
+ s.sprintf(":/res/cursor-%s.png", cursorName[i]);
QPixmap pmTmp(s);
cur[i] = QCursor(pmTmp, hotx[i], hoty[i]);
}