mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-10-04 17:41:42 +02:00
* Added custom scrollbars for testing.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "ui_TrackInfoWidget.h"
|
||||
|
||||
#include <QScrollArea>
|
||||
#include <QScrollBar>
|
||||
|
||||
#include "ViewManager.h"
|
||||
#include "SourceList.h"
|
||||
@@ -58,6 +59,16 @@ TrackInfoWidget::TrackInfoWidget( const Tomahawk::query_ptr& query, QWidget* par
|
||||
ui->lyricsView->setFrameShape( QFrame::NoFrame );
|
||||
ui->lyricsView->setAttribute( Qt::WA_MacShowFocusRect, 0 );
|
||||
|
||||
ui->similarTracksView->verticalScrollBar()->setStyleSheet(
|
||||
"QScrollBar:vertical { background-color: transparent; }"
|
||||
"QScrollBar::handle:vertical { border-width: 9px; margin-right: 6px;"
|
||||
"border-image: url(" RESPATH "images/scrollbar-vertical-handle.png) 3 3 3 3 stretch stretch;"
|
||||
"border-top: 3px transparent; border-bottom: 3px transparent; border-right: 3px transparent; border-left: 3px transparent; }"
|
||||
"QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { width: 0px; height: 0px; background: none; }"
|
||||
"QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical { width: 0px; height: 0px; background: none; }"
|
||||
"QScrollBar:up-arrow:vertical, QScrollBar::down-arrow:vertical {"
|
||||
"border: 0px; width: 0px; height: 0px; background: none; background-color: transparent; }" );
|
||||
|
||||
QFont f = font();
|
||||
f.setBold( true );
|
||||
f.setPixelSize( 18 );
|
||||
|
Reference in New Issue
Block a user