From ed96a156a5c1b01b19a9bb069ede576622d84f90 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 19 May 2009 04:21:58 +0000 Subject: [PATCH] (trunk qt) filterbar tweak by kjg --- qt/mainwin.cc | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/qt/mainwin.cc b/qt/mainwin.cc index f8b9469a6..6492231a9 100644 --- a/qt/mainwin.cc +++ b/qt/mainwin.cc @@ -346,21 +346,20 @@ TrMainWindow :: createFilterBar( ) h = new QHBoxLayout( top ); h->setContentsMargins( HIG::PAD_SMALL, HIG::PAD_SMALL, HIG::PAD_SMALL, HIG::PAD_SMALL ); h->setSpacing( HIG::PAD_SMALL ); - - top->setStyleSheet(" \ - QPushButton{ \ - border-radius: 10px; \ - padding: 0 5px; \ - border: 1px none; \ - } \ - QPushButton:pressed, QPushButton:checked{ \ - border-width: 1px; \ - border-style: solid; \ - border-color: #5f5f5f #979797 #979797; \ - background-color: #979797; \ - color: white; \ - } \ - "); +#ifdef Q_OS_MAC + top->setStyleSheet( "QPushButton{ " + " border-radius: 10px; " + " padding: 0 5px; " + " border: 1px none; " + "} " + "QPushButton:pressed, QPushButton:checked{ " + " border-width: 1px; " + " border-style: solid; " + " border-color: #5f5f5f #979797 #979797; " + " background-color: #979797; " + " color: white; " + "} "); +#endif QList titles; titles << tr( "A&ll" ) << tr( "&Active" ) << tr( "&Downloading" ) << tr( "&Seeding" ) << tr( "&Paused" );