On Wed, Aug 06, 2014 at 06:09:07PM -0300, Tomaz Canabrava wrote:
> this was needed to remove the pictures that are not on the trip.

> --- a/qt-ui/modeldelegates.cpp
> +++ b/qt-ui/modeldelegates.cpp
> @@ -63,8 +63,9 @@ QSize StarWidgetsDelegate::sizeHint(const 
> QStyleOptionViewItem &option, const QM
>       return QSize(IMG_SIZE * TOTALSTARS + SPACING * (TOTALSTARS - 1), 
> IMG_SIZE);
>  }
>  
> -ComboBoxDelegate::ComboBoxDelegate(QAbstractItemModel *model, QObject 
> *parent) : QStyledItemDelegate(parent), model(model)
> +ComboBoxDelegate::ComboBoxDelegate(QAbstractItemModel *model, QObject 
> *parent) : QStyledItemDelegate(parent)
>  {
> +     model = new QSortFilterProxyModel();
>       connect(this, SIGNAL(closeEditor(QWidget *, 
> QAbstractItemDelegate::EndEditHint)),
>               this, SLOT(revertModelData(QWidget *, 
> QAbstractItemDelegate::EndEditHint)));
>       connect(this, SIGNAL(closeEditor(QWidget *, 
> QAbstractItemDelegate::EndEditHint)),

Are you sure about this change? I don't see it's connection to the
pictures... I worry that this is from you playing with sorting the
locations drop-down...

/D
_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to