summaryrefslogtreecommitdiffhomepage
path: root/gui/process_detector.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-22 13:29:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commiteb7e13da139dc0878e8279eeac704206a220d23a (patch)
tree4ca81c30ec5c13387b034686bb86396507cfdf2a /gui/process_detector.h
parent7c4b38428039673b79eb5ca058c707c6645ebff9 (diff)
gui/process-detector: fix circular include
Diffstat (limited to 'gui/process_detector.h')
-rw-r--r--gui/process_detector.h24
1 files changed, 3 insertions, 21 deletions
diff --git a/gui/process_detector.h b/gui/process_detector.h
index a659c178..9dd0da91 100644
--- a/gui/process_detector.h
+++ b/gui/process_detector.h
@@ -13,25 +13,9 @@
#include <QTableWidget>
#include <QResizeEvent>
+#include "ui_process_widget.h"
+#include "process-detector-fancy-table.hpp"
#include "options/options.hpp"
-using namespace options;
-
-class FancyTable : public QTableWidget
-{
- Q_OBJECT
-public:
- void resizeEvent(QResizeEvent* e) override
- {
- QTableView::resizeEvent(e);
- int w = width();
- setColumnWidth(2, 32);
- w -= 48;
- setColumnWidth(0, w / 2);
- setColumnWidth(1, w / 2);
- }
-public:
- FancyTable(QWidget* parent = nullptr) : QTableWidget(parent) {}
-};
struct settings
{
@@ -42,9 +26,7 @@ struct settings
void set_is_enabled(bool enabled);
};
-#include "ui_process_widget.h"
-
-class process_detector : public QWidget
+class process_detector final : public QWidget
{
Q_OBJECT