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

Method splitViewWidget

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

Source from the content-addressed store, hash-verified

91#endif
92
93splitViewWidget::splitViewWidget(QWidget *parent) : MoveAndZoomableView(parent)
94{
95 paletteBackgroundColorSettingsTag = "View/BackgroundColor";
96
97 setFocusPolicy(Qt::NoFocus);
98 setViewSplitMode(DISABLED);
99 updateSettings();
100 setContextMenuPolicy(Qt::PreventContextMenu);
101
102 // No test running yet
103 connect(&testProgrssUpdateTimer, &QTimer::timeout, this, [=] { updateTestProgress(); });
104
105 // Initialize the font and the position of the zoom factor indication
106 zoomFactorFont = QFont(SPLITVIEWWIDGET_ZOOMFACTOR_FONT, SPLITVIEWWIDGET_ZOOMFACTOR_FONTSIZE);
107 QFontMetrics fm(zoomFactorFont);
108 zoomFactorFontPos = QPoint(10, fm.height());
109
110 // Load the caching pixmap
111 waitingForCachingPixmap = QPixmap(":/img_hourglass.png");
112
113 this->createMenuActions();
114}
115
116void splitViewWidget::setPlaylistTreeWidget(PlaylistTreeWidget *p)
117{

Callers

nothing calls this directly

Calls 1

createMenuActionsMethod · 0.95

Tested by

no test coverage detected