mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 18:15:52 +08:00
removed some qDebug() outputs
This commit is contained in:
parent
ce21331200
commit
587f901e03
@ -852,7 +852,7 @@ void JKQtPlotter::openContextMenu(int x, int y)
|
|||||||
contextMenu->close();
|
contextMenu->close();
|
||||||
initContextMenu();
|
initContextMenu();
|
||||||
contextMenu->popup(mapToGlobal(QPoint(x,y)));
|
contextMenu->popup(mapToGlobal(QPoint(x,y)));
|
||||||
qDebug()<<" -> "<<mapToGlobal(QPoint(x,y))<<contextMenu->size()<<contextMenu->pos()<<contextMenu->parent();
|
//qDebug()<<" -> "<<mapToGlobal(QPoint(x,y))<<contextMenu->size()<<contextMenu->pos()<<contextMenu->parent();
|
||||||
emit contextMenuOpened(mouseContextX, mouseContextY, contextMenu);
|
emit contextMenuOpened(mouseContextX, mouseContextY, contextMenu);
|
||||||
//qDebug()<<"openContextMenu("<<x<<y<<contextMenu<<") ... DONE";
|
//qDebug()<<"openContextMenu("<<x<<y<<contextMenu<<") ... DONE";
|
||||||
}
|
}
|
||||||
@ -864,19 +864,19 @@ void JKQtPlotter::openSpecialContextMenu()
|
|||||||
|
|
||||||
void JKQtPlotter::openSpecialContextMenu(int x, int y)
|
void JKQtPlotter::openSpecialContextMenu(int x, int y)
|
||||||
{
|
{
|
||||||
qDebug()<<"openSpecialContextMenu("<<x<<y<<menuSpecialContextMenu<<")";
|
//qDebug()<<"openSpecialContextMenu("<<x<<y<<menuSpecialContextMenu<<")";
|
||||||
if (menuSpecialContextMenu) {
|
if (menuSpecialContextMenu) {
|
||||||
for (int i=0; i<menuSpecialContextMenu->actions().size(); i++) {
|
for (int i=0; i<menuSpecialContextMenu->actions().size(); i++) {
|
||||||
qDebug()<<" - "<<menuSpecialContextMenu->actions().at(i)->text();
|
//qDebug()<<" - "<<menuSpecialContextMenu->actions().at(i)->text();
|
||||||
}
|
}
|
||||||
mouseContextX=plotter->p2x(x/magnification);
|
mouseContextX=plotter->p2x(x/magnification);
|
||||||
mouseContextY=plotter->p2y((y-getPlotYOffset())/magnification);
|
mouseContextY=plotter->p2y((y-getPlotYOffset())/magnification);
|
||||||
menuSpecialContextMenu->close();
|
menuSpecialContextMenu->close();
|
||||||
menuSpecialContextMenu->popup(mapToGlobal(QPoint(x,y)));
|
menuSpecialContextMenu->popup(mapToGlobal(QPoint(x,y)));
|
||||||
menuSpecialContextMenu->resize(menuSpecialContextMenu->sizeHint());
|
menuSpecialContextMenu->resize(menuSpecialContextMenu->sizeHint());
|
||||||
qDebug()<<" -> "<<mapToGlobal(QPoint(x,y))<<menuSpecialContextMenu->size()<<menuSpecialContextMenu->pos()<<menuSpecialContextMenu->parent();
|
//qDebug()<<" -> "<<mapToGlobal(QPoint(x,y))<<menuSpecialContextMenu->size()<<menuSpecialContextMenu->pos()<<menuSpecialContextMenu->parent();
|
||||||
emit contextMenuOpened(mouseContextX, mouseContextY, menuSpecialContextMenu);
|
emit contextMenuOpened(mouseContextX, mouseContextY, menuSpecialContextMenu);
|
||||||
qDebug()<<"openSpecialContextMenu("<<x<<y<<menuSpecialContextMenu<<") ... DONE";
|
//qDebug()<<"openSpecialContextMenu("<<x<<y<<menuSpecialContextMenu<<") ... DONE";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user