QWebSettings Class Reference

#include <qwebsettings.h>

Class Description

Definition at line 41 of file qwebsettings.h.

Public Types

enum  FontFamily {
  StandardFont, FixedFont, SerifFont, SansSerifFont,
  CursiveFont, FantasyFont
}
 
enum  WebAttribute {
  AutoLoadImages, JavascriptEnabled, JavaEnabled, PluginsEnabled,
  PrivateBrowsingEnabled, JavascriptCanOpenWindows, JavascriptCanAccessClipboard, DeveloperExtrasEnabled,
  LinksIncludedInFocusChain, ZoomTextOnly, PrintElementBackgrounds, OfflineStorageDatabaseEnabled,
  OfflineWebApplicationCacheEnabled, LocalStorageEnabled, LocalContentCanAccessRemoteUrls, DnsPrefetchEnabled,
  XSSAuditingEnabled, AcceleratedCompositingEnabled, SpatialNavigationEnabled, LocalContentCanAccessFileUrls,
  TiledBackingStoreEnabled, FrameFlatteningEnabled, SiteSpecificQuirksEnabled, JavascriptCanCloseWindows,
  WebGLEnabled, HyperlinkAuditingEnabled
}
 
enum  WebGraphic {
  MissingImageGraphic, MissingPluginGraphic, DefaultFrameIconGraphic, TextAreaSizeGripCornerGraphic,
  DeleteButtonGraphic, InputSpeechButtonGraphic, SearchCancelButtonGraphic, SearchCancelButtonPressedGraphic
}
 
enum  FontSize { MinimumFontSize, MinimumLogicalFontSize, DefaultFontSize, DefaultFixedFontSize }
 

Public Member Functions

void setFontFamily (FontFamily which, const QString &family)
 
QString fontFamily (FontFamily which) const
 
void resetFontFamily (FontFamily which)
 
void setFontSize (FontSize type, int size)
 
int fontSize (FontSize type) const
 
void resetFontSize (FontSize type)
 
void setAttribute (WebAttribute attr, bool on)
 
bool testAttribute (WebAttribute attr) const
 
void resetAttribute (WebAttribute attr)
 
void setUserStyleSheetUrl (const QUrl &location)
 
QUrl userStyleSheetUrl () const
 
void setDefaultTextEncoding (const QString &encoding)
 
QString defaultTextEncoding () const
 
void setLocalStoragePath (const QString &path)
 
QString localStoragePath () const
 
QWebSettingsPrivatehandle () const
 

Static Public Member Functions

static QWebSettingsglobalSettings ()
 
static void setIconDatabasePath (const QString &location)
 
static QString iconDatabasePath ()
 
static void clearIconDatabase ()
 
static QIcon iconForUrl (const QUrl &url)
 
static void setWebGraphic (WebGraphic type, const QPixmap &graphic)
 
static QPixmap webGraphic (WebGraphic type)
 
static void setMaximumPagesInCache (int pages)
 
static int maximumPagesInCache ()
 
static void setObjectCacheCapacities (int cacheMinDeadCapacity, int cacheMaxDead, int totalCapacity)
 
static void setOfflineStoragePath (const QString &path)
 
static QString offlineStoragePath ()
 
static void setOfflineStorageDefaultQuota (qint64 maximumSize)
 
static qint64 offlineStorageDefaultQuota ()
 
static void setOfflineWebApplicationCachePath (const QString &path)
 
static QString offlineWebApplicationCachePath ()
 
static void setOfflineWebApplicationCacheQuota (qint64 maximumSize)
 
static qint64 offlineWebApplicationCacheQuota ()
 
static void clearMemoryCaches ()
 
static void enablePersistentStorage (const QString &path=QString())
 

Friends

class QWebPagePrivate
 
class QWebSettingsPrivate
 

Member Enumeration Documentation

enum FontFamily
Enumerator
StandardFont 
FixedFont 
SerifFont 
SansSerifFont 
CursiveFont 
FantasyFont 

Definition at line 43 of file qwebsettings.h.

Enumerator
AutoLoadImages 
JavascriptEnabled 
JavaEnabled 
PluginsEnabled 
PrivateBrowsingEnabled 
JavascriptCanOpenWindows 
JavascriptCanAccessClipboard 
DeveloperExtrasEnabled 
LinksIncludedInFocusChain 
ZoomTextOnly 
PrintElementBackgrounds 
OfflineStorageDatabaseEnabled 
OfflineWebApplicationCacheEnabled 
LocalStorageEnabled 
LocalContentCanAccessRemoteUrls 
DnsPrefetchEnabled 
XSSAuditingEnabled 
AcceleratedCompositingEnabled 
SpatialNavigationEnabled 
LocalContentCanAccessFileUrls 
TiledBackingStoreEnabled 
FrameFlatteningEnabled 
SiteSpecificQuirksEnabled 
JavascriptCanCloseWindows 
WebGLEnabled 
HyperlinkAuditingEnabled 

Definition at line 51 of file qwebsettings.h.

51  {
66 #if defined(QT_DEPRECATED) || defined(qdoc)
67  LocalStorageDatabaseEnabled = LocalStorageEnabled,
68 #endif
81  };
enum FontSize
Enumerator
MinimumFontSize 
MinimumLogicalFontSize 
DefaultFontSize 
DefaultFixedFontSize 

Definition at line 92 of file qwebsettings.h.

Member Function Documentation

static QWebSettings* globalSettings ( )
static
void setFontFamily ( FontFamily  which,
const QString family 
)
QString fontFamily ( FontFamily  which) const
void resetFontFamily ( FontFamily  which)
void setFontSize ( FontSize  type,
int  size 
)
int fontSize ( FontSize  type) const
void resetFontSize ( FontSize  type)
void setAttribute ( WebAttribute  attr,
bool  on 
)
bool testAttribute ( WebAttribute  attr) const
void resetAttribute ( WebAttribute  attr)
void setUserStyleSheetUrl ( const QUrl location)
QUrl userStyleSheetUrl ( ) const
void setDefaultTextEncoding ( const QString encoding)
QString defaultTextEncoding ( ) const
static void setIconDatabasePath ( const QString location)
static
static QString iconDatabasePath ( )
static
static void clearIconDatabase ( )
static
static QIcon iconForUrl ( const QUrl url)
static
static void setWebGraphic ( WebGraphic  type,
const QPixmap graphic 
)
static
static QPixmap webGraphic ( WebGraphic  type)
static
static void setMaximumPagesInCache ( int  pages)
static
static int maximumPagesInCache ( )
static
static void setObjectCacheCapacities ( int  cacheMinDeadCapacity,
int  cacheMaxDead,
int  totalCapacity 
)
static
static void setOfflineStoragePath ( const QString path)
static
static QString offlineStoragePath ( )
static
static void setOfflineStorageDefaultQuota ( qint64  maximumSize)
static
static qint64 offlineStorageDefaultQuota ( )
static
static void setOfflineWebApplicationCachePath ( const QString path)
static
static QString offlineWebApplicationCachePath ( )
static
static void setOfflineWebApplicationCacheQuota ( qint64  maximumSize)
static
static qint64 offlineWebApplicationCacheQuota ( )
static
void setLocalStoragePath ( const QString path)
QString localStoragePath ( ) const
static void clearMemoryCaches ( )
static
static void enablePersistentStorage ( const QString path = QString())
static
QWebSettingsPrivate* handle ( ) const
inline

Definition at line 150 of file qwebsettings.h.

150 { return d; }

Friends And Related Function Documentation

friend class QWebPagePrivate
friend

Definition at line 153 of file qwebsettings.h.

friend class QWebSettingsPrivate
friend

Definition at line 154 of file qwebsettings.h.


The documentation for this class was generated from the following file: