mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Draw in correct option rect.
This commit is contained in:
@@ -284,13 +284,8 @@ PlaylistItemDelegate::paintDetailed( QPainter* painter, const QStyleOptionViewIt
|
|||||||
else */
|
else */
|
||||||
if ( index.column() == PlayableModel::Download )
|
if ( index.column() == PlayableModel::Download )
|
||||||
{
|
{
|
||||||
/* QStyleOptionButton opt;
|
|
||||||
opt.state = QStyle::State_Active | QStyle::State_Enabled;
|
|
||||||
opt.rect = QRect( 50, 25, 100, 50 );
|
|
||||||
style()->drawControl( QStyle::CE_PushButton, &opt, &painter );*/
|
|
||||||
|
|
||||||
QStyleOptionComboBox optc;
|
QStyleOptionComboBox optc;
|
||||||
optc.rect.adjust( 4, 0, -4, 0 );
|
optc.rect = opt.rect.adjusted( 4, 0, -4, 0 );
|
||||||
optc.editable = false;
|
optc.editable = false;
|
||||||
// sDebug() << item->track()->currentFormat() << item->track()->formats().count();
|
// sDebug() << item->track()->currentFormat() << item->track()->formats().count();
|
||||||
optc.currentText = tr( "Download %1" ).arg( item->result()->downloadFormats().first().extension );
|
optc.currentText = tr( "Download %1" ).arg( item->result()->downloadFormats().first().extension );
|
||||||
|
Reference in New Issue
Block a user