mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Copyed the code from Dirk that solved the mac issue on cylinders.
This is the same code that Dirk used on the Mac to fix the bad-behavior of Cylinder Selection, this time applyed to Weigthsystem selection. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0b5f9512ef
commit
0b0860d24a
1 changed files with 5 additions and 1 deletions
|
@ -262,7 +262,11 @@ struct RevertWeightData {
|
|||
|
||||
void WSInfoDelegate::revertModelData(QWidget* widget, QAbstractItemDelegate::EndEditHint hint)
|
||||
{
|
||||
if (hint == QAbstractItemDelegate::NoHint || hint == QAbstractItemDelegate::RevertModelCache){
|
||||
if (
|
||||
#if !defined __APPLE__
|
||||
hint == QAbstractItemDelegate::NoHint ||
|
||||
#endif
|
||||
hint == QAbstractItemDelegate::RevertModelCache) {
|
||||
WeightModel *mymodel = qobject_cast<WeightModel *>(currCombo.model);
|
||||
mymodel->setData(IDX(WeightModel::TYPE), currWeight.type, Qt::EditRole);
|
||||
mymodel->passInData(IDX(WeightModel::WEIGHT), currWeight.weight);
|
||||
|
|
Loading…
Reference in a new issue