Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.h
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
/** | /** | ||||
* Makes a QTableView last column feel as if it was being resized from its left | * Makes a QTableView last column feel as if it was being resized from its left | ||||
* border. | * border. | ||||
* Also makes sure the column widths are never larger than the table's viewport. | * 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 | * In Qt, all columns are resizable from the right, but it's not intuitive | ||||
* resizing the last column from the right. | * resizing the last column from the right. | ||||
* Usually our second to last columns behave as if stretched, and when on strech | * Usually our second to last columns behave as if stretched, and when on | ||||
* mode, columns aren't resizable interactively or programmatically. | * stretch mode, columns aren't resizable interactively or programmatically. | ||||
* | * | ||||
* This helper object takes care of this issue. | * This helper object takes care of this issue. | ||||
* | * | ||||
*/ | */ | ||||
class TableViewLastColumnResizingFixer : public QObject { | class TableViewLastColumnResizingFixer : public QObject { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |