|
@@ -25,6 +25,7 @@
|
|
|
// CTK includes
|
|
|
#include "ctkColorDialog.h"
|
|
|
#include "ctkColorPickerButton.h"
|
|
|
+#include "ctkTest.h"
|
|
|
|
|
|
// STD includes
|
|
|
#include <cstdlib>
|
|
@@ -89,7 +90,9 @@ int ctkColorDialogTest1(int argc, char * argv [] )
|
|
|
// the following is only in interactive mode
|
|
|
if (argc < 2 || QString(argv[1]) != "-I" )
|
|
|
{
|
|
|
- QTimer::singleShot(200, &colorDialog, SLOT(accept()));
|
|
|
+ QTest::qWaitForWindowShown(&colorDialog);
|
|
|
+ colorDialog.accept();
|
|
|
+ return EXIT_SUCCESS;
|
|
|
}
|
|
|
|
|
|
return app.exec();
|