kdeui: use non-deprecated methods of QRect/QRectF

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-05-28 23:14:13 +00:00
parent c334b5b1b0
commit 457ce43ad1
2 changed files with 3 additions and 3 deletions

View file

@ -565,12 +565,12 @@ KRuler::slotNewValue(int _value)
if (d->dir == Qt::Horizontal) {
QRect oldrec(-5+oldvalue,10, 11,6);
QRect newrec(-5+_value,10, 11,6);
repaint( oldrec.unite(newrec) );
repaint( oldrec.united(newrec) );
}
else {
QRect oldrec(10,-5+oldvalue, 6,11);
QRect newrec(10,-5+_value, 6,11);
repaint( oldrec.unite(newrec) );
repaint( oldrec.united(newrec) );
}
}

View file

@ -898,7 +898,7 @@ QRect KWindowSystem::workArea( const QList<WId>& exclude, int desktop )
if ( strut.bottom > 0 )
r.setBottom( r.bottom() - (int) strut.bottom );
a = a.intersect(r);
a = a.intersected(r);
}
return a;
}