From 8402f715bc66195f007673efce07dc8b27ea2585 Mon Sep 17 00:00:00 2001 From: Sylvain Thery Date: Mon, 14 Nov 2011 10:56:27 +0100 Subject: [PATCH] bug du QtColorDialog (2ieme fois) --- Apps/Examples/clipping.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Apps/Examples/clipping.cpp b/Apps/Examples/clipping.cpp index 82bf692d..5b5a7faf 100644 --- a/Apps/Examples/clipping.cpp +++ b/Apps/Examples/clipping.cpp @@ -226,10 +226,8 @@ void Clipping::slot_spinBox_SphereResolution(int i) void Clipping::slot_pushButton_changeSpheresColor() { - QColor NewColor; - QColorDialog ColDialog; + QColor NewColor = QColorDialog::getColor(); - NewColor = ColDialog.getColor(); int r, g, b; NewColor.getRgb(&r, &g, &b); -- GitLab