ALT Linux Bugzilla
– Attachment 4036 Details for
Bug 22144
Пара исправлений
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Выделение группы колонок с нажатым шифтом
qtiplot-0.9.7.10-shift_columns_selection.patch (text/plain), 1.55 KB, created by
Yury Aliaev
on 2009-11-03 15:18:17 MSK
(
hide
)
Description:
Выделение группы колонок с нажатым шифтом
Filename:
MIME Type:
Creator:
Yury Aliaev
Created:
2009-11-03 15:18:17 MSK
Size:
1.55 KB
patch
obsolete
>commit b8de5d03a3a2c4f41cc4e3471ecfaeb2084e8bf4 >Author: ion_vasilief <ion_vasilief@5a6a7de5-fb12-0410-b871-c33778c25c60> >Date: Sat Oct 24 06:25:51 2009 +0000 > > Improved mouse interaction with table horizontal header. > > git-svn-id: svn://svn.berlios.de/qtiplot/trunk@1438 5a6a7de5-fb12-0410-b871-c33778c25c60 > >diff --git a/qtiplot/src/table/Table.cpp b/qtiplot/src/table/Table.cpp >index c9d8867..f7ab7fd 100755 >--- a/qtiplot/src/table/Table.cpp >+++ b/qtiplot/src/table/Table.cpp >@@ -2893,6 +2893,13 @@ bool Table::eventFilter(QObject *object, QEvent *e) > return true; > } > >+ if (me->modifiers() == Qt::ShiftModifier){ >+ int col = hheader->sectionAt (me->pos().x() + hheader->offset()); >+ for (int i = selectedCol; i <= col; i++) >+ d_table->selectColumn(i); >+ return true; >+ } >+ > QRect r = hheader->sectionRect(col); > r = QRect(r.topLeft(), QSize(r.width(), 10)); > if (d_table->isColumnSelected(col, true) && r.contains(me->pos())){ >@@ -2904,9 +2911,16 @@ bool Table::eventFilter(QObject *object, QEvent *e) > drag->exec(); > return true; > } >+ >+ selectedCol = hheader->sectionAt (me->pos().x() + hheader->offset()); >+ d_table->clearSelection(); >+ d_table->selectColumn (selectedCol); >+ d_table->setCurrentCell (0, selectedCol); >+ setActiveWindow(); >+ return false; > } > >- if (selectedColsNumber() <= 1) { >+ if (me->button() == Qt::RightButton && selectedColsNumber() <= 1){ > selectedCol = hheader->sectionAt (me->pos().x() + hheader->offset()); > d_table->clearSelection(); > d_table->selectColumn (selectedCol);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22144
:
4035
| 4036