From ce92b2c3af9992bd3019767be468887282858e64 Mon Sep 17 00:00:00 2001 From: BertrandP <bertrand.provot@insa-rennes.fr> Date: Mon, 2 Jul 2018 13:21:01 +0200 Subject: [PATCH] Hough dialog code cleaning + delete useless old classes --- app/Operations/HoughDialog.ui | 19 +++-- app/Operations/ucharconvertdialog.cpp | 14 ---- app/Operations/ucharconvertdialog.h | 22 ----- app/Operations/ucharconvertdialog.ui | 112 -------------------------- 4 files changed, 11 insertions(+), 156 deletions(-) delete mode 100644 app/Operations/ucharconvertdialog.cpp delete mode 100644 app/Operations/ucharconvertdialog.h delete mode 100644 app/Operations/ucharconvertdialog.ui diff --git a/app/Operations/HoughDialog.ui b/app/Operations/HoughDialog.ui index d8123e9..5c083fe 100644 --- a/app/Operations/HoughDialog.ui +++ b/app/Operations/HoughDialog.ui @@ -6,7 +6,7 @@ <rect> <x>0</x> <y>0</y> - <width>259</width> + <width>262</width> <height>180</height> </rect> </property> @@ -120,6 +120,9 @@ <verstretch>0</verstretch> </sizepolicy> </property> + <property name="layoutDirection"> + <enum>Qt::LeftToRight</enum> + </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> @@ -139,12 +142,12 @@ <slot>accept()</slot> <hints> <hint type="sourcelabel"> - <x>248</x> - <y>254</y> + <x>252</x> + <y>170</y> </hint> <hint type="destinationlabel"> <x>157</x> - <y>274</y> + <y>179</y> </hint> </hints> </connection> @@ -155,12 +158,12 @@ <slot>reject()</slot> <hints> <hint type="sourcelabel"> - <x>316</x> - <y>260</y> + <x>252</x> + <y>170</y> </hint> <hint type="destinationlabel"> - <x>286</x> - <y>274</y> + <x>261</x> + <y>179</y> </hint> </hints> </connection> diff --git a/app/Operations/ucharconvertdialog.cpp b/app/Operations/ucharconvertdialog.cpp deleted file mode 100644 index efbdd6e..0000000 --- a/app/Operations/ucharconvertdialog.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "ucharconvertdialog.h" -#include "ui_ucharconvertdialog.h" - -UCharConvertDialog::UCharConvertDialog(QWidget *parent) : - QDialog(parent), - ui(new Ui::UCharConvertDialog) -{ - ui->setupUi(this); -} - -UCharConvertDialog::~UCharConvertDialog() -{ - delete ui; -} diff --git a/app/Operations/ucharconvertdialog.h b/app/Operations/ucharconvertdialog.h deleted file mode 100644 index 2757e4b..0000000 --- a/app/Operations/ucharconvertdialog.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef UCHARCONVERTDIALOG_H -#define UCHARCONVERTDIALOG_H - -#include <QDialog> - -namespace Ui { -class UCharConvertDialog; -} - -class UCharConvertDialog : public QDialog -{ - Q_OBJECT - -public: - explicit UCharConvertDialog(QWidget *parent = 0); - ~UCharConvertDialog(); - -private: - Ui::UCharConvertDialog *ui; -}; - -#endif // UCHARCONVERTDIALOG_H diff --git a/app/Operations/ucharconvertdialog.ui b/app/Operations/ucharconvertdialog.ui deleted file mode 100644 index 12cb7da..0000000 --- a/app/Operations/ucharconvertdialog.ui +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<ui version="4.0"> - <class>UCharConvertDialog</class> - <widget class="QDialog" name="UCharConvertDialog"> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>400</width> - <height>300</height> - </rect> - </property> - <property name="windowTitle"> - <string>Dialog</string> - </property> - <widget class="QDialogButtonBox" name="buttonBox"> - <property name="geometry"> - <rect> - <x>40</x> - <y>260</y> - <width>341</width> - <height>32</height> - </rect> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="standardButtons"> - <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> - </property> - </widget> - <widget class="QWidget" name="verticalLayoutWidget"> - <property name="geometry"> - <rect> - <x>30</x> - <y>40</y> - <width>311</width> - <height>81</height> - </rect> - </property> - <layout class="QVBoxLayout" name="verticalLayout"> - <item> - <widget class="QLabel" name="label_2"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item> - <widget class="QComboBox" name="comboBox"/> - </item> - </layout> - </widget> - <widget class="QWidget" name="verticalLayoutWidget_2"> - <property name="geometry"> - <rect> - <x>30</x> - <y>150</y> - <width>160</width> - <height>80</height> - </rect> - </property> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <item> - <widget class="QLabel" name="label"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item> - <widget class="QSpinBox" name="spinBox"/> - </item> - </layout> - </widget> - </widget> - <resources/> - <connections> - <connection> - <sender>buttonBox</sender> - <signal>accepted()</signal> - <receiver>UCharConvertDialog</receiver> - <slot>accept()</slot> - <hints> - <hint type="sourcelabel"> - <x>248</x> - <y>254</y> - </hint> - <hint type="destinationlabel"> - <x>157</x> - <y>274</y> - </hint> - </hints> - </connection> - <connection> - <sender>buttonBox</sender> - <signal>rejected()</signal> - <receiver>UCharConvertDialog</receiver> - <slot>reject()</slot> - <hints> - <hint type="sourcelabel"> - <x>316</x> - <y>260</y> - </hint> - <hint type="destinationlabel"> - <x>286</x> - <y>274</y> - </hint> - </hints> - </connection> - </connections> -</ui> -- GitLab