use the accessor to get to the native widget

svn path=/branches/KDE/4.4/kdelibs/; revision=1097020
This commit is contained in:
Aaron J. Seigo 2010-02-28 08:32:00 +00:00
parent 73d1f4a7c9
commit 41595be4d7

View File

@ -191,9 +191,9 @@ bool Label::hasScaledContents() const
void Label::setTextSelectable(bool enable)
{
if (enable) {
native->setTextInteractionFlags(Qt::TextBrowserInteraction);
nativeWidget()->setTextInteractionFlags(Qt::TextBrowserInteraction);
} else {
native->setTextInteractionFlags(Qt::LinksAccessibleByMouse);
nativeWidget()->setTextInteractionFlags(Qt::LinksAccessibleByMouse);
}
d->textSelectable = enable;