StatusBarWidget: Use std::array where applicable

A fairly basic replacement to make the type of the array strongly typed.
This commit is contained in:
Lioncash
2019-08-28 00:13:40 -04:00
parent 1604cbeb70
commit 9c2c2be8eb
2 changed files with 13 additions and 9 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <array>
#include <QLabel>
#include <QMouseEvent>
#include <QPushButton>
@@ -24,7 +26,7 @@ class StatusBarWidget : public QStatusBar {
QLabel m_normalMessage;
QPushButton m_killButton;
FXButton m_fxButton;
QIcon m_volumeIcons[4];
std::array<QIcon, 4> m_volumeIcons;
QLabel m_volumeIcon;
QSlider m_volumeSlider;
QLabel m_aIcon;