remove some ancient cruft
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=750317
This commit is contained in:
parent
86ccea46b6
commit
809d20b17a
@ -45,16 +45,8 @@ class LineEdit::Private
|
|||||||
bool styled;
|
bool styled;
|
||||||
bool multiline;
|
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)
|
LineEdit::LineEdit(QGraphicsItem *parent)
|
||||||
: QGraphicsTextItem(parent),
|
: QGraphicsTextItem(parent),
|
||||||
d(new Private())
|
d(new Private())
|
||||||
@ -69,15 +61,6 @@ LineEdit::~LineEdit()
|
|||||||
delete d;
|
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)
|
void LineEdit::paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
{
|
{
|
||||||
QStyleOptionFrameV2 panel;
|
QStyleOptionFrameV2 panel;
|
||||||
|
@ -49,7 +49,6 @@ class PLASMA_EXPORT LineEdit : public QGraphicsTextItem, public LayoutItem
|
|||||||
explicit LineEdit(QGraphicsItem *parent = 0);
|
explicit LineEdit(QGraphicsItem *parent = 0);
|
||||||
~LineEdit();
|
~LineEdit();
|
||||||
|
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
|
||||||
void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
void paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
|
||||||
|
|
||||||
Qt::Orientations expandingDirections() const;
|
Qt::Orientations expandingDirections() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user