remove a number of unused variables
This commit is contained in:
parent
a6bcd52059
commit
d1140aca7d
@ -700,7 +700,6 @@ void FrameSvgPrivate::generateBackground(FrameData *frame)
|
||||
QSize overlaySize;
|
||||
QPoint actualOverlayPos = QPoint(0, 0);
|
||||
if (overlayAvailable && !overlayCached) {
|
||||
QPoint pos = QPoint(0, 0);
|
||||
overlaySize = q->elementSize(prefix % "overlay");
|
||||
|
||||
if (q->hasElement(prefix % "hint-overlay-pos-right")) {
|
||||
|
@ -314,7 +314,6 @@ void AppletHandle::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti
|
||||
//XXX this code is duplicated in the next function
|
||||
QPointF basePoint = m_rect.topLeft() + QPointF(HANDLE_MARGIN, iconMargin);
|
||||
QPointF step = QPointF(0, m_iconSize + iconMargin);
|
||||
QPointF separator = step + QPointF(0, iconMargin);
|
||||
//end duplicate code
|
||||
|
||||
QPointF shiftC;
|
||||
@ -401,7 +400,6 @@ AppletHandle::ButtonType AppletHandle::mapToButton(const QPointF &point) const
|
||||
//XXX this code is duplicated in the prev. function
|
||||
QPointF basePoint = m_rect.topLeft() + QPointF(HANDLE_MARGIN, iconMargin);
|
||||
QPointF step = QPointF(0, m_iconSize + iconMargin);
|
||||
QPointF separator = step + QPointF(0, iconMargin);
|
||||
//end duplicate code
|
||||
|
||||
QRectF activeArea = QRectF(basePoint, QSizeF(m_iconSize, m_iconSize));
|
||||
|
@ -1219,10 +1219,7 @@ void IconWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option
|
||||
|
||||
PaintUtils::shadowBlur(shadow, 2, d->shadowColor);
|
||||
painter->drawImage(textBoundingRect.topLeft() + shadowPos, shadow);
|
||||
} else if (!(d->text.isEmpty() && d->infoText.isEmpty()) &&
|
||||
!textBoundingRect.isEmpty()) {
|
||||
QRect labelRect = d->labelRectangle(option, icon, d->text).toRect();
|
||||
|
||||
} else if (!(d->text.isEmpty() && d->infoText.isEmpty()) && !textBoundingRect.isEmpty()) {
|
||||
foreach (const QRect &rect, d->haloRects) {
|
||||
Plasma::PaintUtils::drawHalo(painter, rect);
|
||||
}
|
||||
|
@ -665,11 +665,12 @@ public:
|
||||
|
||||
void handleMouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
if (lastPosTime.isNull())
|
||||
if (lastPosTime.isNull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool rejectY = false;
|
||||
bool rejectX = false;
|
||||
bool moved = false;
|
||||
|
||||
if (canYFlick()) {
|
||||
int dy = int(event->scenePos().y() - pressPos.y());
|
||||
|
Loading…
Reference in New Issue
Block a user