mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 14:28:24 +01:00
C++11 style fixes
This commit is contained in:
parent
a408a3ac38
commit
3ee20385e3
@ -44,12 +44,12 @@ class ACCOUNTDLLEXPORT XmppConfigWidget : public AccountConfigWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit XmppConfigWidget( XmppAccount* account = 0, QWidget *parent = 0 );
|
||||
explicit XmppConfigWidget( XmppAccount* account = nullptr, QWidget *parent = nullptr );
|
||||
virtual ~XmppConfigWidget();
|
||||
|
||||
void saveConfig();
|
||||
|
||||
virtual void checkForErrors();
|
||||
void checkForErrors() override;
|
||||
|
||||
signals:
|
||||
void dataError( bool exists );
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
#include "AccountConfigWidget.h"
|
||||
|
||||
AccountConfigWidget::AccountConfigWidget(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
AccountConfigWidget::AccountConfigWidget( QWidget* parent )
|
||||
: QWidget( parent )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ class DLLEXPORT AccountConfigWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AccountConfigWidget(QWidget *parent = 0);
|
||||
explicit AccountConfigWidget( QWidget* parent = nullptr );
|
||||
|
||||
virtual void checkForErrors();
|
||||
virtual const QStringList errors() const;
|
||||
|
@ -52,7 +52,7 @@ using namespace Accounts;
|
||||
AccountDelegate::AccountDelegate( QObject* parent )
|
||||
: QStyledItemDelegate ( parent )
|
||||
, m_accountRowHeight( -1 )
|
||||
, m_model( 0 )
|
||||
, m_model( nullptr )
|
||||
{
|
||||
}
|
||||
|
||||
@ -108,7 +108,7 @@ AccountDelegate::paint ( QPainter* painter, const QStyleOptionViewItem& option,
|
||||
|
||||
painter->setRenderHint( QPainter::Antialiasing );
|
||||
|
||||
if ( m_model == 0 || m_model != index.model() )
|
||||
if ( m_model == nullptr || m_model != index.model() )
|
||||
m_model = const_cast<QAbstractItemModel*>( index.model() );
|
||||
|
||||
QFont titleFont = opt.font;
|
||||
|
@ -44,7 +44,7 @@ class DLLEXPORT AccountDelegate : public QStyledItemDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
AccountDelegate( QObject* parent = 0);
|
||||
AccountDelegate( QObject* parent = nullptr );
|
||||
|
||||
virtual void paint ( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
||||
virtual QSize sizeHint ( const QStyleOptionViewItem& option, const QModelIndex& index ) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user