> On Feb. 4, 2015, 12:59 p.m., Marco Martin wrote: > > src/qmlcontrols/kquickcontrolsaddons/qpixmapitem.cpp, line 115 > > <https://git.reviewboard.kde.org/r/122413/diff/4/?file=346726#file346726line115> > > > > i'm not sure setting the panted rect in paint changes anything. > > > > since it's done in setPixmap/setFillmode, that should be enough? > > Luca Beltrame wrote: > If by the time paint() has been called the information on the new size is > already known (I don't know, though), then yeah, probably it would not > matter. BTW, do you prefer updatePaintRect since setPaintRect isn't taking > any parameter? > > I'll try to fix things this evening then push (and then do a separate RR > for ImageItem).
yep, updatePaintRect() would be prettier. - Marco ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/122413/#review75386 ----------------------------------------------------------- On Feb. 3, 2015, 11:41 p.m., Luca Beltrame wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://git.reviewboard.kde.org/r/122413/ > ----------------------------------------------------------- > > (Updated Feb. 3, 2015, 11:41 p.m.) > > > Review request for KDE Frameworks and Plasma. > > > Repository: kdeclarative > > > Description > ------- > > Like the corresponding properties in QML's Image, this patch introduces > paintedWidth and paintedHeight to QPixmapItem, to get information on the size > of the pixmap that's actually shown (depending on fillMode), as compared to > its actual size. > > This brings QPixmapItem closer to the mode of usage of Image. > > CHANGELOG: New properties paintedWidth and paintedHeight added to QPixmapItem > > > Diffs > ----- > > src/qmlcontrols/kquickcontrolsaddons/qpixmapitem.h 485d6f7 > src/qmlcontrols/kquickcontrolsaddons/qpixmapitem.cpp 6c9e3a2 > > Diff: https://git.reviewboard.kde.org/r/122413/diff/ > > > Testing > ------- > > Builds. > > > Thanks, > > Luca Beltrame > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel