Changeset View
Changeset View
Standalone View
Standalone View
src/panels/information/informationpanel.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 83 | if (QApplication::mouseButtons() & Qt::LeftButton) { | |||
---|---|---|---|---|---|
86 | return; | 86 | return; | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | cancelRequest(); | 89 | cancelRequest(); | ||
90 | 90 | | |||
91 | if (item.isNull()) { | 91 | if (item.isNull()) { | ||
92 | // The cursor is above the viewport. If files are selected, | 92 | // The cursor is above the viewport. If files are selected, | ||
93 | // show information regarding the selection. | 93 | // show information regarding the selection. | ||
94 | if (m_selection.size() > 0) { | 94 | if (!m_selection.isEmpty()) { | ||
95 | m_fileItem = KFileItem(); | 95 | m_fileItem = KFileItem(); | ||
96 | m_infoTimer->start(); | 96 | m_infoTimer->start(); | ||
97 | } | 97 | } | ||
98 | } else if (item.url().isValid() && !isEqualToShownUrl(item.url())) { | 98 | } else if (item.url().isValid() && !isEqualToShownUrl(item.url())) { | ||
99 | // The cursor is above an item that is not shown currently | 99 | // The cursor is above an item that is not shown currently | ||
100 | m_urlCandidate = item.url(); | 100 | m_urlCandidate = item.url(); | ||
101 | m_fileItem = item; | 101 | m_fileItem = item; | ||
102 | m_infoTimer->start(); | 102 | m_infoTimer->start(); | ||
▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines |