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); documentThumbnailWidth = new UBSetting(this, "Document", "ThumbnailWidth", UBSettings::defaultThumbnailWidth);
libraryShowDetailsForLocalItems = new UBSetting(this, "Library", "ShowDetailsForLocalItems", false);
imageThumbnailWidth = new UBSetting(this, "Library", "ImageThumbnailWidth", UBSettings::defaultImageWidth); imageThumbnailWidth = new UBSetting(this, "Library", "ImageThumbnailWidth", UBSettings::defaultImageWidth);
videoThumbnailWidth = new UBSetting(this, "Library", "VideoThumbnailWidth", UBSettings::defaultVideoWidth); videoThumbnailWidth = new UBSetting(this, "Library", "VideoThumbnailWidth", UBSettings::defaultVideoWidth);
shapeThumbnailWidth = new UBSetting(this, "Library", "ShapeThumbnailWidth", UBSettings::defaultShapeWidth); shapeThumbnailWidth = new UBSetting(this, "Library", "ShapeThumbnailWidth", UBSettings::defaultShapeWidth);

@ -364,6 +364,8 @@ class UBSettings : public QObject
UBSetting* gipThumbnailWidth; UBSetting* gipThumbnailWidth;
UBSetting* soundThumbnailWidth; UBSetting* soundThumbnailWidth;
UBSetting* libraryShowDetailsForLocalItems;
UBSetting* rightLibPaletteBoardModeWidth; UBSetting* rightLibPaletteBoardModeWidth;
UBSetting* rightLibPaletteBoardModeIsCollapsed; UBSetting* rightLibPaletteBoardModeIsCollapsed;
UBSetting* rightLibPaletteDesktopModeWidth; UBSetting* rightLibPaletteDesktopModeWidth;

@ -175,10 +175,8 @@ void UBFeaturesWidget::currentSelected(const QModelIndex &current)
// centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturesWebView); // centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturesWebView);
} }
// Don't show the properties page for interactivities, applications and animations
else if (feature.getType() != FEATURE_INTERACTIVE if (UBSettings::settings()->libraryShowDetailsForLocalItems->get().toBool() == true)
&& feature.getType() != FEATURE_INTERNAL
&& feature.getType() != FEATURE_FLASH)
{ {
centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturePropertiesList); centralWidget->showElement(feature, UBFeaturesCentralWidget::FeaturePropertiesList);
mActionBar->setCurrentState( IN_PROPERTIES ); mActionBar->setCurrentState( IN_PROPERTIES );

Loading…
Cancel
Save