LeechCraft  0.6.70-3565-g2d86529
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
IWkFontsSettable Class Referenceabstract

Interface to aid WebKit-view-containing tabs to expose the view fonts configuration to the user. More...

#include "iwkfontssettable.h"

Public Member Functions

virtual QObject * GetQObject ()=0
 Returns this tab as a QObject. More...
 
virtual void SetFontFamily (QWebSettings::FontFamily family, const QFont &font)=0
 Sets the font for the given font family. More...
 

Protected Member Functions

virtual ~IWkFontsSettable ()=default
 

Detailed Description

Interface to aid WebKit-view-containing tabs to expose the view fonts configuration to the user.

The tabs implementing this interface should just be registered with an instance of LeechCraft::Util::WkFontsWidget, which will take care of the rest.

See Also
ITabWidget

Definition at line 46 of file iwkfontssettable.h.

Constructor & Destructor Documentation

virtual IWkFontsSettable::~IWkFontsSettable ( )
protectedvirtualdefault

Member Function Documentation

virtual QObject* IWkFontsSettable::GetQObject ( )
pure virtual

Returns this tab as a QObject.

Returns
This tab as a QObject.
virtual void IWkFontsSettable::SetFontFamily ( QWebSettings::FontFamily  family,
const QFont &  font 
)
pure virtual

Sets the font for the given font family.

Parameters
[in]familyThe font family to change.
[in]fontThe font to set for the font family.

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