Update calendarwidget example
Due to API changes introduced by ff55d64f67
Task-number: QTBUG-26130
Change-Id: I4e5bdf3dd81d75308a3e565239b9d7a95452cd43
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
bb10
parent
f9817dda55
commit
7f139e8844
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue