Update calendarwidget example
authorGatis Paeglis <gatis.paeglis@nokia.com>
Mon, 18 Jun 2012 10:01:57 +0000 (12:01 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 10:38:32 +0000 (12:38 +0200)
Due to API changes introduced by ff55d64f6788563a6ef9da2b6d0b6dc23bb936aa

Task-number: QTBUG-26130
Change-Id: I4e5bdf3dd81d75308a3e565239b9d7a95452cd43
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
examples/widgets/calendarwidget/window.cpp

index 0a59640..6796ef7 100644 (file)
@@ -452,10 +452,10 @@ void Window::createTextFormatsGroupBox()
 QComboBox *Window::createColorComboBox()
 {
     QComboBox *comboBox = new QComboBox;
-    comboBox->addItem(tr("Red"), Qt::red);
-    comboBox->addItem(tr("Blue"), Qt::blue);
-    comboBox->addItem(tr("Black"), Qt::black);
-    comboBox->addItem(tr("Magenta"), Qt::magenta);
+    comboBox->addItem(tr("Red"), QColor(Qt::red));
+    comboBox->addItem(tr("Blue"), QColor(Qt::blue));
+    comboBox->addItem(tr("Black"), QColor(Qt::black));
+    comboBox->addItem(tr("Magenta"), QColor(Qt::magenta));
     return comboBox;
 }
 //! [20]