[qet] [4292] Minor : Force single line symbols specific conductor to 1 pixel,

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4292
Author:   scorpio810
Date:     2015-12-28 16:19:55 +0100 (Mon, 28 Dec 2015)
Log Message:
-----------
Minor : Force single line symbols specific conductor to 1 pixel,
even if the thickness of the conductor is superior than 1 pixel

Modified Paths:
--------------
    trunk/sources/conductorproperties.cpp
    trunk/sources/conductorproperties.h
    trunk/sources/configpages.cpp

Modified: trunk/sources/conductorproperties.cpp
===================================================================
--- trunk/sources/conductorproperties.cpp	2015-12-25 19:45:49 UTC (rev 4291)
+++ trunk/sources/conductorproperties.cpp	2015-12-28 15:19:55 UTC (rev 4292)
@@ -71,6 +71,7 @@
 	pen.setCapStyle(Qt::FlatCap);
 	pen.setJoinStyle(Qt::MiterJoin);
 	pen.setStyle(Qt::SolidLine);
+	pen.setWidthF(1);
 	painter -> setPen(pen);
 	painter -> setRenderHint(QPainter::Antialiasing, true);
 	

Modified: trunk/sources/conductorproperties.h
===================================================================
--- trunk/sources/conductorproperties.h	2015-12-25 19:45:49 UTC (rev 4291)
+++ trunk/sources/conductorproperties.h	2015-12-28 15:19:55 UTC (rev 4292)
@@ -30,7 +30,7 @@
 	public:
 	SingleLineProperties();
 	virtual ~SingleLineProperties();
-	
+
 	void setPhasesCount(int);
 	unsigned short int phasesCount();
 	bool isPen() const;

Modified: trunk/sources/configpages.cpp
===================================================================
--- trunk/sources/configpages.cpp	2015-12-25 19:45:49 UTC (rev 4291)
+++ trunk/sources/configpages.cpp	2015-12-28 15:19:55 UTC (rev 4292)
@@ -72,7 +72,7 @@
 	diagram_layout -> addWidget(bpw);
 	diagram_layout -> addWidget(ipw);
 
-    tab_widget -> addTab (diagram_widget, tr("Folio"));
+	tab_widget -> addTab (diagram_widget, tr("Folio"));
 	tab_widget -> addTab (cpw,            tr("Conducteur"));
 	tab_widget -> addTab (rpw,            tr("Reports de folio"));
 	tab_widget -> addTab (xrefpw,         tr("Références croisées"));
@@ -197,8 +197,8 @@
 	appearance_ = new QGroupBox(tr("Apparence"), this);
 	use_system_colors_ = new QCheckBox(tr("Utiliser les couleurs du système"), appearance_);
 	projects_view_mode_ = new QGroupBox(tr("Projets"), this);
-    windowed_mode_ = new QRadioButton(tr("Utiliser des fenêtres (appliqué au prochain lancement de QElectroTech)"), projects_view_mode_);
-    tabbed_mode_ = new QRadioButton(tr("Utiliser des onglets (appliqué au prochain lancement de QElectroTech)"), projects_view_mode_);
+	windowed_mode_ = new QRadioButton(tr("Utiliser des fenêtres (appliqué au prochain lancement de QElectroTech)"), projects_view_mode_);
+	tabbed_mode_ = new QRadioButton(tr("Utiliser des onglets (appliqué au prochain lancement de QElectroTech)"), projects_view_mode_);
 	use_trackpad_ = new QCheckBox(tr("Utiliser les gestes du pavé tactile"), projects_view_mode_);
 	m_zoom_out_beyond_folio = new QCheckBox(tr("Autoriser le dézoom au delà du folio"), this);
 	
@@ -239,7 +239,7 @@
 	projects_view_mode_layout -> addWidget(windowed_mode_);
 	projects_view_mode_layout -> addWidget(tabbed_mode_);
 	projects_view_mode_layout -> addWidget(m_zoom_out_beyond_folio);
-    projects_view_mode_layout -> addWidget(use_trackpad_);
+	projects_view_mode_layout -> addWidget(use_trackpad_);
 	projects_view_mode_ -> setLayout(projects_view_mode_layout);
 	
 	QVBoxLayout *elements_management_layout = new QVBoxLayout();
@@ -253,7 +253,7 @@
 	lang_group_box = new QGroupBox(tr("Langue"), this);
 	QHBoxLayout *lang_layout = new QHBoxLayout(lang_group_box);
 	lang_combo_box = new QComboBox();
-    lang_label = new QLabel(tr("La nouvelle langue sera prise en compte au prochain lancement de QElectroTech."));
+	lang_label = new QLabel(tr("La nouvelle langue sera prise en compte au prochain lancement de QElectroTech."));
 	lang_layout->addWidget(lang_combo_box);
 	lang_layout->addWidget(lang_label);
 	fillLang(settings);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/