mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-05-14 05:12:09 -04:00
feat: replace frequencyValue QLabel with FrequencyLabel custom widget (minimumSizeHint 50x10)
Agent-Logs-Url: https://github.com/srcejon/sdrangel/sessions/882a0465-b780-4bea-a664-422995cba8b7 Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
This commit is contained in:
parent
ef335dd1ff
commit
19cc426948
@ -40,6 +40,17 @@ class FeatureUISet;
|
||||
class FreqDisplay;
|
||||
class Feature;
|
||||
|
||||
/// QLabel subclass that always reports a small minimum size hint so that the
|
||||
/// FreqDisplayGUI window can be resized freely without the label preventing
|
||||
/// the window from being made small.
|
||||
class FrequencyLabel : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FrequencyLabel(QWidget *parent = nullptr) : QLabel(parent) {}
|
||||
QSize minimumSizeHint() const override { return QSize(50, 10); }
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class FreqDisplayGUI;
|
||||
}
|
||||
|
||||
@ -293,7 +293,7 @@ When in transparent mode:
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QLabel" name="frequencyValue">
|
||||
<widget class="FrequencyLabel" name="frequencyValue">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
@ -317,6 +317,11 @@ When in transparent mode:
|
||||
</widget>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>FrequencyLabel</class>
|
||||
<extends>QLabel</extends>
|
||||
<header>freqdisplaygui.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>RollupContents</class>
|
||||
<extends>QWidget</extends>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user