Changeset View
Changeset View
Standalone View
Standalone View
lib/thumbnailview/previewitemdelegate.cpp
Show First 20 Lines • Show All 858 Lines • ▼ Show 20 Line(s) | 858 | { | |||
---|---|---|---|---|---|
859 | d->mThumbnailSize = value; | 859 | d->mThumbnailSize = value; | ||
860 | d->updateViewGridSize(); | 860 | d->updateViewGridSize(); | ||
861 | d->updateContextBar(); | 861 | d->updateContextBar(); | ||
862 | d->mElidedTextCache.clear(); | 862 | d->mElidedTextCache.clear(); | ||
863 | } | 863 | } | ||
864 | 864 | | |||
865 | void PreviewItemDelegate::slotSaveClicked() | 865 | void PreviewItemDelegate::slotSaveClicked() | ||
866 | { | 866 | { | ||
867 | saveDocumentRequested(urlForIndex(d->mIndexUnderCursor)); | 867 | emit saveDocumentRequested(urlForIndex(d->mIndexUnderCursor)); | ||
868 | } | 868 | } | ||
869 | 869 | | |||
870 | void PreviewItemDelegate::slotRotateLeftClicked() | 870 | void PreviewItemDelegate::slotRotateLeftClicked() | ||
871 | { | 871 | { | ||
872 | d->selectIndexUnderCursorIfNoMultiSelection(); | 872 | d->selectIndexUnderCursorIfNoMultiSelection(); | ||
873 | rotateDocumentLeftRequested(urlForIndex(d->mIndexUnderCursor)); | 873 | emit rotateDocumentLeftRequested(urlForIndex(d->mIndexUnderCursor)); | ||
874 | } | 874 | } | ||
875 | 875 | | |||
876 | void PreviewItemDelegate::slotRotateRightClicked() | 876 | void PreviewItemDelegate::slotRotateRightClicked() | ||
877 | { | 877 | { | ||
878 | d->selectIndexUnderCursorIfNoMultiSelection(); | 878 | d->selectIndexUnderCursorIfNoMultiSelection(); | ||
879 | rotateDocumentRightRequested(urlForIndex(d->mIndexUnderCursor)); | 879 | emit rotateDocumentRightRequested(urlForIndex(d->mIndexUnderCursor)); | ||
880 | } | 880 | } | ||
881 | 881 | | |||
882 | void PreviewItemDelegate::slotFullScreenClicked() | 882 | void PreviewItemDelegate::slotFullScreenClicked() | ||
883 | { | 883 | { | ||
884 | showDocumentInFullScreenRequested(urlForIndex(d->mIndexUnderCursor)); | 884 | emit showDocumentInFullScreenRequested(urlForIndex(d->mIndexUnderCursor)); | ||
885 | } | 885 | } | ||
886 | 886 | | |||
887 | void PreviewItemDelegate::slotToggleSelectionClicked() | 887 | void PreviewItemDelegate::slotToggleSelectionClicked() | ||
888 | { | 888 | { | ||
889 | d->mView->selectionModel()->select(d->mIndexUnderCursor, QItemSelectionModel::Toggle); | 889 | d->mView->selectionModel()->select(d->mIndexUnderCursor, QItemSelectionModel::Toggle); | ||
890 | } | 890 | } | ||
891 | 891 | | |||
892 | PreviewItemDelegate::ThumbnailDetails PreviewItemDelegate::thumbnailDetails() const | 892 | PreviewItemDelegate::ThumbnailDetails PreviewItemDelegate::thumbnailDetails() const | ||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |