From 7f139e88444860baf275daaa35b387e7e8a448a3 Mon Sep 17 00:00:00 2001 From: Gatis Paeglis Date: Mon, 18 Jun 2012 12:01:57 +0200 Subject: Update calendarwidget example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to API changes introduced by ff55d64f6788563a6ef9da2b6d0b6dc23bb936aa Task-number: QTBUG-26130 Change-Id: I4e5bdf3dd81d75308a3e565239b9d7a95452cd43 Reviewed-by: Jędrzej Nowacki --- examples/widgets/calendarwidget/window.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') 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] -- cgit v1.2.3