Browse Source

Mise en page à gauche des chronomètres

Sangfroid 9 years ago
parent
commit
904c3b10c4
2 changed files with 10 additions and 7 deletions
  1. 9 6
      Chronometre.cpp
  2. 1 1
      chronoCheckMate.pro.user

+ 9 - 6
Chronometre.cpp

@@ -30,7 +30,8 @@
 #include <QFont>
 
 Chronometre::Chronometre (const QString & nom , QWidget * parent = 0) : QGroupBox (nom , parent) {
-	heure = 0;
+    setFlat(false);
+    heure = 0;
 	minute = 0;
 	seconde = 0;
 	centieme = 0;
@@ -47,14 +48,16 @@ Chronometre::Chronometre (const QString & nom , QWidget * parent = 0) : QGroupBo
     ecranCentieme->setFont(font);
 
 	ecranLayout = new QHBoxLayout;
-    ecranLayout->addWidget(ecranHeure, Qt::AlignLeft);
+    ecranLayout->addWidget(ecranHeure);
     ecranLayout->addWidget(new QLabel(":"));
-    ecranLayout->addWidget(ecranMinute , Qt::AlignLeft);
+    ecranLayout->addWidget(ecranMinute);
     ecranLayout->addWidget(new QLabel(":"));
-    ecranLayout->addWidget(ecranSeconde, Qt::AlignLeft);
+    ecranLayout->addWidget(ecranSeconde);
     ecranLayout->addWidget(new QLabel(":"));
-    ecranLayout->addWidget(ecranCentieme, Qt::AlignLeft);
-	
+    ecranLayout->addWidget(ecranCentieme);
+    ecranLayout->addSpacing(40);
+    //ecranLayout->addStretch(-1);
+
 	setLayout (ecranLayout);
 	
 	affichage();

+ 1 - 1
chronoCheckMate.pro.user

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE QtCreatorProject>
-<!-- Written by Qt Creator 2.4.1, 2015-07-20T12:28:26. -->
+<!-- Written by Qt Creator 2.4.1, 2015-07-20T13:40:27. -->
 <qtcreator>
  <data>
   <variable>ProjectExplorer.Project.ActiveTarget</variable>