dde-dock/frame/item/components/appspreviewprovider.h
listenerri 8b084117f8 add(preview): support identify window closeable
There is no close button when previewing a window that cannot be closed

Change-Id: Ic97f1fdd287fad1c06578e1745d526da61d0088e
2018-10-08 11:43:03 +08:00

23 lines
538 B
C

#ifndef APPSPREVIEWPROVIDER_H
#define APPSPREVIEWPROVIDER_H
#include "previewcontainer.h"
static PreviewContainer *PreviewWindow(const WindowInfoMap &infos, const WindowList &allowClose, const Dock::Position dockPos)
{
static PreviewContainer *preview;
if (!preview) {
preview = new PreviewContainer;
}
preview->disconnect();
preview->setWindowInfos(infos, allowClose);
preview->updateSnapshots();
preview->updateLayoutDirection(dockPos);
return preview;
}
#endif /* APPSPREVIEWPROVIDER_H */