KDE3Support
Go to the documentation of this file.
22 #include <Q3SimpleRichText>
23 #include <QFocusEvent>
27 class K3ActiveLabelPrivate
40 q->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
41 q->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
42 q->setFrameStyle(QFrame::NoFrame);
43 q->setFocusPolicy(Qt::TabFocus);
47 void K3ActiveLabelPrivate::updatePalette()
49 QPalette p = q->palette();
50 p.setBrush(QPalette::Base, p.brush(QPalette::Normal, QPalette::Background));
51 p.setColor(QPalette::Text, p.color(QPalette::Normal, QPalette::Foreground));
74 if(fe->reason() == Qt::TabFocusReason || fe->reason() == Qt::BacktabFocusReason)
81 if(fe->reason() == Qt::TabFocusReason || fe->reason() == Qt::BacktabFocusReason)
107 if (e->type() == QEvent::ApplicationPaletteChange) {
115 QSize ms = minimumSize();
116 if ((ms.width() > 0) && (ms.height() > 0))
124 Q3SimpleRichText rt(txt, font());
125 rt.setWidth(w - 2*frameWidth() - 10);
126 w = 10 + rt.widthUsed() + 2*frameWidth();
129 int h = rt.height() + 2*frameWidth();
130 if ( h < ms.height())
141 #include "k3activelabel.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jun 1 2013 12:11:47 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.