kopia lustrzana https://github.com/f4exb/sdrangel
Massive UI revamping (v7): unify top bar size to 22px and correct the getAdditionaHeight methods. Part of #1209
rodzic
0387467380
commit
9be0776d32
|
@ -95,7 +95,7 @@ protected:
|
|||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void resetContextMenuType() { m_contextMenuType = ContextMenuNone; }
|
||||
void updateIndexLabel();
|
||||
int getAdditionalHeight() const { return 25 + 22; }
|
||||
int getAdditionalHeight() const { return 22 + 22; }
|
||||
void setHighlighted(bool highlighted);
|
||||
|
||||
DeviceType m_deviceType;
|
||||
|
|
|
@ -54,6 +54,7 @@ DeviceGUI::DeviceGUI(QWidget *parent) :
|
|||
m_indexLabel->setToolTip("Device type and set index");
|
||||
|
||||
m_settingsButton = new QPushButton();
|
||||
m_settingsButton->setFixedSize(20, 20);
|
||||
QIcon settingsIcon(":/gear.png");
|
||||
m_settingsButton->setIcon(settingsIcon);
|
||||
m_settingsButton->setToolTip("Common settings");
|
||||
|
|
|
@ -83,7 +83,7 @@ protected:
|
|||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void resetContextMenuType() { m_contextMenuType = ContextMenuNone; }
|
||||
int getAdditionalHeight() const { return 25 + 22; }
|
||||
int getAdditionalHeight() const { return 22 + 22; }
|
||||
|
||||
DeviceType m_deviceType;
|
||||
int m_deviceSetIndex;
|
||||
|
|
|
@ -72,7 +72,7 @@ protected:
|
|||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void resetContextMenuType() { m_contextMenuType = ContextMenuNone; }
|
||||
int getAdditionalHeight() const { return 25 + 22; }
|
||||
int getAdditionalHeight() const { return 22 + 22; }
|
||||
|
||||
int m_featureIndex;
|
||||
QString m_helpURL;
|
||||
|
|
|
@ -97,7 +97,7 @@ MainSpectrumGUI::MainSpectrumGUI(GLSpectrum *spectrum, GLSpectrumGUI *spectrumGU
|
|||
// m_statusLabel->setToolTip("Spectrum status");
|
||||
|
||||
m_layouts = new QVBoxLayout();
|
||||
m_layouts->setContentsMargins(m_resizer.m_gripSize, 4, m_resizer.m_gripSize, 4);
|
||||
m_layouts->setContentsMargins(m_resizer.m_gripSize, m_resizer.m_gripSize, m_resizer.m_gripSize, m_resizer.m_gripSize);
|
||||
m_layouts->setSpacing(0);
|
||||
|
||||
m_topLayout = new QHBoxLayout();
|
||||
|
|
Ładowanie…
Reference in New Issue