Commit 0da047a2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove QCombobox usage

parent f22cd644
......@@ -24,7 +24,7 @@
<number>0</number>
</property>
<item>
<widget class="KComboBox" name="zoneCombo"/>
<widget class="QComboBox" name="zoneCombo"/>
</item>
<item>
<layout class="QHBoxLayout">
......@@ -80,13 +80,6 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
......@@ -179,7 +179,7 @@ QWidget *TodoPriorityDelegate::createEditor(QWidget *parent, const QStyleOptionV
Q_UNUSED(option);
Q_UNUSED(index);
KComboBox *combo = new KComboBox(parent);
QComboBox *combo = new QComboBox(parent);
combo->addItem(i18nc("@action:inmenu Unspecified priority", "unspecified"));
combo->addItem(i18nc("@action:inmenu highest priority", "1 (highest)"));
......@@ -197,14 +197,14 @@ QWidget *TodoPriorityDelegate::createEditor(QWidget *parent, const QStyleOptionV
void TodoPriorityDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
{
KComboBox *combo = static_cast<KComboBox *>(editor);
QComboBox *combo = static_cast<QComboBox *>(editor);
combo->setCurrentIndex(index.data(Qt::EditRole).toInt());
}
void TodoPriorityDelegate::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
{
KComboBox *combo = static_cast<KComboBox *>(editor);
QComboBox *combo = static_cast<QComboBox *>(editor);
model->setData(index, combo->currentIndex());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment