From f88b4aefe914dedb0e9722119f7aa3ed5595db2c Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 5 Jun 2015 14:26:12 +0200 Subject: [PATCH] Disable testing hacks for package installs. --- src/GUI/AircraftItemDelegate.cxx | 2 +- src/GUI/AircraftModel.cxx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GUI/AircraftItemDelegate.cxx b/src/GUI/AircraftItemDelegate.cxx index b13a9500b..51a3701be 100644 --- a/src/GUI/AircraftItemDelegate.cxx +++ b/src/GUI/AircraftItemDelegate.cxx @@ -143,7 +143,7 @@ void AircraftItemDelegate::paint(QPainter * painter, const QStyleOptionViewItem QVariant v = index.data(AircraftPackageStatusRole); AircraftItemStatus status = static_cast(v.toInt()); - status = PackageNotInstalled; + // status = PackageNotInstalled; if (status != PackageInstalled) { painter->setBrush(Qt::NoBrush); QRect buttonRect = packageButtonRect(option.rect, index); diff --git a/src/GUI/AircraftModel.cxx b/src/GUI/AircraftModel.cxx index 16b9007c1..918a6b04b 100644 --- a/src/GUI/AircraftModel.cxx +++ b/src/GUI/AircraftModel.cxx @@ -417,10 +417,12 @@ QVariant AircraftItemModel::dataFromItem(const AircraftItem* item, quint32 varia } return have; } else if (role == AircraftLongDescriptionRole) { +#if 0 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. " "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."; +#endif } return QVariant();