aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-30 18:32:49 -0400
committerDavid Robillard <d@drobilla.net>2022-08-17 13:50:21 -0400
commitb58430c852867ab546cd3644765e33813e1aa5bb (patch)
treedd2fe833f290fdec6eaf95e580479286230f53bf /src
parentd0a79a7547369bdb341af5bc5f7b52b879a89d03 (diff)
downloadjalv-b58430c852867ab546cd3644765e33813e1aa5bb.tar.gz
jalv-b58430c852867ab546cd3644765e33813e1aa5bb.tar.bz2
jalv-b58430c852867ab546cd3644765e33813e1aa5bb.zip
Clean up includes
Diffstat (limited to 'src')
-rw-r--r--src/jalv.c4
-rw-r--r--src/jalv_qt.cpp2
-rw-r--r--src/jalv_qt.hpp36
3 files changed, 6 insertions, 36 deletions
diff --git a/src/jalv.c b/src/jalv.c
index dfb32fd..9e93848 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -47,10 +47,10 @@
# include "suil/suil.h"
#endif
-#ifdef _WIN32
+#if defined(_WIN32)
# include <io.h> // for _mktemp
# define snprintf _snprintf
-#else
+#elif defined(__APPLE__)
# include <unistd.h> // for mkdtemp on Darwin
#endif
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index 2aae1b9..434cf9e 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -9,8 +9,6 @@
#include "suil/suil.h"
#include "zix/sem.h"
-#include <QtGlobal>
-
#include <QAction>
#include <QApplication>
#include <QDial>
diff --git a/src/jalv_qt.hpp b/src/jalv_qt.hpp
index 6a9cdf7..bb74e46 100644
--- a/src/jalv_qt.hpp
+++ b/src/jalv_qt.hpp
@@ -5,47 +5,19 @@
#include "state.h"
#include "lilv/lilv.h"
-#include "suil/suil.h"
-#include "zix/sem.h"
-
-#include <QtGlobal>
#include <QAction>
-#include <QApplication>
-#include <QDial>
-#include <QFontMetrics>
#include <QGroupBox>
-#include <QGuiApplication>
-#include <QHBoxLayout>
-#include <QKeySequence>
-#include <QLabel>
-#include <QLayout>
-#include <QLayoutItem>
-#include <QList>
-#include <QMainWindow>
-#include <QMenu>
-#include <QMenuBar>
-#include <QObject>
-#include <QPoint>
-#include <QRect>
-#include <QScreen>
-#include <QScrollArea>
-#include <QSize>
-#include <QSizePolicy>
#include <QString>
-#include <QStyle>
-#include <QTimer>
-#include <QVBoxLayout>
-#include <QWidget>
#include <QtCore>
-#include <algorithm>
-#include <cmath>
-#include <cstdint>
-#include <cstring>
#include <map>
#include <vector>
+class QDial;
+class QLabel;
+class QWidget;
+
class PresetAction : public QAction
{
Q_OBJECT // NOLINT