36 lines
713 B
C++
Executable File
36 lines
713 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Philipp Last, NLSE, 2018-03-29
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QPointer>
|
|
#include <QWidget>
|
|
|
|
namespace BuildingViewer
|
|
{
|
|
/*
|
|
* Purpose: The capture/stolen BgViewer widget may be used within a LtsDialog
|
|
* by accessing it via 'BgViewerControllerSingleton::getBgViewerWidget()'.
|
|
* To prevent the deletion of 'pBgViewerWidget' we return this container whose
|
|
* dtor avoids a deletion.
|
|
*/
|
|
class BgViewerWidgetContainer : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit BgViewerWidgetContainer(QWidget *pBgViewerWidget);
|
|
~BgViewerWidgetContainer();
|
|
|
|
signals:
|
|
void signalWidgetReleased();
|
|
|
|
private:
|
|
QPointer<QWidget> m_pBgViewerWidget;
|
|
};
|
|
}
|