zz_colorSelectDialog.cpp

changeset 158
499286fcbf37
parent 147
291a1fe2d278
child 160
edcb03f3ef75
equal deleted inserted replaced
157:635da3135bd4 158:499286fcbf37
51 gs_scene = new QGraphicsScene; 51 gs_scene = new QGraphicsScene;
52 gv_view = new QGraphicsView (gs_scene); 52 gv_view = new QGraphicsView (gs_scene);
53 selColor = dDefault; 53 selColor = dDefault;
54 54
55 // not really an icon but eh 55 // not really an icon but eh
56 gs_scene->setBackgroundBrush (QPixmap ("icons/checkerboard.png")); 56 gs_scene->setBackgroundBrush (getIcon ("checkerboard"));
57 57
58 gs_scene->setSceneRect (0, 0, g_lWidth, g_lMaxHeight); 58 gs_scene->setSceneRect (0, 0, g_lWidth, g_lMaxHeight);
59 gv_view->setSceneRect (0, 0, g_lWidth, g_lMaxHeight); 59 gv_view->setSceneRect (0, 0, g_lWidth, g_lMaxHeight);
60 60
61 drawScene (); 61 drawScene ();
84 qLayout->addWidget (gv_view); 84 qLayout->addWidget (gv_view);
85 qLayout->addWidget (lb_colorInfo); 85 qLayout->addWidget (lb_colorInfo);
86 qLayout->addWidget (bbx_buttons); 86 qLayout->addWidget (bbx_buttons);
87 setLayout (qLayout); 87 setLayout (qLayout);
88 88
89 setWindowIcon (QIcon ("icons/palette.png")); 89 setWindowIcon (getIcon ("palette"));
90 setWindowTitle (APPNAME_DISPLAY " - choose a color"); 90 setWindowTitle (APPNAME_DISPLAY);
91 } 91 }
92 92
93 // ============================================================================= 93 // =============================================================================
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
95 // ============================================================================= 95 // =============================================================================
123 qText->setDefaultTextColor ((dark) ? Qt::white : Qt::black); 123 qText->setDefaultTextColor ((dark) ? Qt::white : Qt::black);
124 qText->setPos (x, y); 124 qText->setPos (x, y);
125 125
126 if (i == selColor) { 126 if (i == selColor) {
127 QGraphicsPixmapItem* qCursorPic; 127 QGraphicsPixmapItem* qCursorPic;
128 qCursorPic = gs_scene->addPixmap (QPixmap ("icons/colorcursor.png")); 128 qCursorPic = gs_scene->addPixmap (getIcon ("colorcursor"));
129 qCursorPic->setPos (x, y); 129 qCursorPic->setPos (x, y);
130 } 130 }
131 } 131 }
132 } 132 }
133 133

mercurial