View | Details | Raw Unified | Return to bug 22144
Collapse All | Expand All

(-)a/qtiplot/src/table/Table.cpp (-1 / +15 lines)
Lines 2893-2898 bool Table::eventFilter(QObject *object, QEvent *e) Link Here
2893
				return true;
2893
				return true;
2894
			}
2894
			}
2895
2895
2896
			if (me->modifiers() == Qt::ShiftModifier){
2897
				int col = hheader->sectionAt (me->pos().x() + hheader->offset());
2898
				for (int i = selectedCol; i <= col; i++)
2899
					d_table->selectColumn(i);
2900
				return true;
2901
			}
2902
2896
			QRect r = hheader->sectionRect(col);
2903
			QRect r = hheader->sectionRect(col);
2897
			r = QRect(r.topLeft(), QSize(r.width(), 10));
2904
			r = QRect(r.topLeft(), QSize(r.width(), 10));
2898
			if (d_table->isColumnSelected(col, true) && r.contains(me->pos())){
2905
			if (d_table->isColumnSelected(col, true) && r.contains(me->pos())){
Lines 2904-2912 bool Table::eventFilter(QObject *object, QEvent *e) Link Here
2904
				drag->exec();
2911
				drag->exec();
2905
				return true;
2912
				return true;
2906
			}
2913
			}
2914
2915
			selectedCol = hheader->sectionAt (me->pos().x() + hheader->offset());
2916
			d_table->clearSelection();
2917
			d_table->selectColumn (selectedCol);
2918
			d_table->setCurrentCell (0, selectedCol);
2919
			setActiveWindow();
2920
			return false;
2907
		}
2921
		}
2908
2922
2909
		if (selectedColsNumber() <= 1) {
2923
		if (me->button() == Qt::RightButton && selectedColsNumber() <= 1){
2910
			selectedCol = hheader->sectionAt (me->pos().x() + hheader->offset());
2924
			selectedCol = hheader->sectionAt (me->pos().x() + hheader->offset());
2911
			d_table->clearSelection();
2925
			d_table->clearSelection();
2912
			d_table->selectColumn (selectedCol);
2926
			d_table->selectColumn (selectedCol);

Return to bug 22144