[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Tue Jun 8 21:23:42 CEST 2004
CVS commit by arwalker:
Some FIXMEs and compiler warnings.
M +7 -13 kst2dplot.cpp 1.60
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.59:1.60
@@ -1990,5 +1990,5 @@ void Kst2DPlot::mousePressEvent(QWidget
tie_rect = GetTieBoxRegion();
plot_and_axis_rect = GetPlotAndAxisRegion();
-// kdDebug() << e->pos() << " " << win_rect << " " << plot_rect << endl;
+ //kdDebug() << e->pos() << " " << win_rect << " " << plot_rect << endl;
if (tie_rect.contains(e->pos())) {
/* FIXME
@@ -2013,19 +2013,9 @@ void Kst2DPlot::mousePressEvent(QWidget
return;
} else if (plot_and_axis_rect.contains(e->pos())) {
- ParentApp->getPlotDialog()->show_I();
- ParentApp->getPlotDialog()->_window->setCurrentText(static_cast<KstViewWidget*>(view)->viewObject()->tagName());
- // FIXME: need to update Select first? - let's clean this up and make a
- // member function to do this for us
- ParentApp->getPlotDialog()->Select->setCurrentText(tagName());
- ParentApp->getPlotDialog()->update();
+ ParentApp->getPlotDialog()->show_I(static_cast<KstViewWidget*>(view)->viewObject()->tagName(), tagName());
ParentApp->getPlotDialog()->TabWidget->setCurrentPage(LIMITS_TAB);
return;
} else if (win_rect.contains(e->pos())) {
- ParentApp->getPlotDialog()->show_I();
- ParentApp->getPlotDialog()->_window->setCurrentText(static_cast<KstViewWidget*>(view)->viewObject()->tagName());
- // FIXME: need to update Select first? - let's clean this up and make a
- // member function to do this for us
- ParentApp->getPlotDialog()->Select->setCurrentText(tagName());
- ParentApp->getPlotDialog()->update();
+ ParentApp->getPlotDialog()->show_I(static_cast<KstViewWidget*>(view)->viewObject()->tagName(), tagName());
ParentApp->getPlotDialog()->TabWidget->setCurrentPage(LABELS_TAB);
return;
@@ -2684,4 +2674,6 @@ KstMouseModeType Kst2DPlot::globalZoomTy
void Kst2DPlot::dragEnterEvent(QWidget *view, QDragEnterEvent *e) {
+ Q_UNUSED( view )
+
e->accept(e->provides("application/x-kst-label-number") ||
e->provides("application/x-kst-legend"));
@@ -2690,4 +2682,6 @@ void Kst2DPlot::dragEnterEvent(QWidget *
void Kst2DPlot::dragMoveEvent(QWidget *view, QDragMoveEvent *e) {
+ Q_UNUSED( view )
+
e->accept(e->provides("application/x-kst-label-number") ||
e->provides("application/x-kst-legend"));
More information about the Kst
mailing list