]> sigrok.org Git - pulseview.git/commitdiff
DecoderSelector: Set alignment=top for the PD info text.
authorUwe Hermann <redacted>
Thu, 14 Mar 2019 20:40:52 +0000 (21:40 +0100)
committerUwe Hermann <redacted>
Thu, 14 Mar 2019 21:49:24 +0000 (22:49 +0100)
This looks nicer if the text area is resized to be larger than the
PD info text itself.

pv/subwindows/decoder_selector/subwindow.cpp

index a201791fd84886f52b4a1159309e6c1e66aea904..c8e0e1c16617a8dd642b8f6a054cb1d4785cdaf0 100644 (file)
@@ -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->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);
        Qt::TextInteractionFlags flags = Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard;
        info_label_header_->setWordWrap(true);
        info_label_header_->setTextInteractionFlags(flags);