mirror of https://github.com/CGAL/cgal
Laurent Rineau: group of warning fixes
This commit is contained in:
parent
c2c39cfefa
commit
38a3ea518f
|
|
@ -31,4 +31,4 @@ void Qt_widget_movepoint_helper::move_point() { move_pointi(); };
|
|||
|
||||
#include "Qt_widget_move_list_point.moc"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
//constructor
|
||||
Qt_widget_move_list_point(std::list<Point>* l, const QCursor c=QCursor(Qt::crossCursor)) :
|
||||
cursor(c), l_of_p(l), on_first(FALSE)
|
||||
on_first(FALSE), cursor(c), l_of_p(l)
|
||||
{
|
||||
popup1 = new QPopupMenu( widget, 0);
|
||||
popup1->insertItem("Delete Point", this, SLOT(delete_point()));
|
||||
|
|
|
|||
|
|
@ -31,4 +31,4 @@ void Qt_widget_movepoint_helper::move_point() { move_pointi(); };
|
|||
|
||||
#include "Qt_widget_move_list_point.moc"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
//constructor
|
||||
Qt_widget_move_list_point(std::list<Point>* l, const QCursor c=QCursor(Qt::crossCursor)) :
|
||||
cursor(c), l_of_p(l), on_first(FALSE)
|
||||
on_first(FALSE), cursor(c), l_of_p(l)
|
||||
{
|
||||
popup1 = new QPopupMenu( widget, 0);
|
||||
popup1->insertItem("Delete Point", this, SLOT(delete_point()));
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// file : demo/Qt_widget/Min_ellipse_2/Qt_widget_move_point.C
|
||||
// file : demo/Qt_widget/Max_k-gon/Qt_widget_move_point.C
|
||||
// package : QT_window
|
||||
// author(s) : Radu Ursu
|
||||
// release :
|
||||
|
|
@ -31,4 +31,4 @@ void Qt_widget_movepoint_helper::move_point() { move_pointi(); };
|
|||
|
||||
#include "Qt_widget_move_list_point.moc"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
//
|
||||
// file : demo/Qt_widget/Min_ellipse_2/Qt_widget_move_list_point.h
|
||||
// file : demo/Qt_widget/Max_k-gon/Qt_widget_move_list_point.h
|
||||
// package : Qt_widget
|
||||
// author(s) : Radu Ursu
|
||||
// release :
|
||||
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
//constructor
|
||||
Qt_widget_move_list_point(std::list<Point>* l, const QCursor c=QCursor(Qt::crossCursor)) :
|
||||
cursor(c), l_of_p(l), on_first(FALSE)
|
||||
on_first(FALSE), cursor(c), l_of_p(l)
|
||||
{
|
||||
popup1 = new QPopupMenu( widget, 0);
|
||||
popup1->insertItem("Delete Point", this, SLOT(delete_point()));
|
||||
|
|
@ -133,7 +133,7 @@ private:
|
|||
*widget << Point(x, y);
|
||||
l_of_p->remove(old_point);
|
||||
l_of_p->push_back(Point(x, y));
|
||||
widget->redraw(); //redraw the layers
|
||||
widget->redraw(); //redraw the scenes
|
||||
old_point = Point(x, y);
|
||||
}
|
||||
};
|
||||
|
|
@ -151,7 +151,7 @@ private:
|
|||
|
||||
void delete_pointi(){
|
||||
l_of_p->remove(current_v);
|
||||
widget->redraw(); //redraw the layers
|
||||
widget->redraw(); //redraw the scenes
|
||||
};
|
||||
void move_pointi(){
|
||||
on_first = TRUE;
|
||||
|
|
|
|||
|
|
@ -31,4 +31,4 @@ void Qt_widget_movepoint_helper::move_point() { move_pointi(); };
|
|||
|
||||
#include "Qt_widget_move_list_point.moc"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public:
|
|||
|
||||
//constructor
|
||||
Qt_widget_move_list_point(std::list<Point>* l, const QCursor c=QCursor(Qt::crossCursor)) :
|
||||
cursor(c), l_of_p(l), on_first(FALSE)
|
||||
on_first(FALSE), cursor(c), l_of_p(l)
|
||||
{
|
||||
popup1 = new QPopupMenu( widget, 0);
|
||||
popup1->insertItem("Delete Point", this, SLOT(delete_point()));
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public:
|
|||
typedef typename T::Vertex_handle Vertex_handle;
|
||||
typedef typename T::Geom_traits::FT FT;
|
||||
|
||||
Qt_layer_nearest_vertex(T &t) : first_time(TRUE), tr(t){};
|
||||
Qt_layer_nearest_vertex(T &t) : tr(t), first_time(TRUE) {};
|
||||
|
||||
void draw(Qt_widget &widget){first_time = TRUE;};
|
||||
void mouseMoveEvent(QMouseEvent *e, Qt_widget &widget)
|
||||
|
|
|
|||
|
|
@ -67,10 +67,6 @@ public:
|
|||
widget->painter().drawPolyline(qpoints_old);
|
||||
widget->setRasterOp(old_rasterop);
|
||||
widget->do_paint();
|
||||
FT
|
||||
x=static_cast<FT>(widget->x_real(e->x())),
|
||||
y=static_cast<FT>(widget->y_real(e->y()));
|
||||
|
||||
|
||||
widget->new_object(make_object(poly));
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,4 @@ static char *polygon_xpm[] = {
|
|||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue