diff options
author | Arno <am@disconnect.de> | 2010-10-30 08:37:40 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-10-30 08:37:40 +0200 |
commit | b4c2989e289e482a85a71db1c43f425079bcd15f (patch) | |
tree | e357b077beb55d97bfdb67d93c7b779bdffa8ba6 /programconfigurator.cpp | |
parent | 7e0abc7cde4a9c02fabc27cc2b6506bd41f0588d (diff) | |
download | SheMov-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 'programconfigurator.cpp')
0 files changed, 0 insertions, 0 deletions