Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfilewidget.cpp
Show First 20 Lines • Show All 2109 Lines • ▼ Show 20 Line(s) | 2109 | // qDebug() << "setting lafBox minwidth to" << placesViewWidth; | |||
---|---|---|---|---|---|
2110 | setLafBoxColumnWidth(); | 2110 | setLafBoxColumnWidth(); | ||
2111 | } | 2111 | } | ||
2112 | } | 2112 | } | ||
2113 | 2113 | | |||
2114 | void KFileWidgetPrivate::_k_activateUrlNavigator() | 2114 | void KFileWidgetPrivate::_k_activateUrlNavigator() | ||
2115 | { | 2115 | { | ||
2116 | // qDebug(); | 2116 | // qDebug(); | ||
2117 | 2117 | | |||
2118 | urlNavigator->setUrlEditable(!urlNavigator->isUrlEditable()); | 2118 | QLineEdit* lineEdit = urlNavigator->editor()->lineEdit(); | ||
2119 | if (urlNavigator->isUrlEditable()) { | 2119 | | ||
2120 | // If the text field currently has focus and everything is selected, | ||||
2121 | // pressing the keyboard shortcut returns the whole thing to breadcrumb mode | ||||
2122 | if (urlNavigator->isUrlEditable() | ||||
2123 | && lineEdit->hasFocus() | ||||
2124 | && lineEdit->selectedText() == lineEdit->text() ) { | ||||
2125 | urlNavigator->setUrlEditable(false); | ||||
2126 | } else { | ||||
2127 | urlNavigator->setUrlEditable(true); | ||||
2120 | urlNavigator->setFocus(); | 2128 | urlNavigator->setFocus(); | ||
2121 | urlNavigator->editor()->lineEdit()->selectAll(); | 2129 | lineEdit->selectAll(); | ||
2122 | } | 2130 | } | ||
2123 | } | 2131 | } | ||
2124 | 2132 | | |||
2125 | void KFileWidgetPrivate::_k_zoomOutIconsSize() | 2133 | void KFileWidgetPrivate::_k_zoomOutIconsSize() | ||
2126 | { | 2134 | { | ||
2127 | const int currValue = ops->iconsZoom(); | 2135 | const int currValue = ops->iconsZoom(); | ||
2128 | const int futValue = qMax(0, currValue - 10); | 2136 | const int futValue = qMax(0, currValue - 10); | ||
2129 | iconSizeSlider->setValue(futValue); | 2137 | iconSizeSlider->setValue(futValue); | ||
▲ Show 20 Lines • Show All 757 Lines • Show Last 20 Lines |