https://bugs.kde.org/show_bug.cgi?id=377803

--- Comment #2 from Ashark <ash...@linuxcomp.ru> ---
Here is my exploration path:
1) "Show background" sting is contained in titlewidget_ui.ui. Name of checkbox
widget is "displayBg".
2) "displayBg" is mentioned in titlewidget.cpp on line 229:
 connect(displayBg, &QCheckBox::stateChanged, this,
&TitleWidget::displayBackgroundFrame);
 and there is TitleWidget::displayBackgroundFrame() method.
3) TitleWidget::displayBackgroundFrame() is defined in the same file on line
840. It checks if checkbox is activated and if yes,
 emit signal requestBackgroundFrame(true);

Also this file contains 
void TitleWidget::slotGotBackground(const QImage &img)(const QImage &img)
{
    QRectF r = m_frameBorder->sceneBoundingRect();
    m_frameImage->setPixmap(QPixmap::fromImage(img.scaled(r.width() / 2,
r.height() / 2)));
    emit requestBackgroundFrame(false);
}

As you can see, it already gets image as a parameter.
So we should find where it prepares image and I think temporary disable title
clip before getting it.
But I could not find place where slotGotBackground(const QImage &img) is called
from.

4) Perhaps bin.cpp is a place where title editing is done (line 3393 says
"TODO: move title editing into a better place..."). File contains the
following:
connect(&dia_ui, &TitleWidget::requestBackgroundFrame,
pCore->monitorManager()->projectMonitor(), &Monitor::slotGetCurrentImage);

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to