remove some ancient cruft

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750317
This commit is contained in:
Aaron J. Seigo 2007-12-19 07:02:14 +00:00
parent 86ccea46b6
commit 809d20b17a
2 changed files with 0 additions and 18 deletions

View File

@ -45,16 +45,8 @@ class LineEdit::Private
bool styled;
bool multiline;
bool shouldPaint(QPainter *painter, const QTransform &transform);
};
bool LineEdit::Private::shouldPaint(QPainter *painter, const QTransform &transform)
{
qreal zoomLevel = painter->transform().m11() / transform.m11();
//return zoomLevel == scalingFactor(Plasma::DesktopZoom);
return true;
}
LineEdit::LineEdit(QGraphicsItem *parent)
: QGraphicsTextItem(parent),
d(new Private())
@ -69,15 +61,6 @@ LineEdit::~LineEdit()
delete d;
}
void LineEdit::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
//TODO: Deal with paint and shouldPaint, since they are just copies of the ones in Widget
if (d->shouldPaint(painter, transform())) {
paintWidget(painter, option, widget);
}
return;
}
void LineEdit::paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
QStyleOptionFrameV2 panel;

View File

@ -49,7 +49,6 @@ class PLASMA_EXPORT LineEdit : public QGraphicsTextItem, public LayoutItem
explicit LineEdit(QGraphicsItem *parent = 0);
~LineEdit();
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
Qt::Orientations expandingDirections() const;