Commit 5ac37603 authored by Craig Watson's avatar Craig Watson

Hide library pane's detail view for local items

Web results still show the details which include some metadata about the
image retrieved, for example.

This is now a setting so it can easily be re-enabled if desired (which
could be useful especially if we decide to also display metadata of
local items)
parent 79d24031
......@@ -409,6 +409,8 @@ void UBSettings::init()
documentThumbnailWidth = new UBSetting(this, "Document", "ThumbnailWidth", UBSettings::defaultThumbnailWidth);
libraryShowDetailsForLocalItems = new UBSetting(this, "Library", "ShowDetailsForLocalItems", false);
imageThumbnailWidth = new UBSetting(this, "Library", "ImageThumbnailWidth", UBSettings::defaultImageWidth);
videoThumbnailWidth = new UBSetting(this, "Library", "VideoThumbnailWidth", UBSettings::defaultVideoWidth);
shapeThumbnailWidth = new UBSetting(this, "Library", "ShapeThumbnailWidth", UBSettings::defaultShapeWidth);
......
......@@ -364,6 +364,8 @@ class UBSettings : public QObject
UBSetting* gipThumbnailWidth;
UBSetting* soundThumbnailWidth;
UBSetting* libraryShowDetailsForLocalItems;
UBSetting* rightLibPaletteBoardModeWidth;
UBSetting* rightLibPaletteBoardModeIsCollapsed;
UBSetting* rightLibPaletteDesktopModeWidth;
......
......@@ -175,10 +175,8 @@ void UBFeaturesWidget::currentSelected(const QModelIndex &current)
// centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturesWebView);
}
// Don't show the properties page for interactivities, applications and animations
else if (feature.getType() != FEATURE_INTERACTIVE
&& feature.getType() != FEATURE_INTERNAL
&& feature.getType() != FEATURE_FLASH)
if (UBSettings::settings()->libraryShowDetailsForLocalItems->get().toBool() == true)
{
centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturePropertiesList);
mActionBar->setCurrentState( IN_PROPERTIES );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment