mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
23 lines
496 B
C
23 lines
496 B
C
|
|
#ifndef APPSPREVIEWPROVIDER_H
|
|
#define APPSPREVIEWPROVIDER_H
|
|
|
|
#include "previewcontainer.h"
|
|
|
|
static PreviewContainer *PreviewWindow(const WindowInfoMap &infos, const Dock::Position dockPos)
|
|
{
|
|
static PreviewContainer *preview;
|
|
if (!preview) {
|
|
preview = new PreviewContainer;
|
|
}
|
|
|
|
preview->disconnect();
|
|
preview->setWindowInfos(infos);
|
|
preview->updateSnapshots();
|
|
preview->updateLayoutDirection(dockPos);
|
|
|
|
return preview;
|
|
}
|
|
|
|
#endif /* APPSPREVIEWPROVIDER_H */
|