Changeset View
Changeset View
Standalone View
Standalone View
src/views/dolphinview.cpp
Show First 20 Lines • Show All 1110 Lines • ▼ Show 20 Line(s) | 1110 | if (buttons & Qt::BackButton) { | |||
---|---|---|---|---|---|
1111 | emit goBackRequested(); | 1111 | emit goBackRequested(); | ||
1112 | } else if (buttons & Qt::ForwardButton) { | 1112 | } else if (buttons & Qt::ForwardButton) { | ||
1113 | emit goForwardRequested(); | 1113 | emit goForwardRequested(); | ||
1114 | } | 1114 | } | ||
1115 | } | 1115 | } | ||
1116 | 1116 | | |||
1117 | void DolphinView::slotSelectedItemTextPressed(int index) | 1117 | void DolphinView::slotSelectedItemTextPressed(int index) | ||
1118 | { | 1118 | { | ||
1119 | if (GeneralSettings::renameInline()) { | 1119 | if (GeneralSettings::renameInline() && !m_view->style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick)) { | ||
1120 | const KFileItem item = m_model->fileItem(index); | 1120 | const KFileItem item = m_model->fileItem(index); | ||
1121 | const KFileItemListProperties capabilities(KFileItemList() << item); | 1121 | const KFileItemListProperties capabilities(KFileItemList() << item); | ||
1122 | if (capabilities.supportsMoving()) { | 1122 | if (capabilities.supportsMoving()) { | ||
1123 | m_twoClicksRenamingItemUrl = item.url(); | 1123 | m_twoClicksRenamingItemUrl = item.url(); | ||
1124 | m_twoClicksRenamingTimer->start(QApplication::doubleClickInterval()); | 1124 | m_twoClicksRenamingTimer->start(QApplication::doubleClickInterval()); | ||
1125 | } | 1125 | } | ||
1126 | } | 1126 | } | ||
1127 | } | 1127 | } | ||
▲ Show 20 Lines • Show All 682 Lines • Show Last 20 Lines |