From dfa40a083dc3efaf665bc1f5e54633deda79a956 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 5 Nov 2016 12:48:23 +0100 Subject: gui: allow for process detector resize wrt logical layout --- gui/options-dialog.ui | 10 +++++----- gui/process-detector-fancy-table.cpp | 2 +- gui/process_detector.cpp | 1 - gui/process_widget.ui | 6 ++++++ 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/gui/options-dialog.ui b/gui/options-dialog.ui index 6606e28c..f6b8e3d6 100644 --- a/gui/options-dialog.ui +++ b/gui/options-dialog.ui @@ -1459,11 +1459,8 @@ Game detection - - - - - + + @@ -1479,6 +1476,9 @@ + + + diff --git a/gui/process-detector-fancy-table.cpp b/gui/process-detector-fancy-table.cpp index af3aa830..c64428e5 100644 --- a/gui/process-detector-fancy-table.cpp +++ b/gui/process-detector-fancy-table.cpp @@ -5,7 +5,7 @@ void FancyTable::resizeEvent(QResizeEvent* e) QTableView::resizeEvent(e); int w = width(); setColumnWidth(2, 32); - w -= 48; + w -= 40; setColumnWidth(0, w / 2); setColumnWidth(1, w / 2); } diff --git a/gui/process_detector.cpp b/gui/process_detector.cpp index fc4c1c58..e45c0215 100644 --- a/gui/process_detector.cpp +++ b/gui/process_detector.cpp @@ -111,7 +111,6 @@ void process_detector::add_items() process_detector::process_detector(QWidget* parent) : QWidget(parent) { ui.setupUi(this); - setFixedSize(size()); connect(ui.add, SIGNAL(clicked()), this, SLOT(add())); connect(ui.remove, SIGNAL(clicked()), this, SLOT(remove())); diff --git a/gui/process_widget.ui b/gui/process_widget.ui index 2fa30d38..9768c8da 100644 --- a/gui/process_widget.ui +++ b/gui/process_widget.ui @@ -25,6 +25,12 @@ Qt::NoFocus + + false + + + true + Executable -- cgit v1.2.3