[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Nov 9 03:20:30 CET 2005
SVN commit 479064 by staikos:
cleanup dead code
M +0 -64 kst2dplot.cpp
M +0 -5 kst2dplot.h
--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #479063:479064
@@ -3810,8 +3810,6 @@
// find where the mouse was to determine which mode to be in which button
if (e->button() == Qt::LeftButton) {
- _draggablePoint = e->pos();
-
win_rect = GetWinRegion();
plot_rect = GetPlotRegion();
tie_rect = GetTieBoxRegion();
@@ -5018,68 +5016,6 @@
}
-// void Kst2DPlot::dragEnterEvent(QWidget *view, QDragEnterEvent *e) {
-// e->accept(e->source() == view && e->provides("application/x-kst-legend") );
-// }
-//
-//
-// void Kst2DPlot::dragMoveEvent(QWidget *view, QDragMoveEvent *e) {
-// e->accept(e->source() == view && e->provides("application/x-kst-legend"));
-// }
-//
-//
-// void Kst2DPlot::dropEvent(QWidget *view, QDropEvent *e) {
-// QString windowname;
-// QString plotname;
-// QString curvename;
-// QPoint hs;
-// bool accept = false;
-//
-// _mouse.tracker = e->pos();
-//
-// if (e->provides("application/x-kst-legend")) {
-// if (e->source() == view) {
-// QDataStream ds(e->encodedData("application/x-kst-legend"), IO_ReadOnly);
-//
-// ds >> windowname >> plotname >> hs;
-//
-// if (GetPlotRegion().contains(e->pos())) {
-// KstApp *app = KstApp::inst();
-// KstViewWindow *w = dynamic_cast<KstViewWindow*>(app->findWindow(windowname));
-// if (w) {
-// Kst2DPlotPtr p = kst_cast<Kst2DPlot>(w->view()->findChild(plotname));
-//
-// if (p.data() == this) {
-// KstLegendPtr l = Legend;
-//
-// QPoint pos = e->pos() - GetWinRegion().topLeft() - hs;
-// QRect rectBounding = l->extents().boundingRect();
-// pos.setX(pos.x() - rectBounding.left());
-// pos.setY(pos.y() - rectBounding.top());
-// QSize divisor = GetPlotRegion().size();
-// l->offsetRelPosition(float(pos.x())/divisor.width(), float(pos.y())/divisor.height());
-// accept = true;
-//
-// if (!_hasFocus) {
-// QPainter p(view);
-// w->view()->forEachChild<QPainter&>(&Kst2DPlot::removeFocus, p);
-// setHasFocus(true);
-// }
-// setDirty();
-// static_cast<KstViewWidget*>(view)->update(geometry());
-// }
-// }
-// }
-// }
-// }
-//
-// if (accept) {
-// KstApp::inst()->document()->setModified();
-// }
-// e->accept(accept);
-// }
-//
-
void Kst2DPlot::copy() {
// Don't set the selection because while it does make sense, it
// is far too easy to swipe over Kst while trying to paste a selection
--- trunk/extragear/graphics/kst/kst/kst2dplot.h #479063:479064
@@ -209,9 +209,6 @@
virtual void mouseReleaseEvent(QWidget *view, QMouseEvent *e);
virtual void keyPressEvent(QWidget *view, QKeyEvent *e);
virtual void keyReleaseEvent(QWidget *view, QKeyEvent *e);
-/* virtual void dragEnterEvent(QWidget *view, QDragEnterEvent *e);
- virtual void dropEvent(QWidget *view, QDropEvent *e);
- virtual void dragMoveEvent(QWidget *view, QDragMoveEvent *e);*/
virtual void wheelEvent(QWidget *view, QWheelEvent *e);
virtual void setHasFocus(bool hasFocus);
virtual void removeFocus(QPainter& p);
@@ -520,8 +517,6 @@
void adjustFontSize();
KstMouse _mouse;
- QPoint _draggablePoint;
-
QMap<int, QString> _curveEditMap, _curveFitMap, _curveRemoveMap, _objectEditMap;
QMap<int, QGuardedPtr<Kst2DPlot> > _plotMap;
More information about the Kst
mailing list