Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinview.cpp
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include <QAbstractItemView> | 25 | #include <QAbstractItemView> | ||
26 | #include <QApplication> | 26 | #include <QApplication> | ||
27 | #include <QClipboard> | 27 | #include <QClipboard> | ||
28 | #include <QDropEvent> | 28 | #include <QDropEvent> | ||
29 | #include <QGraphicsSceneDragDropEvent> | 29 | #include <QGraphicsSceneDragDropEvent> | ||
30 | #include <QTimer> | 30 | #include <QTimer> | ||
31 | #include <QScrollBar> | 31 | #include <QScrollBar> | ||
32 | #include <QPixmapCache> | ||||
32 | #include <QPointer> | 33 | #include <QPointer> | ||
33 | #include <QMenu> | 34 | #include <QMenu> | ||
34 | #include <QVBoxLayout> | 35 | #include <QVBoxLayout> | ||
35 | #include <KDesktopFile> | 36 | #include <KDesktopFile> | ||
36 | #include <KProtocolManager> | 37 | #include <KProtocolManager> | ||
37 | #include <KColorScheme> | 38 | #include <KColorScheme> | ||
38 | #include <KDirModel> | 39 | #include <KDirModel> | ||
39 | #include <KFileItem> | 40 | #include <KFileItem> | ||
▲ Show 20 Lines • Show All 686 Lines • ▼ Show 20 Line(s) | 714 | { | |||
726 | update(); | 727 | update(); | ||
727 | } | 728 | } | ||
728 | 729 | | |||
729 | bool DolphinView::eventFilter(QObject* watched, QEvent* event) | 730 | bool DolphinView::eventFilter(QObject* watched, QEvent* event) | ||
730 | { | 731 | { | ||
731 | switch (event->type()) { | 732 | switch (event->type()) { | ||
732 | case QEvent::PaletteChange: | 733 | case QEvent::PaletteChange: | ||
733 | updatePalette(); | 734 | updatePalette(); | ||
735 | QPixmapCache::clear(); | ||||
734 | break; | 736 | break; | ||
emmanuelp: remove the empty line | |||||
735 | 737 | | |||
736 | case QEvent::KeyPress: | 738 | case QEvent::KeyPress: | ||
737 | if (GeneralSettings::useTabForSwitchingSplitView()) { | 739 | if (GeneralSettings::useTabForSwitchingSplitView()) { | ||
738 | QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event); | 740 | QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event); | ||
739 | if (keyEvent->key() == Qt::Key_Tab && keyEvent->modifiers() == Qt::NoModifier) { | 741 | if (keyEvent->key() == Qt::Key_Tab && keyEvent->modifiers() == Qt::NoModifier) { | ||
740 | toggleActiveViewRequested(); | 742 | toggleActiveViewRequested(); | ||
741 | return true; | 743 | return true; | ||
742 | } | 744 | } | ||
▲ Show 20 Lines • Show All 1002 Lines • Show Last 20 Lines |
remove the empty line