Skip to content

Commit

Permalink
Hiding coverLocation of the table headers
Browse files Browse the repository at this point in the history
  • Loading branch information
cardinot committed Jun 19, 2014
1 parent aaa9f50 commit 1e2b71e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/library/columncache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void ColumnCache::setColumns(const QStringList& columns) {
m_columnIndexByEnum[COLUMN_LIBRARYTABLE_KEY_ID] = fieldIndex(LIBRARYTABLE_KEY_ID);
m_columnIndexByEnum[COLUMN_LIBRARYTABLE_BPM_LOCK] = fieldIndex(LIBRARYTABLE_BPM_LOCK);
m_columnIndexByEnum[COLUMN_LIBRARYTABLE_PREVIEW] = fieldIndex(LIBRARYTABLE_PREVIEW);
m_columnIndexByEnum[COLUMN_LIBRARYTABLE_COVERART] = fieldIndex(LIBRARYTABLE_COVERART);

m_columnIndexByEnum[COLUMN_TRACKLOCATIONSTABLE_FSDELETED] = fieldIndex(TRACKLOCATIONSTABLE_FSDELETED);

Expand Down
1 change: 1 addition & 0 deletions src/library/columncache.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ColumnCache {
COLUMN_LIBRARYTABLE_KEY_ID,
COLUMN_LIBRARYTABLE_BPM_LOCK,
COLUMN_LIBRARYTABLE_PREVIEW,
COLUMN_LIBRARYTABLE_COVERART,

COLUMN_TRACKLOCATIONSTABLE_FSDELETED,

Expand Down
3 changes: 2 additions & 1 deletion src/library/cratetablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ bool CrateTableModel::isColumnInternal(int column) {
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_KEY_ID)||
column == fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_FSDELETED) ||
(PlayerManager::numPreviewDecks() == 0 &&
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW))) {
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW)) ||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART)) {
return true;
}
return false;
Expand Down
1 change: 1 addition & 0 deletions src/library/dao/trackdao.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const QString LIBRARYTABLE_KEY = "key";
const QString LIBRARYTABLE_KEY_ID = "key_id";
const QString LIBRARYTABLE_BPM_LOCK = "bpm_lock";
const QString LIBRARYTABLE_PREVIEW = "preview";
const QString LIBRARYTABLE_COVERART = "cover";

const QString TRACKLOCATIONSTABLE_ID = "id";
const QString TRACKLOCATIONSTABLE_LOCATION = "location";
Expand Down
3 changes: 2 additions & 1 deletion src/library/hiddentablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ bool HiddenTableModel::isColumnInternal(int column) {
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_BPM_LOCK) ||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_MIXXXDELETED) ||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_KEY_ID)||
column == fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_FSDELETED)) {
column == fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_FSDELETED) ||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART)) {
return true;
}
return false;
Expand Down
3 changes: 2 additions & 1 deletion src/library/librarytablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ bool LibraryTableModel::isColumnInternal(int column) {
(column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_CHANNELS)) ||
(column == fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_FSDELETED)) ||
(PlayerManager::numPreviewDecks() == 0 &&
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW))) {
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW)) ||
(column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART))) {
return true;
}

Expand Down
3 changes: 2 additions & 1 deletion src/library/missingtablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ bool MissingTableModel::isColumnInternal(int column) {
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_BPM_LOCK) ||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_KEY_ID)||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_MIXXXDELETED) ||
column == fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_FSDELETED)) {
column == fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_FSDELETED) ||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART)) {
return true;
}
return false;
Expand Down
3 changes: 2 additions & 1 deletion src/library/playlisttablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ bool PlaylistTableModel::isColumnInternal(int column) {
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_KEY_ID)||
column == fieldIndex(ColumnCache::COLUMN_TRACKLOCATIONSTABLE_FSDELETED) ||
(PlayerManager::numPreviewDecks() == 0 &&
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW))) {
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_PREVIEW)) ||
column == fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART)) {
return true;
}
return false;
Expand Down

0 comments on commit 1e2b71e

Please sign in to comment.