Commit c6a61a5d authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

fix ugly borders in map

parent e8fb1467
......@@ -367,7 +367,7 @@ void RadialMap::Map::paint(bool antialias)
QRect rect = m_rect;
rect.adjust(5, 5, -5, -5);
m_pixmap.fill(scheme.background().color());
m_pixmap.fill(Qt::transparent);
//m_rect.moveRight(1); // Uncommenting this breaks repainting when recreating map from cache
......
......@@ -71,8 +71,7 @@ void RadialMap::Widget::paintEvent(QPaintEvent*)
if (!m_map.isNull())
paint.drawPixmap(m_offset, m_map.pixmap());
else
{
else {
paint.drawText(rect(), 0, i18nc("We messed up, the user needs to initiate a rescan.", "Internal representation is invalid,\nplease rescan."));
return;
}
......@@ -363,7 +362,7 @@ void RadialMap::Widget::deleteJobFinished(KJob *job)
m_toBeDeleted = nullptr;
m_focus = nullptr;
m_map.make(m_tree, true);
repaint();
update();
} else
KMessageBox::error(this, job->errorString(), i18n("Error while deleting"));
}
......
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