comparison ui/mainwindow.cpp @ 932:57371f2e8dae

(issue72) Set background image as pixmap in textoverlayicon
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 22 Aug 2014 16:20:25 +0200
parents ca997bc0f790
children 7c89c5dc2200
comparison
equal deleted inserted replaced
931:7ac5a366184d 932:57371f2e8dae
821 ***********************************/ 821 ***********************************/
822 mButtonGroup = new QButtonGroup; 822 mButtonGroup = new QButtonGroup;
823 823
824 TextOverlayButton *updatesButton = new TextOverlayButton; 824 TextOverlayButton *updatesButton = new TextOverlayButton;
825 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon); 825 updatesButton->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
826 updatesButton->setBackgroundIcon(":/img/red-circle.png");
826 updatesButton->setIcon(QIcon(":/img/view-refresh.png")); 827 updatesButton->setIcon(QIcon(":/img/view-refresh.png"));
827 updatesButton->setIconSize(QSize(48, 48)); 828 updatesButton->setIconSize(QSize(48, 48));
828 updatesButton->setText(tr("Updates")); 829 updatesButton->setText(tr("Updates"));
829 updatesButton->setFixedWidth(120); 830 updatesButton->setFixedWidth(120);
830 updatesButton->setFixedHeight(90); 831 updatesButton->setFixedHeight(90);

http://wald.intevation.org/projects/trustbridge/