(trunk qt) filterbar tweak by kjg

This commit is contained in:
Charles Kerr 2009-05-19 04:21:58 +00:00
parent 553354e34e
commit ed96a156a5
1 changed files with 14 additions and 15 deletions

View File

@ -346,21 +346,20 @@ TrMainWindow :: createFilterBar( )
h = new QHBoxLayout( top ); h = new QHBoxLayout( top );
h->setContentsMargins( HIG::PAD_SMALL, HIG::PAD_SMALL, HIG::PAD_SMALL, HIG::PAD_SMALL ); h->setContentsMargins( HIG::PAD_SMALL, HIG::PAD_SMALL, HIG::PAD_SMALL, HIG::PAD_SMALL );
h->setSpacing( HIG::PAD_SMALL ); h->setSpacing( HIG::PAD_SMALL );
#ifdef Q_OS_MAC
top->setStyleSheet(" \ top->setStyleSheet( "QPushButton{ "
QPushButton{ \ " border-radius: 10px; "
border-radius: 10px; \ " padding: 0 5px; "
padding: 0 5px; \ " border: 1px none; "
border: 1px none; \ "} "
} \ "QPushButton:pressed, QPushButton:checked{ "
QPushButton:pressed, QPushButton:checked{ \ " border-width: 1px; "
border-width: 1px; \ " border-style: solid; "
border-style: solid; \ " border-color: #5f5f5f #979797 #979797; "
border-color: #5f5f5f #979797 #979797; \ " background-color: #979797; "
background-color: #979797; \ " color: white; "
color: white; \ "} ");
} \ #endif
");
QList<QString> titles; QList<QString> titles;
titles << tr( "A&ll" ) << tr( "&Active" ) << tr( "&Downloading" ) << tr( "&Seeding" ) << tr( "&Paused" ); titles << tr( "A&ll" ) << tr( "&Active" ) << tr( "&Downloading" ) << tr( "&Seeding" ) << tr( "&Paused" );