1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-02-25 20:33:20 +01:00

* Added TomahawkStyle::stylePageWidget and remove actual frame from QFrame.

This commit is contained in:
Christian Muehlhaeuser 2013-09-03 14:59:10 +02:00
parent b86c179f2c
commit 90e080a55a
2 changed files with 11 additions and 0 deletions

View File

@ -170,6 +170,16 @@ TomahawkStyle::stylePageFrame( QFrame* frame )
{
frame->setStyleSheet( QString( "QFrame#%1 { background-color: transparent; border: 0px solid white; border-radius: 0px; }" )
.arg( frame->objectName() ) );
frame->setFrameShape( QFrame::NoFrame );
frame->setAttribute( Qt::WA_MacShowFocusRect, 0 );
}
void
TomahawkStyle::stylePageWidget( QWidget* widget )
{
widget->setStyleSheet( QString( "QWidget%1 { background-color: transparent; }" )
.arg( widget->objectName() ) );
}

View File

@ -47,6 +47,7 @@ namespace TomahawkStyle
DLLEXPORT void drawArrow( QStyle::PrimitiveElement, QPainter* painter, const QStyleOption* opt );
DLLEXPORT void stylePageFrame( QFrame* frame );
DLLEXPORT void stylePageWidget( QWidget* widget );
DLLEXPORT void styleScrollBar( QScrollBar* scrollBar );
static const QColor BORDER_LINE = QColor( "#8c8c8c" );