zz_colorSelectDialog.cpp

changeset 158
499286fcbf37
parent 147
291a1fe2d278
child 160
edcb03f3ef75
--- a/zz_colorSelectDialog.cpp	Sat May 04 02:52:33 2013 +0300
+++ b/zz_colorSelectDialog.cpp	Sat May 04 04:19:03 2013 +0300
@@ -53,7 +53,7 @@
 	selColor = dDefault;
 	
 	// not really an icon but eh
-	gs_scene->setBackgroundBrush (QPixmap ("icons/checkerboard.png"));
+	gs_scene->setBackgroundBrush (getIcon ("checkerboard"));
 	
 	gs_scene->setSceneRect (0, 0, g_lWidth, g_lMaxHeight);
 	gv_view->setSceneRect (0, 0, g_lWidth, g_lMaxHeight);
@@ -86,8 +86,8 @@
 	qLayout->addWidget (bbx_buttons);
 	setLayout (qLayout);
 	
-	setWindowIcon (QIcon ("icons/palette.png"));
-	setWindowTitle (APPNAME_DISPLAY " - choose a color");
+	setWindowIcon (getIcon ("palette"));
+	setWindowTitle (APPNAME_DISPLAY);
 }
 
 // =============================================================================
@@ -125,7 +125,7 @@
 		
 		if (i == selColor) {
 			QGraphicsPixmapItem* qCursorPic;
-			qCursorPic = gs_scene->addPixmap (QPixmap ("icons/colorcursor.png"));
+			qCursorPic = gs_scene->addPixmap (getIcon ("colorcursor"));
 			qCursorPic->setPos (x, y);
 		}
 	}

mercurial