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)
preferencesAboutTextFull
Craig Watson 7 years ago
parent 79d2403192
commit 5ac37603da
  1. 2
      src/core/UBSettings.cpp
  2. 2
      src/core/UBSettings.h
  3. 6
      src/gui/UBFeaturesWidget.cpp

@ -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 );

Loading…
Cancel
Save