Re: [PATCH v2 04/23] kernel-shark-qt: Add Trace Viewer widget.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 16 Oct 2018 15:53:01 +0000
Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> wrote:

> +	if ((freeSpace = viewSize - tableSize) > 0) {
> +		_view.setColumnWidth(nColumns - 1, _view.columnWidth(nColumns - 1) +
> +						   freeSpace -
> +						   2); /* Just a little bit less space.
> +							* This will allow the scroll bar
> +							* to disappear when the widget
> +							* is extended to maximum. */

The above is rather ugly. Again, just have another patch on top that
converts this to:

	if ((freeSpace = viewSize - tableSize) > 0) {
		_view.setColumnWidth(nColumns - 1, _view.columnWidth(nColumns - 1) +
						   freeSpace - 2);
						       /* Just a little bit less space.
							* This will allow the scroll bar
							* to disappear when the widget
							* is extended to maximum. */
	}

-- Steve





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux