Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kdiroperator.cpp
Show First 20 Lines • Show All 2101 Lines • ▼ Show 20 Line(s) | 2094 | { | |||
---|---|---|---|---|---|
2102 | d->actionCollection->action(QStringLiteral("detailed view"))->setChecked(KFile::isDetailView(fv)); | 2102 | d->actionCollection->action(QStringLiteral("detailed view"))->setChecked(KFile::isDetailView(fv)); | ||
2103 | d->actionCollection->action(QStringLiteral("tree view"))->setChecked(KFile::isTreeView(fv)); | 2103 | d->actionCollection->action(QStringLiteral("tree view"))->setChecked(KFile::isTreeView(fv)); | ||
2104 | d->actionCollection->action(QStringLiteral("detailed tree view"))->setChecked(KFile::isDetailTreeView(fv)); | 2104 | d->actionCollection->action(QStringLiteral("detailed tree view"))->setChecked(KFile::isDetailTreeView(fv)); | ||
2105 | } | 2105 | } | ||
2106 | 2106 | | |||
2107 | void KDirOperator::readConfig(const KConfigGroup &configGroup) | 2107 | void KDirOperator::readConfig(const KConfigGroup &configGroup) | ||
2108 | { | 2108 | { | ||
2109 | d->defaultView = 0; | 2109 | d->defaultView = 0; | ||
2110 | QString viewStyle = configGroup.readEntry("View Style", "Simple"); | 2110 | QString viewStyle = configGroup.readEntry("View Style", "DetailTree"); | ||
2111 | if (viewStyle == QLatin1String("Detail")) { | 2111 | if (viewStyle == QLatin1String("Detail")) { | ||
2112 | d->defaultView |= KFile::Detail; | 2112 | d->defaultView |= KFile::Detail; | ||
2113 | } else if (viewStyle == QLatin1String("Tree")) { | 2113 | } else if (viewStyle == QLatin1String("Tree")) { | ||
2114 | d->defaultView |= KFile::Tree; | 2114 | d->defaultView |= KFile::Tree; | ||
2115 | } else if (viewStyle == QLatin1String("DetailTree")) { | 2115 | } else if (viewStyle == QLatin1String("DetailTree")) { | ||
2116 | d->defaultView |= KFile::DetailTree; | 2116 | d->defaultView |= KFile::DetailTree; | ||
2117 | } else { | 2117 | } else { | ||
2118 | d->defaultView |= KFile::Simple; | 2118 | d->defaultView |= KFile::Simple; | ||
▲ Show 20 Lines • Show All 572 Lines • Show Last 20 Lines |