summaryrefslogtreecommitdiffstats
path: root/examples/widgets
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@nokia.com>2012-06-18 12:01:57 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-20 12:38:32 +0200
commit7f139e88444860baf275daaa35b387e7e8a448a3 (patch)
treee9bc91f276efa7ebbe2c8a6f813f921981ceee79 /examples/widgets
parentf9817dda5576db8709750cea7d799b1e5ea40ca0 (diff)
Update calendarwidget example
Due to API changes introduced by ff55d64f6788563a6ef9da2b6d0b6dc23bb936aa Task-number: QTBUG-26130 Change-Id: I4e5bdf3dd81d75308a3e565239b9d7a95452cd43 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'examples/widgets')
-rw-r--r--examples/widgets/calendarwidget/window.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/widgets/calendarwidget/window.cpp b/examples/widgets/calendarwidget/window.cpp
index 0a59640327..6796ef7f9d 100644
--- a/examples/widgets/calendarwidget/window.cpp
+++ b/examples/widgets/calendarwidget/window.cpp
@@ -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]