pcp
[Top] [All Lists]

Re: [pcp] PCP Updates: RHBZ 1348349: pmchart(1): Table of metrics, insta

To: Dave Brolley <brolley@xxxxxxxxxx>
Subject: Re: [pcp] PCP Updates: RHBZ 1348349: pmchart(1): Table of metrics, instances and values
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Fri, 7 Oct 2016 03:06:20 -0400 (EDT)
Cc: PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <57F68FF4.4080809@xxxxxxxxxx>
References: <57F68FF4.4080809@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: +MjPrxjgeblb7aI9tFjntZynleFdFg==
Thread-topic: PCP Updates: RHBZ 1348349: pmchart(1): Table of metrics, instances and values
Hi Dave,

----- Original Message -----
> This is my first Qt creation using the qt designer tool. A review of all
> aspects is definitely warranted.
> 

Nice!  Getting there - handful of things I came across trying it ...

- there's a UI interaction "surprise" when clicking on a chart, while
multiple charts active (e.g. pmchart -c CPU -c Netbytes) - it pops up
multiple dialogs at once.  Should always only be one - the clicked-on
chart's metrics.

- should be using a QDialog here rather than a new QMainWindow I think
(allows dialog-OK button, which we also need here) - we don't need the
menu bar, status bar, etc of a QMainWindow in a QDialog;

- (re-)sizing of dialogs I always find tricky, and when I resize this
one, everything stays "static" - ideally the widgets would all resize
with the dialog window.  Have a look at the way saveviewdialog.ui does
this, e.g. when clicking+dragging on the window-manager-window see how
everything reshapes.

Attached patch switched to using QDialog, adds an OK button, and sets
up the table headings in the .ui file ... but breaks a bunch too.  And
I'm not sure how to get the resizing working correctly like we have in
saveviewdialog.ui - maybe you can see what I've missed there?  (also,
in designer you can use Ctrl+r - Run - to quickly test any changes to
a new window, if you hadn't found that already).

cheers.

--
Nathan

Attachment: broken-dialog.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>