![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <guiutil.h>
Public Member Functions | |
TableViewLastColumnResizingFixer (QTableView *table, int lastColMinimumWidth, int allColsMinimumWidth, QObject *parent) | |
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, | ||
QObject * | parent | ||
) |
Initializes all internal variables and prepares the the resize modes of the last 2 columns of the table and
Definition at line 618 of file guiutil.cpp.
|
private |
Definition at line 569 of file guiutil.cpp.
Referenced by on_sectionResized().
|
private |
Definition at line 514 of file guiutil.cpp.
Referenced by adjustTableColumnsWidth(), on_geometriesChanged(), and stretchColumnWidth().
|
private |
Definition at line 521 of file guiutil.cpp.
Referenced by adjustTableColumnsWidth(), on_geometriesChanged(), and stretchColumnWidth().
|
private |
Definition at line 554 of file guiutil.cpp.
Referenced by adjustTableColumnsWidth(), on_geometriesChanged(), on_sectionResized(), and stretchColumnWidth().
|
private |
Definition at line 544 of file guiutil.cpp.
Referenced by adjustTableColumnsWidth(), getAvailableWidthForColumn(), and on_geometriesChanged().
|
privateslot |
Definition at line 604 of file guiutil.cpp.
Referenced by connectViewHeadersSignals(), and disconnectViewHeadersSignals().
|
privateslot |
Definition at line 592 of file guiutil.cpp.
Referenced by connectViewHeadersSignals(), and disconnectViewHeadersSignals().
|
private |
Definition at line 538 of file guiutil.cpp.
Referenced by adjustTableColumnsWidth(), on_geometriesChanged(), on_sectionResized(), and stretchColumnWidth().
|
private |
Definition at line 529 of file guiutil.cpp.
Referenced by TableViewLastColumnResizingFixer().
void GUIUtil::TableViewLastColumnResizingFixer::stretchColumnWidth | ( | int | column | ) |
Definition at line 584 of file guiutil.cpp.
Referenced by ReceiveCoinsDialog::resizeEvent(), and TransactionView::resizeEvent().
|
private |
Definition at line 168 of file guiutil.h.
Referenced by TableViewLastColumnResizingFixer().
|
private |
Definition at line 170 of file guiutil.h.
Referenced by getColumnsWidth(), and TableViewLastColumnResizingFixer().
|
private |
Definition at line 169 of file guiutil.h.
Referenced by adjustTableColumnsWidth(), and TableViewLastColumnResizingFixer().
|
private |
Definition at line 167 of file guiutil.h.
Referenced by getAvailableWidthForColumn().
|
private |
Definition at line 171 of file guiutil.h.
Referenced by adjustTableColumnsWidth(), on_geometriesChanged(), and TableViewLastColumnResizingFixer().
|
private |
Definition at line 166 of file guiutil.h.
Referenced by adjustTableColumnsWidth(), connectViewHeadersSignals(), disconnectViewHeadersSignals(), getAvailableWidthForColumn(), getColumnsWidth(), on_geometriesChanged(), resizeColumn(), setViewHeaderResizeMode(), and TableViewLastColumnResizingFixer().