gui.cpp

changeset 49
242f6ea0f5e5
parent 48
113eb6446c61
child 50
7fd213c6b844
--- a/gui.cpp	Wed Mar 20 19:41:37 2013 +0200
+++ b/gui.cpp	Wed Mar 20 20:44:04 2013 +0200
@@ -28,6 +28,7 @@
 #include "zz_addObjectDialog.h"
 #include "misc.h"
 #include "zz_colorSelectDialog.h"
+#include "colors.h"
 
 #define MAKE_ACTION(OBJECT, DISPLAYNAME, IMAGENAME, DESCR) \
 	qAct_##OBJECT = new QAction (QIcon ("./icons/" IMAGENAME ".png"), tr (DISPLAYNAME), this); \
@@ -548,6 +549,8 @@
 }
 
 void ForgeWindow::slot_testColorSelect () {
-	ColorSelectDialog dlg;
-	dlg.exec ();
+	short dColor;
+	if (ColorSelectDialog::staticDialog (dColor, -1, this)) {
+		printf ("you selected %s!\n", g_LDColors[dColor]->zName.chars());
+	}
 }
\ No newline at end of file

mercurial