Changeset View
Changeset View
Standalone View
Standalone View
krusader/DiskUsage/radialMap/widget.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 41 | RadialMap::Widget::Widget(QWidget *parent) | |||
---|---|---|---|---|---|
45 | , m_tip(QFontMetrics(font()).height()) //needs to know cursor height | 45 | , m_tip(QFontMetrics(font()).height()) //needs to know cursor height | ||
46 | , m_rootSegment(nullptr) //TODO we don't delete it, *shrug* | 46 | , m_rootSegment(nullptr) //TODO we don't delete it, *shrug* | ||
47 | { | 47 | { | ||
48 | QPalette pal = palette(); | 48 | QPalette pal = palette(); | ||
49 | pal.setColor(backgroundRole(), Qt::white); | 49 | pal.setColor(backgroundRole(), Qt::white); | ||
50 | setPalette(pal); | 50 | setPalette(pal); | ||
51 | 51 | | |||
52 | connect(this, &Widget::created, this, &Widget::sendFakeMouseEvent); | 52 | connect(this, &Widget::created, this, &Widget::sendFakeMouseEvent); | ||
53 | connect(this, &Widget::created, this, QOverload<>::of(&Widget::update)); | 53 | connect(this, &Widget::created, this, static_cast<void (Widget::*)()>(&Widget::update)); | ||
54 | connect(&m_timer, &QTimer::timeout, this, &Widget::resizeTimeout); | 54 | connect(&m_timer, &QTimer::timeout, this, &Widget::resizeTimeout); | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | QString | 57 | QString | ||
58 | RadialMap::Widget::path() const | 58 | RadialMap::Widget::path() const | ||
59 | { | 59 | { | ||
60 | if (m_tree == nullptr) | 60 | if (m_tree == nullptr) | ||
61 | return QString(); | 61 | return QString(); | ||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |