Skip to content

Commit 6e87eef

Browse files
committed
Use forward declarations to avoid unneeded dependencies on header files
1 parent 3c5127f commit 6e87eef

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/qhexedit.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616
* License along with this library; if not, see
1717
* https://www.gnu.org/licenses/
1818
*/
19+
#include <algorithm>
20+
1921
#include <QApplication>
2022
#include <QClipboard>
2123
#include <QKeyEvent>
2224
#include <QPainter>
2325
#include <QScrollBar>
2426

27+
#include "chunks.h"
28+
#include "commands.h"
29+
#include "color_manager.h"
2530
#include "qhexedit.h"
26-
#include <algorithm>
27-
2831

2932
// ********************************************************************** Constructor, destructor
3033

src/qhexedit.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
#define QHEXEDIT_H
2121

2222
#include <QAbstractScrollArea>
23-
#include <QPen>
23+
#include <QBuffer>
2424
#include <QBrush>
25+
#include <QPen>
26+
#include <QTimer>
2527

26-
#include "chunks.h"
27-
#include "commands.h"
28-
#include "color_manager.h"
28+
class Chunks;
29+
class UndoStack;
30+
class ColorManager;
2931

3032
#ifdef QHEXEDIT_EXPORTS
3133
#define QHEXEDIT_API Q_DECL_EXPORT

0 commit comments

Comments
 (0)