| 91 | #endif |
| 92 | |
| 93 | splitViewWidget::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 | |
| 116 | void splitViewWidget::setPlaylistTreeWidget(PlaylistTreeWidget *p) |
| 117 | { |
nothing calls this directly
no test coverage detected