From: Uwe Hermann Date: Thu, 14 Mar 2019 20:40:52 +0000 (+0100) Subject: DecoderSelector: Set alignment=top for the PD info text. X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=a7961b367d35dc1d3f32b24b0c703e76b6a3b2d5 DecoderSelector: Set alignment=top for the PD info text. This looks nicer if the text area is resized to be larger than the PD info text itself. --- diff --git a/pv/subwindows/decoder_selector/subwindow.cpp b/pv/subwindows/decoder_selector/subwindow.cpp index a201791f..c8e0e1c1 100644 --- a/pv/subwindows/decoder_selector/subwindow.cpp +++ b/pv/subwindows/decoder_selector/subwindow.cpp @@ -110,6 +110,7 @@ SubWindow::SubWindow(Session& session, QWidget* parent) : info_box_layout->addWidget(info_label_header_); info_box_layout->addWidget(info_label_body_); info_box_layout->addWidget(info_label_footer_); + info_box_layout->setAlignment(Qt::AlignTop); Qt::TextInteractionFlags flags = Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard; info_label_header_->setWordWrap(true); info_label_header_->setTextInteractionFlags(flags);