MCPcopy Create free account
hub / github.com/IENT/YUView / getOtherWidget

Method getOtherWidget

YUViewLib/src/ui/views/SplitViewWidget.cpp:2051–2063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2049}
2050
2051QPointer<splitViewWidget> splitViewWidget::getOtherWidget() const
2052{
2053 if (this->isMasterView)
2054 {
2055 Q_ASSERT_X(this->slaveViews.size() == 1, Q_FUNC_INFO, "The other view is not set as slave.");
2056 return QPointer<splitViewWidget>(qobject_cast<splitViewWidget *>(this->slaveViews[0]));
2057 }
2058 else
2059 {
2060 Q_ASSERT_X(this->masterView, Q_FUNC_INFO, "The master view is not set.");
2061 return QPointer<splitViewWidget>(qobject_cast<splitViewWidget *>(this->masterView));
2062 }
2063}
2064
2065void splitViewWidget::getStateFromMaster()
2066{

Callers 11

setDrawZoomBoxMethod · 0.95
setMoveOffsetMethod · 0.95
setSplittingPointMethod · 0.95
setZoomFactorMethod · 0.95
setViewSplitModeMethod · 0.95
setRegularGridSizeMethod · 0.95
setViewStateMethod · 0.95
addMenuActionsMethod · 0.95
getStateFromMasterMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected