Skip to content

Commit

Permalink
library delegates: consolidate common includes in base class
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed Dec 1, 2023
1 parent 866cea5 commit 3e0b96f
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/library/bpmdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <QItemEditorCreatorBase>
#include <QItemEditorFactory>
#include <QPainter>
#include <QTableView>

#include "moc_bpmdelegate.cpp"

Expand Down
4 changes: 0 additions & 4 deletions src/library/colordelegate.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#include "library/colordelegate.h"

#include <QPainter>
#include <QStyle>
#include <QTableView>

#include "moc_colordelegate.cpp"
#include "util/color/rgbcolor.h"

Expand Down
2 changes: 0 additions & 2 deletions src/library/coverartdelegate.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "library/coverartdelegate.h"

#include <QPainter>
#include <QTableView>
#include <algorithm>

#include "library/coverartcache.h"
Expand Down
2 changes: 0 additions & 2 deletions src/library/playcountdelegate.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include "library/playcountdelegate.h"

#include <QCheckBox>
#include <QPainter>
#include <QTableView>

#include "moc_playcountdelegate.cpp"

Expand Down
2 changes: 0 additions & 2 deletions src/library/previewbuttondelegate.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#include "library/previewbuttondelegate.h"

#include <QPainter>
#include <QPushButton>
#include <QTableView>

#include "control/controlproxy.h"
#include "library/trackmodel.h"
Expand Down
2 changes: 0 additions & 2 deletions src/library/stardelegate.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#include "library/stardelegate.h"

#include <QTableView>

#include "library/stareditor.h"
#include "library/starrating.h"
#include "library/tableitemdelegate.h"
Expand Down
1 change: 0 additions & 1 deletion src/library/tableitemdelegate.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "library/tableitemdelegate.h"

#include <QPainter>
#include <QTableView>

#include "moc_tableitemdelegate.cpp"
#include "util/painterscope.h"
Expand Down
3 changes: 3 additions & 0 deletions src/library/tableitemdelegate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#pragma once

#include <QPainter>
#include <QStyle>
#include <QStyledItemDelegate>
#include <QTableView>

class QTableView;

Expand Down

0 comments on commit 3e0b96f

Please sign in to comment.