summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-05 12:48:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-05 13:05:55 +0100
commitdfa40a083dc3efaf665bc1f5e54633deda79a956 (patch)
tree6ddecdb6e3855f284890b39614c0761ff5a4b888 /gui
parentb89699c7551f768bf4ff47820543f8c7b8c794af (diff)
gui: allow for process detector resize wrt logical layout
Diffstat (limited to 'gui')
-rw-r--r--gui/options-dialog.ui10
-rw-r--r--gui/process-detector-fancy-table.cpp2
-rw-r--r--gui/process_detector.cpp1
-rw-r--r--gui/process_widget.ui6
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 @@
<property name="title">
<string>Game detection</string>
</property>
- <layout class="QGridLayout" name="gridLayout_2">
- <item row="1" column="0" alignment="Qt::AlignTop">
- <widget class="process_detector" name="game_detector" native="true"/>
- </item>
- <item row="0" column="0">
+ <layout class="QVBoxLayout" name="verticalLayout_12">
+ <item>
<widget class="QLabel" name="label_24">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
@@ -1479,6 +1476,9 @@
</property>
</widget>
</item>
+ <item>
+ <widget class="process_detector" name="game_detector" native="true"/>
+ </item>
</layout>
</widget>
</item>
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 @@
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
+ <property name="cornerButtonEnabled">
+ <bool>false</bool>
+ </property>
+ <attribute name="horizontalHeaderStretchLastSection">
+ <bool>true</bool>
+ </attribute>
<column>
<property name="text">
<string>Executable</string>