find_package(LibKonq)
macro_log_feature(LIBKONQ_FOUND "libkonq" "Standard file management features" "http://www.kde.org" TRUE)
-find_package(KActivities 6.1.0)
-macro_log_feature(KActivities_FOUND "KActivities" "Activities interface library" "https://projects.kde.org/projects/kde/kdelibs/kactivities" TRUE "6.1.0")
-
find_package(Kdcraw 2.4.2)
macro_log_feature(KDCRAW_FOUND "libkdcraw" "KDE Dcraw library" "http://www.kde.org" TRUE "2.4.2")
#include <KMessageBox>
#include <KModelIndexProxyMapper>
#include <KToggleAction>
-#include <KActivities/ResourceInstance>
// Local
#include "fileoperations.h"
KToggleAction* mSynchronizeAction;
QCheckBox* mSynchronizeCheckBox;
- // Activity Resource events reporting needs to be above KPart,
- // in the shell itself, to avoid problems with other MDI applications
- // that use this KPart
- QHash<DocumentView*, KActivities::ResourceInstance*> mActivityResources;
+ QHash<DocumentView*;
bool mFullScreenMode;
bool mCompareMode;
mSlideShow, SLOT(resumeAndGoToNextUrl()));
mDocumentViews << view;
- mActivityResources.insert(view, new KActivities::ResourceInstance(q->window()->winId(), view));
return view;
}
QObject::disconnect(view, 0, mSlideShow, 0);
mDocumentViews.removeOne(view);
- mActivityResources.remove(view);
mDocumentViewContainer->deleteView(view);
}
}
if (oldView) {
oldView->setCurrent(false);
- Q_ASSERT(mActivityResources.contains(oldView));
- mActivityResources.value(oldView)->notifyFocusedOut();
}
view->setCurrent(true);
mDocumentViewController->setView(view);
// *before* listing /foo (because it matters less to the user)
mThumbnailBar->selectionModel()->setCurrentIndex(index, QItemSelectionModel::Current);
}
-
- Q_ASSERT(mActivityResources.contains(view));
- mActivityResources.value(view)->notifyFocusedIn();
}
QModelIndex indexForView(DocumentView* view) const
DocumentView* view = it.value();
DocumentView::Setup savedSetup = d->mDocumentViewContainer->savedSetup(url);
view->openUrl(url, savedSetup.valid ? savedSetup : setup);
- d->mActivityResources.value(view)->setUri(url);
}
// Init views