mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-26 16:26:48 -06:00
20 lines
617 B
C++
20 lines
617 B
C++
#include "RiuInterfaceToViewWindow.h"
|
|
|
|
#include <QWidget>
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
RimViewWindow* RiuInterfaceToViewWindow::viewWindowFromWidget(QWidget* possibleViewWindowWidget)
|
|
{
|
|
auto interfaceToViewWindow = dynamic_cast<RiuInterfaceToViewWindow*>(possibleViewWindowWidget);
|
|
if ( interfaceToViewWindow )
|
|
{
|
|
return (interfaceToViewWindow->ownerViewWindow());
|
|
}
|
|
else
|
|
{
|
|
return nullptr;
|
|
}
|
|
}
|