From f17bba773df3a456cc0dec992c604a29cac6854f Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 31 Jan 2012 18:25:34 -0500 Subject: [PATCH] initial delegate work --- src/AccountDelegate.h | 2 +- src/CMakeLists.txt | 4 ++-- src/libtomahawk/accounts/AccountModel.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AccountDelegate.h b/src/AccountDelegate.h index bd1f9b638..a15c82910 100644 --- a/src/AccountDelegate.h +++ b/src/AccountDelegate.h @@ -42,7 +42,7 @@ public: virtual QRect checkRectForIndex( const QStyleOptionViewItem &option, const QModelIndex &idx, int role ) const; virtual QRect configRectForIndex( const QStyleOptionViewItem& option, const QModelIndex& idx ) const; -// virtual QList extraCheckRoles() const { return QList() << (int)AccountModel::AccountTypeRole; } + virtual QList extraCheckRoles() const { return QList() << (int)AccountModel::AccountTypeRole; } private slots: void askedForEdit( const QModelIndex& idx ); diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a2d75f978..31591e961 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -75,7 +75,7 @@ SET( tomahawkSourcesGui ${tomahawkSourcesGui} settingsdialog.cpp diagnosticsdialog.cpp configdelegatebase.cpp -# AccountDelegate.cpp + AccountDelegate.cpp settingslistdelegate.cpp tomahawkwindow.cpp LoadXSPFDialog.cpp @@ -125,7 +125,7 @@ SET( tomahawkHeadersGui ${tomahawkHeadersGui} settingsdialog.h diagnosticsdialog.h configdelegatebase.h -# AccountDelegate.h + AccountDelegate.h settingslistdelegate.h delegateconfigwrapper.h tomahawkwindow.h diff --git a/src/libtomahawk/accounts/AccountModel.h b/src/libtomahawk/accounts/AccountModel.h index 7338980e4..f594b1025 100644 --- a/src/libtomahawk/accounts/AccountModel.h +++ b/src/libtomahawk/accounts/AccountModel.h @@ -52,7 +52,7 @@ public: HasConfig = Qt::UserRole + 26, ErrorString = Qt::UserRole + 27, - // used by individual accounts, needed still? + // used by individual accounts AccountData = Qt::UserRole + 28 // raw plugin };