Changeset View
Changeset View
Standalone View
Standalone View
src/filewidgets/kfilewidget.cpp
Show First 20 Lines • Show All 1936 Lines • ▼ Show 20 Line(s) | 1900 | { | |||
---|---|---|---|---|---|
1937 | 1937 | | |||
1938 | int w1 = q->minimumSize().width(); | 1938 | int w1 = q->minimumSize().width(); | ||
1939 | int w2 = toolbar->sizeHint().width(); | 1939 | int w2 = toolbar->sizeHint().width(); | ||
1940 | if (w1 < w2) { | 1940 | if (w1 < w2) { | ||
1941 | q->setMinimumWidth(w2); | 1941 | q->setMinimumWidth(w2); | ||
1942 | } | 1942 | } | ||
1943 | } | 1943 | } | ||
1944 | 1944 | | |||
1945 | void KFileWidget::writeViewConfig() | ||||
1946 | { | ||||
1947 | d->writeViewConfig(); | ||||
1948 | } | ||||
1949 | | ||||
1945 | void KFileWidgetPrivate::writeViewConfig() | 1950 | void KFileWidgetPrivate::writeViewConfig() | ||
1946 | { | 1951 | { | ||
1947 | // these settings are global settings; ALL instances of the file dialog | 1952 | // these settings are global settings; ALL instances of the file dialog | ||
1948 | // should reflect them. | 1953 | // should reflect them. | ||
1949 | // There is no way to tell KFileOperator::writeConfig() to write to | 1954 | // There is no way to tell KFileOperator::writeConfig() to write to | ||
1950 | // kdeglobals so we write settings to a temporary config group then copy | 1955 | // kdeglobals so we write settings to a temporary config group then copy | ||
1951 | // them all to kdeglobals | 1956 | // them all to kdeglobals | ||
1952 | KConfig tmp(QString(), KConfig::SimpleConfig); | 1957 | KConfig tmp(QString(), KConfig::SimpleConfig); | ||
▲ Show 20 Lines • Show All 913 Lines • Show Last 20 Lines |