From 4090a5c5b516da5704d59ba68e94a558ff87c54e Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 29 Jul 2008 03:57:09 +0000 Subject: [PATCH] Fix combo box model problems --- src/Qtx/QtxComboBox.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Qtx/QtxComboBox.cxx b/src/Qtx/QtxComboBox.cxx index 25ac78cf7..831cb18c5 100755 --- a/src/Qtx/QtxComboBox.cxx +++ b/src/Qtx/QtxComboBox.cxx @@ -85,7 +85,8 @@ void QtxComboBox::Model::setCleared( const bool isClear ) */ QVariant QtxComboBox::Model::data( const QModelIndex& index, int role ) const { - return myCleared ? QVariant() : QStandardItemModel::data( index, role ); + return ( myCleared && ( role == Qt::DisplayRole || role == Qt::DecorationRole ) ) ? + QVariant() : QStandardItemModel::data( index, role ); } /*! -- 2.39.2