1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-19 07:27:59 +01:00

* Use style sheet instead of UnstyledFrame.

This commit is contained in:
Christian Muehlhaeuser 2014-08-25 22:14:11 +02:00
parent 6a6ce28b45
commit 290d30ce20
2 changed files with 5 additions and 6 deletions

View File

@ -18,7 +18,6 @@
#include "AccountWidget.h"
#include "UnstyledFrame.h"
#include "SlideSwitchButton.h"
#include "accounts/Account.h"
#include "accounts/AccountModel.h"
@ -102,13 +101,13 @@ AccountWidget::AccountWidget( QWidget* parent )
statusToggleLayout->addStretch();
statusToggleLayout->addWidget( m_statusToggle );
m_inviteContainer = new UnstyledFrame( this );
m_inviteContainer = new QFrame( this );
m_inviteContainer->setObjectName( "inviteContainer" );
vLayout->addWidget( m_inviteContainer, 1, 0 );
m_inviteContainer->setFrameColor( TomahawkStyle::BORDER_LINE );
m_inviteContainer->setStyleSheet( QString( "QWidget { background: white; } QFrame#%1 { border: 1px solid %2; }" ).arg( m_inviteContainer->objectName() ).arg( TomahawkStyle::BORDER_LINE.name() ) );
m_inviteContainer->setMinimumWidth( m_inviteContainer->logicalDpiX() * 2 );
m_inviteContainer->setContentsMargins( 1, 1, 1, 2 );
m_inviteContainer->setAttribute( Qt::WA_TranslucentBackground, false );
m_inviteContainer->setStyleSheet( "background: white" );
QHBoxLayout* containerLayout = new QHBoxLayout( m_inviteContainer );
m_inviteContainer->setLayout( containerLayout );

View File

@ -27,7 +27,7 @@
class AnimatedSpinner;
class ElidedLabel;
class SlideSwitchButton;
class UnstyledFrame;
class QFrame;
class QLabel;
class QLineEdit;
class QPushButton;
@ -63,7 +63,7 @@ private:
SlideSwitchButton* m_statusToggle;
QLineEdit* m_inviteEdit;
QPushButton* m_inviteButton;
UnstyledFrame* m_inviteContainer;
QFrame* m_inviteContainer;
QLabel* m_addAccountIcon;
QPersistentModelIndex m_myFactoryIdx;