1
0
Fork 0

Disable testing hacks for package installs.

This commit is contained in:
James Turner 2015-06-05 14:26:12 +02:00
parent 9f5a4609d6
commit f88b4aefe9
2 changed files with 3 additions and 1 deletions

View file

@ -143,7 +143,7 @@ void AircraftItemDelegate::paint(QPainter * painter, const QStyleOptionViewItem
QVariant v = index.data(AircraftPackageStatusRole); QVariant v = index.data(AircraftPackageStatusRole);
AircraftItemStatus status = static_cast<AircraftItemStatus>(v.toInt()); AircraftItemStatus status = static_cast<AircraftItemStatus>(v.toInt());
status = PackageNotInstalled; // status = PackageNotInstalled;
if (status != PackageInstalled) { if (status != PackageInstalled) {
painter->setBrush(Qt::NoBrush); painter->setBrush(Qt::NoBrush);
QRect buttonRect = packageButtonRect(option.rect, index); QRect buttonRect = packageButtonRect(option.rect, index);

View file

@ -417,10 +417,12 @@ QVariant AircraftItemModel::dataFromItem(const AircraftItem* item, quint32 varia
} }
return have; return have;
} else if (role == AircraftLongDescriptionRole) { } else if (role == AircraftLongDescriptionRole) {
#if 0
return "Lorum Ipsum, etc. Is this the real life? Is this just fantasy? Caught in a land-slide, " return "Lorum Ipsum, etc. Is this the real life? Is this just fantasy? Caught in a land-slide, "
"no escape from reality. Open your eyes, like up to the skies and see. " "no escape from reality. Open your eyes, like up to the skies and see. "
"I'm just a poor boy, I need no sympathy because I'm easy come, easy go." "I'm just a poor boy, I need no sympathy because I'm easy come, easy go."
"Litte high, little low. Anywhere the wind blows."; "Litte high, little low. Anywhere the wind blows.";
#endif
} }
return QVariant(); return QVariant();