pretty important textbrowser functions, le's export them

svn path=/trunk/KDE/kdelibs/; revision=971727
This commit is contained in:
Marco Martin 2009-05-23 10:23:07 +00:00
parent 9a2967bd81
commit 80621aa1a7
2 changed files with 20 additions and 0 deletions

View File

@ -109,6 +109,16 @@ QString TextBrowser::text() const
return static_cast<KTextBrowser*>(widget())->toHtml();
}
void TextBrowser::setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy policy)
{
d->native->setHorizontalScrollBarPolicy(policy);
}
void TextBrowser::setVerticalScrollBarPolicy(Qt::ScrollBarPolicy policy)
{
d->native->setVerticalScrollBarPolicy(policy);
}
void TextBrowser::setStyleSheet(const QString &stylesheet)
{
widget()->setStyleSheet(stylesheet);

View File

@ -64,6 +64,16 @@ public:
*/
QString text() const;
/**
* Sets the policy used to show/hide the horizontal scrollbar
*/
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy policy);
/**
* Sets the policy used to show/hide the vertical scrollbar
*/
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy policy);
/**
* Sets the stylesheet used to control the visual display of this TextBrowser
*