Changeset View
Changeset View
Standalone View
Standalone View
src/kstyle/kstyle.cpp
Show First 20 Lines • Show All 493 Lines • ▼ Show 20 Line(s) | 448 | { | |||
---|---|---|---|---|---|
494 | 494 | | |||
495 | case SH_KCustomStyleElement: | 495 | case SH_KCustomStyleElement: | ||
496 | if (!widget) { | 496 | if (!widget) { | ||
497 | return 0; | 497 | return 0; | ||
498 | } | 498 | } | ||
499 | 499 | | |||
500 | return d->styleElements.value(widget->objectName(), 0); | 500 | return d->styleElements.value(widget->objectName(), 0); | ||
501 | 501 | | |||
502 | case SH_ScrollBar_LeftClickAbsolutePosition: { | ||||
503 | KConfigGroup g(KSharedConfig::openConfig(), "KDE"); | ||||
504 | return !g.readEntry("ScrollbarLeftClickNavigatesByPage", true); | ||||
broulik: `ScrollBarLeftClick...`? | |||||
505 | } | ||||
506 | | ||||
502 | default: | 507 | default: | ||
503 | break; | 508 | break; | ||
504 | }; | 509 | }; | ||
505 | 510 | | |||
506 | return QCommonStyle::styleHint(hint, option, widget, returnData); | 511 | return QCommonStyle::styleHint(hint, option, widget, returnData); | ||
507 | } | 512 | } | ||
508 | 513 | | |||
509 | int KStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const | 514 | int KStyle::pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const | ||
Show All 22 Lines |
ScrollBarLeftClick...?