|
|
|
|
@ -1715,8 +1715,7 @@ void Konsole::pixmap_menu_activated(int item, TEWidget* tewidget) |
|
|
|
|
tewidget->setBackgroundPixmap(pm); |
|
|
|
|
break; |
|
|
|
|
case 3: // center
|
|
|
|
|
{ QPixmap bgPixmap; |
|
|
|
|
bgPixmap.resize(tewidget->size()); |
|
|
|
|
{ QPixmap bgPixmap( tewidget->size() ); |
|
|
|
|
bgPixmap.fill(tewidget->getDefaultBackColor()); |
|
|
|
|
bitBlt( &bgPixmap, ( tewidget->size().width() - pm.width() ) / 2, |
|
|
|
|
( tewidget->size().height() - pm.height() ) / 2, |
|
|
|
|
@ -3210,9 +3209,9 @@ void Konsole::notifySessionState(TESession* session, int state) |
|
|
|
|
|
|
|
|
|
// make sure they are not larger than 16x16
|
|
|
|
|
if (normal.width() > 16 || normal.height() > 16) |
|
|
|
|
normal.convertFromImage(normal.toImage().scaled(16,16, Qt::IgnoreAspectRatio, Qt::SmoothTransformation)); |
|
|
|
|
normal = QPixmap::fromImage(normal.toImage().scaled(16,16, Qt::IgnoreAspectRatio, Qt::SmoothTransformation)); |
|
|
|
|
if (active.width() > 16 || active.height() > 16) |
|
|
|
|
active.convertFromImage(active.toImage().scaled(16,16, Qt::IgnoreAspectRatio, Qt::SmoothTransformation)); |
|
|
|
|
active = QPixmap::fromImage(active.toImage().scaled(16,16, Qt::IgnoreAspectRatio, Qt::SmoothTransformation)); |
|
|
|
|
|
|
|
|
|
QIcon iconset; |
|
|
|
|
iconset.setPixmap(normal, QIcon::Small, QIcon::Normal); |
|
|
|
|
|