Browse Source

Small correction

Rémi Synave 2 years ago
parent
commit
8d6132403f
4 changed files with 4 additions and 11 deletions
  1. 2 7
      src/MainWindow.cpp
  2. 1 1
      src/MainWindow.hpp
  3. 0 2
      src/WorkArea.cpp
  4. 1 1
      src/WorkArea.hpp

+ 2 - 7
src/MainWindow.cpp

@@ -1,14 +1,8 @@
-#include <QDebug>
-
 #include <QGuiApplication>
 #include <QScreen>
 #include <QWidget>
 #include <QMenuBar>
 #include <QFileDialog>
-#include <QSizePolicy>
-
-#include <QWidget>
-#include <QHBoxLayout>
 
 #include "MainWindow.hpp"
 
@@ -22,8 +16,9 @@ MainWindow::MainWindow ()
 
   QScreen *screen = QGuiApplication::primaryScreen ();
   QRect screenGeometry = screen->geometry ();
-  int screenHeight = screenGeometry.height () - 200;
   int screenWidth = screenGeometry.width () - 200;
+  int screenHeight = screenGeometry.height () - 200;
+  
 
   wa = new WorkArea (screenWidth, screenHeight, this);
   

+ 1 - 1
src/MainWindow.hpp

@@ -8,7 +8,7 @@
 #include "WorkArea.hpp"
 
 
-class MainWindow:public QMainWindow
+class MainWindow: public QMainWindow
 {
   Q_OBJECT 
 

+ 0 - 2
src/WorkArea.cpp

@@ -1,5 +1,3 @@
-#include <QDebug>
-
 #include <QFile>
 #include <QColor>
 #include <QTextStream>

+ 1 - 1
src/WorkArea.hpp

@@ -11,7 +11,7 @@
 
 
 
-class WorkArea:public QWidget
+class WorkArea: public QWidget
 {
   
   Q_OBJECT