# class KHTMLSettings

###

Module | khtml
Namespace |
Class | KHTMLSettings
Inherits |

Settings for the HTML view.

### enums

- KAnimationAdvice { KAnimationDisabled, KAnimationLoopOnce, KAnimationEnabled }
- KJSWindowFocusPolicy { KJSWindowFocusAllow, KJSWindowFocusIgnore }
- KJSWindowMovePolicy { KJSWindowMoveAllow, KJSWindowMoveIgnore }
- KJSWindowOpenPolicy { KJSWindowOpenAllow, KJSWindowOpenAsk, KJSWindowOpenDeny, KJSWindowOpenSmart }
- KJSWindowResizePolicy { KJSWindowResizeAllow, KJSWindowResizeIgnore }
- KJSWindowStatusPolicy { KJSWindowStatusAllow, KJSWindowStatusIgnore }
- KJavaScriptAdvice { KJavaScriptDunno, KJavaScriptAccept, KJavaScriptReject }
- KSmoothScrollingMode { KSmoothScrollingDisabled, KSmoothScrollingWhenEfficient, KSmoothScrollingEnabled }

enum details

### methods

- KHTMLSettings ( )

  returns ctor

  Internal Constructor

- KHTMLSettings (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | KHTMLSettings |

- accessKeysEnabled ( )

  returns bool

- addAdFilter (url)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  url | QString |

- adviceToStr (_advice)

  returns char
  static

  Argument | Type | Default
  --- | --- | ---
  _advice | KHTMLSettings.KJavaScriptAdvice |

- allowTabulation ( )

  returns bool

- autoLoadImages ( )

  returns bool

- autoSpellCheck ( )

  returns bool

- availableFamilies ( )

  returns QString
  static

- baseColor ( )

  returns QColor

- changeCursor ( )

  returns bool

- cursiveFontName ( )

  returns QString

- encoding ( )

  returns QString

- fallbackAccessKeysAssignments ( )

  returns QList<QPair<QString,QChar>>

- fantasyFontName ( )

  returns QString

- fixedFontName ( )

  returns QString

- followSystemColors ( )

  returns bool

- hoverLink ( )

  returns bool

- init ( )

  returns Nothing

  Called by constructor and reparseConfiguration

- init (config, reset)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  reset | bool | 1

  Read settings from config.

  config - is a pointer to KConfig object.

  reset - if true, settings are always set; if false, settings are only set if the config file has a corresponding key.

- isAdFilterEnabled ( )

  returns bool

- isAdFiltered (url)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  url | QString |

- isAutoDelayedActionsEnabled ( )

  returns bool

- isBackRightClickEnabled ( )

  returns bool

- isFormCompletionEnabled ( )

  returns bool

- isHideAdsEnabled ( )

  returns bool

- isJavaEnabled (hostname)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- isJavaScriptDebugEnabled (hostname)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- isJavaScriptEnabled (hostname)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- isJavaScriptErrorReportingEnabled (hostname)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- isOpenMiddleClickEnabled ( )

  returns bool

- isPluginsEnabled (hostname)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- jsErrorsEnabled ( )

  returns bool

- jsPopupBlockerPassivePopup ( )

  returns bool

- linkColor ( )

  returns QColor

- maxFormCompletionItems ( )

  returns int

- mediumFontSize ( )

  returns int

- minFontSize ( )

  returns int

- readDomainSettings (config, reset, global, pd_settings)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  config | KConfigGroup |
  reset | bool |
  global | bool |
  pd_settings | KPerDomainSettings |

  reads from config's current group, forcing initialization if reset is true.

  config - is a pointer to KConfig object.

  reset - true if initialization is to be forced.

  global - true if the global domain is to be read.

  pd_settings - will be initialised with the computed (inherited) settings.

- sansSerifFontName ( )

  returns QString

- serifFontName ( )

  returns QString

- setFixedFontName (n)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  n | QString |

- setJSErrorsEnabled (enabled)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enabled | bool |

- setJSPopupBlockerPassivePopup (enabled)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  enabled | bool |

- setStdFontName (n)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  n | QString |

- settingsToCSS ( )

  returns QString

- showAnimations ( )

  returns KHTMLSettings.KAnimationAdvice

- smoothScrolling ( )

  returns KHTMLSettings.KSmoothScrollingMode
  KDE 4.1.0 and later only

- splitDomainAdvice (configStr, domain, javaAdvice, javaScriptAdvice)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  configStr | QString |
  domain | QString |
  javaAdvice | KHTMLSettings.KJavaScriptAdvice |
  javaScriptAdvice | KHTMLSettings.KJavaScriptAdvice |

- stdFontName ( )

  returns QString

- strToAdvice (_str)

  returns KHTMLSettings.KJavaScriptAdvice
  static

  Argument | Type | Default
  --- | --- | ---
  _str | QString |

- textColor ( )

  returns QColor

- underlineLink ( )

  returns bool

- unfinishedImageFrame ( )

  returns bool

- userStyleSheet ( )

  returns QString

- vLinkColor ( )

  returns QColor

- windowFocusPolicy (hostname)

  returns KHTMLSettings.KJSWindowFocusPolicy

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- windowMovePolicy (hostname)

  returns KHTMLSettings.KJSWindowMovePolicy

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- windowOpenPolicy (hostname)

  returns KHTMLSettings.KJSWindowOpenPolicy

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- windowResizePolicy (hostname)

  returns KHTMLSettings.KJSWindowResizePolicy

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

- windowStatusPolicy (hostname)

  returns KHTMLSettings.KJSWindowStatusPolicy

  Argument | Type | Default
  --- | --- | ---
  hostname | QString | QString()

### enums - detail

- KAnimationAdvice { KAnimationDisabled, KAnimationLoopOnce, KAnimationEnabled }

  This enum specifies whether Java/JavaScript execution is allowed.

  | KAnimationDisabled | - 0 | - |
  | KAnimationLoopOnce | - | - |
  | KAnimationEnabled | - | - |

- KJSWindowFocusPolicy { KJSWindowFocusAllow, KJSWindowFocusIgnore }

  This enum specifies the policy for window.focus

  | KJSWindowFocusAllow | - 0 | - |
  | KJSWindowFocusIgnore | - | - |

- KJSWindowMovePolicy { KJSWindowMoveAllow, KJSWindowMoveIgnore }

  This enum specifies the policy for window.moveBy and .moveTo

  | KJSWindowMoveAllow | - 0 | - |
  | KJSWindowMoveIgnore | - | - |

- KJSWindowOpenPolicy { KJSWindowOpenAllow, KJSWindowOpenAsk, KJSWindowOpenDeny, KJSWindowOpenSmart }

  This enum specifies the policy for window.open

  | KJSWindowOpenAllow | - 0 | - |
  | KJSWindowOpenAsk | - | - |
  | KJSWindowOpenDeny | - | - |
  | KJSWindowOpenSmart | - | - |

- KJSWindowResizePolicy { KJSWindowResizeAllow, KJSWindowResizeIgnore }

  This enum specifies the policy for window.resizeBy and .resizeTo

  | KJSWindowResizeAllow | - 0 | - |
  | KJSWindowResizeIgnore | - | - |

- KJSWindowStatusPolicy { KJSWindowStatusAllow, KJSWindowStatusIgnore }

  This enum specifies the policy for window.status and .defaultStatus

  | KJSWindowStatusAllow | - 0 | - |
  | KJSWindowStatusIgnore | - | - |

- KJavaScriptAdvice { KJavaScriptDunno, KJavaScriptAccept, KJavaScriptReject }

  This enum specifies whether Java/JavaScript execution is allowed.

  | KJavaScriptDunno | - 0 | - |
  | KJavaScriptAccept | - | - |
  | KJavaScriptReject | - | - |

- KSmoothScrollingMode { KSmoothScrollingDisabled, KSmoothScrollingWhenEfficient, KSmoothScrollingEnabled }

  This enum specifies whether Java/JavaScript execution is allowed.

  | KSmoothScrollingDisabled | - 0 | - |
  | KSmoothScrollingWhenEfficient | - | - |
  | KSmoothScrollingEnabled | - | - |