28#include <QKeySequence>
30#include <QDragMoveEvent>
37#include <QPersistentModelIndex>
39#include <QProgressBar>
46#include <QApplication>
47#include <QScopedPointer>
51#if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
52# pragma GCC diagnostic push
53# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
56#if defined(Q_CC_CLANG)
57# pragma clang diagnostic push
58# pragma clang diagnostic ignored "-Wdeprecated-declarations"
61#include <kactioncollection.h>
62#include <klocalizedstring.h>
63#include <kconfiggroup.h>
64#include <ksharedconfig.h>
65#include <kxmlgui_version.h>
68#if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
69# pragma GCC diagnostic pop
72#if defined(Q_CC_CLANG)
73# pragma clang diagnostic pop
159 return QLatin1String(
"/");
174 return imageFilterModel->indexForItemInfo(currentItemInfo);
179 return imageInfoModel->indexForItemInfo(currentItemInfo);
184 return !currentItemInfo.isNull();
189 return currentItemInfo.fileUrl();
194 return imageFilterModel->index(currentIndex().row() + 1, 0);
199 return imageFilterModel->index(currentIndex().row() - 1, 0);
204 return imageFilterModel->index(0, 0);
209 return imageFilterModel->index(imageFilterModel->rowCount() - 1, 0);
214 return imageFilterModel->imageInfo(index);
219 QModelIndex index = imageFilterModel->indexForItemInfo(currentItemInfo);
223 thumbBar->setCurrentIndex(index);
227 thumbBar->setCurrentWhenAvailable(currentItemInfo.id());
233 if (!imageInfoModel->hasImage(info))
235 imageInfoModel->addItemInfoSynchronously(info);
236 imageFilterModel->sort(imageFilterModel->sortColumn());
242 const QString configShowThumbbarEntry = QLatin1String(
"Show Thumbbar");
244 QMainWindow* viewContainer =
nullptr;
246 QAction* toMainWindowAction =
nullptr;
249 QAction* fileDeletePermanentlyAction =
nullptr;
250 QAction* fileDeletePermanentlyDirectlyAction =
nullptr;
251 QAction* fileTrashDirectlyAction =
nullptr;
Definition collectionlocation.h:31
QString albumRootPath() const
Definition collectionlocation.cpp:50
bool isNull() const
Definition collectionlocation.h:163
Definition imagewindow_p.h:147
QString toplevelDirectory(const QString &path) override
Definition imagewindow_p.h:150
Definition imagewindow_p.h:166
ItemInfo imageInfo(const QModelIndex &index) const
Definition imagewindow_p.h:212
QModelIndex previousIndex() const
Definition imagewindow_p.h:197
QModelIndex lastIndex() const
Definition imagewindow_p.h:207
ItemInfo currentItemInfo
Definition imagewindow_p.h:253
QModelIndex currentSourceIndex() const
Definition imagewindow_p.h:177
QList< FaceTagsIface > facesList
Definition imagewindow_p.h:265
bool currentIsValid() const
Definition imagewindow_p.h:182
void ensureModelContains(const ItemInfo &info)
Definition imagewindow_p.h:231
DatabaseVersionManager versionManager
Definition imagewindow_p.h:263
QModelIndex nextIndex() const
Definition imagewindow_p.h:192
QUrl currentUrl() const
Definition imagewindow_p.h:187
QModelIndex currentIndex() const
Definition imagewindow_p.h:172
QModelIndex firstIndex() const
Definition imagewindow_p.h:202
void setThumbBarToCurrent()
Definition imagewindow_p.h:217
Definition imagewindow.h:38
Definition itemdragdrop.h:32
Definition itemfiltermodel.h:115
Definition itemlistmodel.h:29
Definition itemthumbnailbar.h:28
Definition thumbbardock.h:74
Definition versionmanager.h:36
Definition datefolderview.cpp:34