Changeset 188 for smplayer/trunk/src/lineedit_with_icon.cpp
- Timestamp:
- Jan 24, 2017, 12:41:54 PM (8 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 186
- Property svn:mergeinfo changed
-
smplayer/trunk/src/lineedit_with_icon.cpp
r181 r188 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 6Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2017 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 36 36 //qDebug("height: %d, icon height: %d", height(), p.height()); 37 37 int max_height = 16; 38 if (max_height > height() ) max_height = height() - 4;38 if (max_height > height() && height() >= 8) max_height = height() - 4; 39 39 if (pixmap.height() > max_height) p = pixmap.scaledToHeight(max_height, Qt::SmoothTransformation); 40 40 button->setIcon(p);
Note:
See TracChangeset
for help on using the changeset viewer.