![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Makes a QTableView last column feel as if it was being resized from its left border. More...
#include <guiutil.h>
Public Member Functions | |
| TableViewLastColumnResizingFixer (QTableView *table, int lastColMinimumWidth, int allColsMinimumWidth) | |
| Initializes all internal variables and prepares the the resize modes of the last 2 columns of the table and. More... | |
| void | stretchColumnWidth (int column) |
Private Slots | |
| void | on_sectionResized (int logicalIndex, int oldSize, int newSize) |
| void | on_geometriesChanged () |
Private Member Functions | |
| void | adjustTableColumnsWidth () |
| int | getAvailableWidthForColumn (int column) |
| int | getColumnsWidth () |
| void | connectViewHeadersSignals () |
| void | disconnectViewHeadersSignals () |
| void | setViewHeaderResizeMode (int logicalIndex, QHeaderView::ResizeMode resizeMode) |
| void | resizeColumn (int nColumnIndex, int width) |
Private Attributes | |
| QTableView * | tableView |
| int | lastColumnMinimumWidth |
| int | allColumnsMinimumWidth |
| int | lastColumnIndex |
| int | columnCount |
| int | secondToLastColumnIndex |
Makes a QTableView last column feel as if it was being resized from its left border.
Also makes sure the column widths are never larger than the table's viewport. In Qt, all columns are resizable from the right, but it's not intuitive resizing the last column from the right. Usually our second to last columns behave as if stretched, and when on strech mode, columns aren't resizable interactively or programatically.
This helper object takes care of this issue.
| GUIUtil::TableViewLastColumnResizingFixer::TableViewLastColumnResizingFixer | ( | QTableView * | table, |
| int | lastColMinimumWidth, | ||
| int | allColsMinimumWidth | ||
| ) |
Initializes all internal variables and prepares the the resize modes of the last 2 columns of the table and.
Definition at line 514 of file guiutil.cpp.
|
private |
Definition at line 468 of file guiutil.cpp.
|
private |
Definition at line 419 of file guiutil.cpp.
|
private |
Definition at line 426 of file guiutil.cpp.
|
private |
Definition at line 454 of file guiutil.cpp.
|
private |
|
privateslot |
Definition at line 501 of file guiutil.cpp.
|
privateslot |
Definition at line 490 of file guiutil.cpp.
|
private |
|
private |
Definition at line 434 of file guiutil.cpp.
| void GUIUtil::TableViewLastColumnResizingFixer::stretchColumnWidth | ( | int | column | ) |
Definition at line 482 of file guiutil.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17