summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-10-30 08:37:40 +0200
committerArno <am@disconnect.de>2010-10-30 08:37:40 +0200
commitb4c2989e289e482a85a71db1c43f425079bcd15f (patch)
treee357b077beb55d97bfdb67d93c7b779bdffa8ba6 /filesystemwidget.h
parent7e0abc7cde4a9c02fabc27cc2b6506bd41f0588d (diff)
downloadSheMov-b4c2989e289e482a85a71db1c43f425079bcd15f.tar.gz
SheMov-b4c2989e289e482a85a71db1c43f425079bcd15f.tar.bz2
SheMov-b4c2989e289e482a85a71db1c43f425079bcd15f.zip
Performance improvement in FileView
This was a tricky one. Once again SheMov spinned at almost 100% CPU usage. This time FileView::event() was the culprit. Because FileView uses a QFileSystemModel it receives QTimer-Events every second. Unfortunately a static_cast from QEvent::Timer to QEvent::Hover* succeeds so we fetched the cursor position every second and tried to get a QModelIndex. This obviously is quite expensive. Fixed it by checking if e->type() is of QEvent::Hover* right at the beginning of FileView::event().
Diffstat (limited to 'filesystemwidget.h')
0 files changed, 0 insertions, 0 deletions