mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
* Added TomahawkStyle::stylePageWidget and remove actual frame from QFrame.
This commit is contained in:
@@ -170,6 +170,16 @@ TomahawkStyle::stylePageFrame( QFrame* frame )
|
|||||||
{
|
{
|
||||||
frame->setStyleSheet( QString( "QFrame#%1 { background-color: transparent; border: 0px solid white; border-radius: 0px; }" )
|
frame->setStyleSheet( QString( "QFrame#%1 { background-color: transparent; border: 0px solid white; border-radius: 0px; }" )
|
||||||
.arg( frame->objectName() ) );
|
.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() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -47,6 +47,7 @@ namespace TomahawkStyle
|
|||||||
DLLEXPORT void drawArrow( QStyle::PrimitiveElement, QPainter* painter, const QStyleOption* opt );
|
DLLEXPORT void drawArrow( QStyle::PrimitiveElement, QPainter* painter, const QStyleOption* opt );
|
||||||
|
|
||||||
DLLEXPORT void stylePageFrame( QFrame* frame );
|
DLLEXPORT void stylePageFrame( QFrame* frame );
|
||||||
|
DLLEXPORT void stylePageWidget( QWidget* widget );
|
||||||
DLLEXPORT void styleScrollBar( QScrollBar* scrollBar );
|
DLLEXPORT void styleScrollBar( QScrollBar* scrollBar );
|
||||||
|
|
||||||
static const QColor BORDER_LINE = QColor( "#8c8c8c" );
|
static const QColor BORDER_LINE = QColor( "#8c8c8c" );
|
||||||
|
Reference in New Issue
Block a user