Commit 6b6cf26c authored by Halla Rempt's avatar Halla Rempt

BUG:342654 Don't show the floating message over the document tabs

parent ec063246
......@@ -1180,7 +1180,7 @@ void KisViewManager::showFloatingMessage(const QString message, const QIcon& ico
if (d->savedFloatingMessage) {
d->savedFloatingMessage->tryOverrideMessage(message, icon, timeout, priority, alignment);
} else {
d->savedFloatingMessage = new KisFloatingMessage(message, qtMainWindow()->centralWidget(), false, timeout, priority, alignment);
d->savedFloatingMessage = new KisFloatingMessage(message, d->currentImageView->canvasBase()->canvasWidget(), false, timeout, priority, alignment);
d->savedFloatingMessage->setShowOverParent(true);
d->savedFloatingMessage->setIcon(icon);
d->savedFloatingMessage->showMessage();
......
......@@ -223,7 +223,7 @@ QRect KisFloatingMessage::determineMetrics( const int M )
if (parentWidget() && m_showOverParent) {
screen = parentWidget()->geometry();
screen.setTopLeft(parentWidget()->mapToGlobal(QPoint(MARGIN, MARGIN)));
screen.setTopLeft(parentWidget()->mapToGlobal(QPoint(MARGIN, MARGIN + 50)));
newPos = screen.topLeft();
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment