From 25c06ba6186ba4f197b99135bc3c123549abd071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 22 Jan 2013 10:32:54 +0100 Subject: [PATCH] A?adidos los estilos para los estados pressed de los botones de goToFlow --- YACReader/goto_flow_gl.cpp | 10 ++++++++-- YACReader/images.qrc | 2 ++ images/imgCenterSlidePressed.png | Bin 0 -> 814 bytes images/imgGoToSlidePressed.png | Bin 0 -> 940 bytes 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 images/imgCenterSlidePressed.png create mode 100644 images/imgGoToSlidePressed.png diff --git a/YACReader/goto_flow_gl.cpp b/YACReader/goto_flow_gl.cpp index 2ea9c081..0a9ace11 100644 --- a/YACReader/goto_flow_gl.cpp +++ b/YACReader/goto_flow_gl.cpp @@ -82,16 +82,22 @@ GoToFlowGL::GoToFlowGL(QWidget* parent, FlowType flowType) edit->setSizePolicy(QSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed)); edit->setAutoFillBackground(false); + QString centerButtonCSS = "QPushButton {background-image: url(:/images/imgCenterSlide.png); width: 100%; height:100%; background-repeat: none; border: none;} " + "QPushButton:focus { border: none; outline: none;}" + "QPushButton:pressed {background-image: url(:/images/imgCenterSlidePressed.png); width: 100%; height:100%; background-repeat: none; border: none;} "; centerButton = new QPushButton(bottomToolBar); //centerButton->setIcon(QIcon(":/images/center.png")); - centerButton->setStyleSheet("background-image: url(:/images/imgCenterSlide.png); width: 100%; height:100%; background-repeat: none; border: none;"); + centerButton->setStyleSheet(centerButtonCSS); centerButton->setFixedSize(26,50); connect(centerButton,SIGNAL(clicked()),this,SLOT(centerSlide())); bottom->addWidget(centerButton); + QString goToButtonCSS = "QPushButton {background-image: url(:/images/imgGoToSlide.png); width: 100%; height:100%; background-repeat: none; border: none;} " + "QPushButton:focus { border: none; outline: none;}" + "QPushButton:pressed {background-image: url(:/images/imgGoToSlidePressed.png); width: 100%; height:100%; background-repeat: none; border: none;} "; goToButton = new QPushButton(bottomToolBar); //goToButton->setIcon(QIcon(":/images/goto.png")); - goToButton->setStyleSheet("background-image: url(:/images/imgGoToSlide.png); width: 100%; height:100%; background-repeat: none; border: none;"); + goToButton->setStyleSheet(goToButtonCSS); goToButton->setFixedSize(32,50); connect(goToButton,SIGNAL(clicked()),this,SLOT(goTo())); bottom->addWidget(goToButton); diff --git a/YACReader/images.qrc b/YACReader/images.qrc index 698d09ca..88004c76 100644 --- a/YACReader/images.qrc +++ b/YACReader/images.qrc @@ -45,6 +45,8 @@ ../images/imgEdit.png ../images/imgCenterSlide.png ../images/imgGoToSlide.png + ../images/imgCenterSlidePressed.png + ../images/imgGoToSlidePressed.png ../images/helpImages/open.png ../images/helpImages/openFolder.png diff --git a/images/imgCenterSlidePressed.png b/images/imgCenterSlidePressed.png new file mode 100644 index 0000000000000000000000000000000000000000..53ce692b37bc8a96fb74c8f9150ba244b5ae9511 GIT binary patch literal 814 zcmV+}1JV46P)=O*?UlqWnKNhr?kf&g=EsiSzk9=Z4V= zhr=S}DWa5Q5Aav7MVvG@x{9W0Znqm(Bp?TdK8M> z5{c-ajiIDem88LDvl%?8R7!LvlSw#n>t<%0F@`#pM)$Bg&;lXFVi6&NCzHu!vspa3 zTCKja#H>(4p%51pjx4sRQmI6vQEAsPQ=`$C&*!2OI2?YAMJ72=OX$Rjg#`K0@Ar4R z9p+fC*Mq^J)oNkAm=zf_8jWyEj4TobjqP@;1cO10;d1g#_Csv7S_Kgr>-9QoggR6@ zG~jUn1PawoDJGI(a_E9O5K$s~y&mr!R)fZVzyH8VRnyc!#KL`k|L?aqIxt-I07XGo zFb{}SieLL)0qAl!?6M~2q?OufS_OE$8Ydm~tt?qOtt5rku8AE!$ySKco9uz3EaP2x z4M%6zCu{Klrc5uD^hPf_oQW0BDQPjqR-VBme*a07*qoM6N<$g4Bm_f&c&j literal 0 HcmV?d00001 diff --git a/images/imgGoToSlidePressed.png b/images/imgGoToSlidePressed.png new file mode 100644 index 0000000000000000000000000000000000000000..f7f5370caf1fc68c29485b276023c11ef77a6294 GIT binary patch literal 940 zcmV;d15^BoP)YnxdO04YM{Fr=E2Jpg`ET^qpk(2ICj0N@^iUDFdPnl{iK-L zZ1%GNK@dEhbh%t|&+!7#b6i6l!5k{q1TO%~kTu8=ZCC52P$>8(G}ekZPO$;1)oP~9 zY7>`7`SVZk>U=(X0X%gU=CtYaO|%o{<>e)b0B%C$mv*&jS`WjJ6QDDc_z04Aj21=F zroX?xVO=&HTgxmN%>gSE&A+77%VhB#c!irp%NvbG)-x4*K9K58r_*k?8O_(%*T=`l zb&gBz^plb9LBHQ`wOYhD91hnMLCWPaei0OtC;&-F?uNtS@p%0F{9Lcs^?IEYh-eC_ z)oPVWrC2ONw=h!bgs_MS!88CMEzo%mBAUV??817fR1yH62!xK@UaaL-lRQF!$YQ9( ze{Y3>SjCb9oqW9m1WK~9NMIlYfWqWF0OY2r771OdkX^3jlx7wBL;#*j*pchOFkezz z-1XS}x3@Pa)9DmEi3OlV0*D>~TePzT?1J^*H-Uo3*l9WfRwsECN>Hwdb$TEe)-*2H zl}@K5)OV@n`}_NQv)SD3b_9TeM+~}g2xWC;j5c4_ckTONFrf9xWWuRXh=Esb970(O zJB)Sz_4O5ow%hG^JVue>VkmgTAYNfY>`u4&{!x4T>} zWn42*14QRQN1)Had_K46$hU~YdZpKD0Pc#>S8IA9O1ZiPK&sF~1hH3O4gh*hNACdo zP^6cNq_<*SA2d07Mq5ux(Pp!G8iAZ=0^DnnrcjcPqtPfmb=qr-lSUsFpW7xjb-dbi ziee(*MPXgYPYboI#YHA8()(U2$