Compare commits
No commits in common. "5253dc1df66b6e2094e4d51b2dcc1fea908eaf0f" and "42043bcd55395536090c63ebfc27686e7fbc18ff" have entirely different histories.
5253dc1df6
...
42043bcd55
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include <QAbstractButton>
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
#include <QSlider>
|
#include <QSlider>
|
||||||
@ -117,7 +116,6 @@ void MainWindow::setupMonitorsTab()
|
|||||||
{
|
{
|
||||||
connect(m_ui.monitorDropdown, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &MainWindow::updateCurrentMonitorGUI);
|
connect(m_ui.monitorDropdown, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &MainWindow::updateCurrentMonitorGUI);
|
||||||
connect(m_ui.monitorEnumerateButton, &QAbstractButton::clicked, [this](bool) { enumMonitors(); });
|
connect(m_ui.monitorEnumerateButton, &QAbstractButton::clicked, [this](bool) { enumMonitors(); });
|
||||||
connect(m_ui.monitorResetButton, &QAbstractButton::clicked, [this](bool) { resetAllMonitorSettings(); });
|
|
||||||
|
|
||||||
setupLimitsSlider();
|
setupLimitsSlider();
|
||||||
setupOverallLimitsSlider();
|
setupOverallLimitsSlider();
|
||||||
@ -267,13 +265,6 @@ void MainWindow::setupCallbackTimer()
|
|||||||
qDebug(ltr("Callback timer started"));
|
qDebug(ltr("Callback timer started"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::resetAllMonitorSettings()
|
|
||||||
{
|
|
||||||
m_ui.monitorOverallMinBrightnessSlider->setValue(0);
|
|
||||||
m_ui.monitorOverallMaxBrightnessSlider->setValue(100);
|
|
||||||
m_ui.monitorOverallOverrideCheck->setCheckState(Qt::CheckState::Unchecked);
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::updateCurrentMonitorGUI(int index)
|
void MainWindow::updateCurrentMonitorGUI(int index)
|
||||||
{
|
{
|
||||||
if(index == -1) {
|
if(index == -1) {
|
||||||
|
|||||||
@ -43,8 +43,6 @@ class MainWindow : public QMainWindow {
|
|||||||
void setupTrayIcon();
|
void setupTrayIcon();
|
||||||
void setupCallbackTimer();
|
void setupCallbackTimer();
|
||||||
|
|
||||||
void resetAllMonitorSettings();
|
|
||||||
|
|
||||||
void updateCurrentMonitorGUI(int index);
|
void updateCurrentMonitorGUI(int index);
|
||||||
|
|
||||||
void updateState();
|
void updateState();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user