Updated for Qt5
authorDmitriy Morozov <dmitriy@mrzv.org>
Wed, 04 Nov 2015 10:34:25 -0800
changeset 18 0be066f6bb5b
parent 17 d0b0ea368ce9
child 19 04a7e1ba22c4
Updated for Qt5
canvasview.cpp
canvasview.h
mainwindow.cpp
mainwindow.h
--- a/canvasview.cpp	Mon Feb 23 18:38:49 2015 -0800
+++ b/canvasview.cpp	Wed Nov 04 10:34:25 2015 -0800
@@ -71,7 +71,7 @@
 
 // --------------------------------------------------------------------
 
-CanvasView::CanvasView(Qt::WFlags f):
+CanvasView::CanvasView(Qt::WindowFlags f):
     QMainWindow(0, f)
 {
     iDoc = 0;
--- a/canvasview.h	Mon Feb 23 18:38:49 2015 -0800
+++ b/canvasview.h	Wed Nov 04 10:34:25 2015 -0800
@@ -70,7 +70,7 @@
     Q_OBJECT
 
     public:
-                    CanvasView(Qt::WFlags f=0);
+                    CanvasView(Qt::WindowFlags f=0);
 
         void        setView(int pageNo, int ViewNo);
         void        fitBox(const Rect &box);
--- a/mainwindow.cpp	Mon Feb 23 18:38:49 2015 -0800
+++ b/mainwindow.cpp	Wed Nov 04 10:34:25 2015 -0800
@@ -40,7 +40,7 @@
 // --------------------------------------------------------------------
 
 MainWindow::
-MainWindow(CanvasView* cv, Qt::WFlags f):
+MainWindow(CanvasView* cv, Qt::WindowFlags f):
     QMainWindow(0, f), canvas_view(cv)
 {
     setupUi(this);
--- a/mainwindow.h	Mon Feb 23 18:38:49 2015 -0800
+++ b/mainwindow.h	Wed Nov 04 10:34:25 2015 -0800
@@ -64,7 +64,7 @@
         };
 
     public:
-        MainWindow(CanvasView* cv, Qt::WFlags f=0);
+        MainWindow(CanvasView* cv, Qt::WindowFlags f=0);
 
         // void zoom(int delta);
         void nextView(int delta);