Changeset View
Changeset View
Standalone View
Standalone View
krusader/DiskUsage/radialMap/widgetEvents.cpp
Show First 20 Lines • Show All 229 Lines • ▼ Show 20 Line(s) | |||||
230 | #endif | 230 | #endif | ||
231 | new KRun(url, this, true); //FIXME see above | 231 | new KRun(url, this, true); //FIXME see above | ||
232 | } else if (m_focus->file() != m_tree) { //is left mouse button | 232 | } else if (m_focus->file() != m_tree) { //is left mouse button | ||
233 | #if 0 // TODO: PORTME | 233 | #if 0 // TODO: PORTME | ||
234 | KIconEffect::visualActivate(this, rect); | 234 | KIconEffect::visualActivate(this, rect); | ||
235 | #endif | 235 | #endif | ||
236 | emit activated(url); //activate first, this will cause UI to prepare itself | 236 | emit activated(url); //activate first, this will cause UI to prepare itself | ||
237 | if (m_focus) | 237 | if (m_focus) | ||
238 | createFromCache((Directory *)m_focus->file()); | 238 | createFromCache(dynamic_cast<const Directory*>(m_focus->file())); | ||
239 | } | 239 | } | ||
240 | } | 240 | } | ||
241 | } | 241 | } | ||
242 | } | 242 | } | ||
243 | 243 | | |||
244 | void | 244 | void | ||
245 | RadialMap::Widget::deleteJobFinished(KJob *job) | 245 | RadialMap::Widget::deleteJobFinished(KJob *job) | ||
246 | { | 246 | { | ||
247 | QApplication::restoreOverrideCursor(); | 247 | QApplication::restoreOverrideCursor(); | ||
248 | if (!job->error()) | 248 | if (!job->error()) | ||
249 | invalidate(); | 249 | invalidate(); | ||
250 | else | 250 | else | ||
251 | job->uiDelegate()->showErrorMessage(); | 251 | job->uiDelegate()->showErrorMessage(); | ||
252 | } | 252 | } |