Disable testing hacks for package installs.
This commit is contained in:
parent
9f5a4609d6
commit
f88b4aefe9
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue