small fixes

This commit is contained in:
Aditya Kulkarni
2018-11-06 15:17:55 -08:00
parent 5fc905c926
commit 02e1a2de36
2 changed files with 6 additions and 4 deletions

View File

@@ -10,8 +10,10 @@ void FilledIconLabel::setBasePixmap(QPixmap pm) {
basePm = pm;
}
void FilledIconLabel::resizeEvent(QResizeEvent*) {
// Top pixmap
/**
* When resized, we re-draw the whole pixmap, resizing it as needed.
*/
void FilledIconLabel::resizeEvent(QResizeEvent*) {
QSize sz = size();
QPixmap scaled = basePm.scaled(sz, Qt::KeepAspectRatio, Qt::SmoothTransformation);