mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdeui: use non-deprecated methods of QRect/QRectF
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c334b5b1b0
commit
457ce43ad1
2 changed files with 3 additions and 3 deletions
|
@ -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) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue