佛祖不出警告啦!
This commit is contained in:
1 parent
ca16b374cb
commit
5317083b36
3 files changed
+3
-4
No files matched your search
@@ -17,9 +17,10 @@ TEMPLATE = app
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
# deprecated API in order to know how to port your code away from it.
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
QMAKE_CXXFLAGS += -Wno-comment # 防止佛祖出警告
|
||||
|
||||
# You can also make your code fail to compile if you use deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
# In order to do so, the following line.
|
||||
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <QLayout>
|
||||
#include <QLabel>
|
||||
#include "ParkingLotWidget.h"
|
||||
#include "MyEvent.h"
|
||||
class ParkingLotWidget;
|
||||
|
||||
class ParkingSpaceWidget: public QWidget
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#include "ParkingLotWidget.h"
|
||||
#include "ParkingSpaceWidget.h"
|
||||
#include "path.h"
|
||||
#include "MyEvent.h"
|
||||
#include <QDebug>
|
||||
#include <QPainter>
|
||||
#include <QPoint>
|
||||
@@ -100,7 +99,7 @@ ParkingLotGraph::Node::Type getType(int n) {
|
||||
|
||||
void ParkingLotManager::drawPath(int n1, int n2)
|
||||
{
|
||||
Path *p = m_graph[1]->finaPath(getType(n1), n1, getType(n2), n2);
|
||||
Path *p = m_graph[m_current_floor]->finaPath(getType(n1), n1, getType(n2), n2);
|
||||
for(int i = 1; i < p->pointsCount(); i++) {
|
||||
QLineF line(p->getPoint(i-1).point, p->getPoint(i).point);
|
||||
m_scene->addLine(line);
|
||||
|
||||
Reference in new issue
Block a user