Massive UI revamping (v7): unify top bar size to 22px and correct the getAdditionaHeight methods. Part of #1209

pull/1205/head
f4exb 2022-04-26 19:44:14 +02:00
rodzic 0387467380
commit 9be0776d32
5 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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");

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -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();