1
0
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:
copilot-swe-agent[bot] 2026-04-19 20:46:23 +00:00 committed by GitHub
parent ef335dd1ff
commit 19cc426948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View File

@ -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;
}

View File

@ -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>