Rename main window class
This commit is contained in:
parent
2b847a3e78
commit
e506845fdb
@ -3,8 +3,8 @@
|
|||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
#include "AdaptiveBrightness.hpp"
|
|
||||||
#include "log_to_file.hpp"
|
#include "log_to_file.hpp"
|
||||||
|
#include "main_window.hpp"
|
||||||
#include "sensor_driver.hpp"
|
#include "sensor_driver.hpp"
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
@ -16,7 +16,7 @@ int main(int argc, char* argv[])
|
|||||||
SensorDriver sensorDriver;
|
SensorDriver sensorDriver;
|
||||||
|
|
||||||
QApplication application(argc, argv);
|
QApplication application(argc, argv);
|
||||||
AdaptiveBrightness mainWindow;
|
MainWindow mainWindow;
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
return application.exec();
|
return application.exec();
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
#include "AdaptiveBrightness.hpp"
|
#include "main_window.hpp"
|
||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
AdaptiveBrightness::AdaptiveBrightness(QWidget* parent) : QMainWindow(parent), m_currentIcon(0), m_visibility(true)
|
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), m_currentIcon(0), m_visibility(true)
|
||||||
{
|
{
|
||||||
qDebug("Creating main window");
|
qDebug("Creating main window");
|
||||||
|
|
||||||
@ -42,18 +42,18 @@ AdaptiveBrightness::AdaptiveBrightness(QWidget* parent) : QMainWindow(parent), m
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_timer = new QTimer(this);
|
m_timer = new QTimer(this);
|
||||||
connect(m_timer, &QTimer::timeout, this, &AdaptiveBrightness::nextIcon);
|
connect(m_timer, &QTimer::timeout, this, &MainWindow::nextIcon);
|
||||||
m_timer->start(500);
|
m_timer->start(500);
|
||||||
|
|
||||||
qDebug("Tray icon update timer started");
|
qDebug("Tray icon update timer started");
|
||||||
}
|
}
|
||||||
|
|
||||||
AdaptiveBrightness::~AdaptiveBrightness()
|
MainWindow::~MainWindow()
|
||||||
{
|
{
|
||||||
qDebug("Destroying main window");
|
qDebug("Destroying main window");
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdaptiveBrightness::loadIcons()
|
void MainWindow::loadIcons()
|
||||||
{
|
{
|
||||||
qDebug("Loading icons");
|
qDebug("Loading icons");
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ void AdaptiveBrightness::loadIcons()
|
|||||||
qDebug("Icons loaded");
|
qDebug("Icons loaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdaptiveBrightness::nextIcon()
|
void MainWindow::nextIcon()
|
||||||
{
|
{
|
||||||
qDebug("Cycling to next icon");
|
qDebug("Cycling to next icon");
|
||||||
|
|
@ -12,12 +12,12 @@
|
|||||||
|
|
||||||
#include "ui_AdaptiveBrightness.h"
|
#include "ui_AdaptiveBrightness.h"
|
||||||
|
|
||||||
class AdaptiveBrightness : public QMainWindow {
|
class MainWindow : public QMainWindow {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AdaptiveBrightness(QWidget* parent = nullptr);
|
MainWindow(QWidget* parent = nullptr);
|
||||||
~AdaptiveBrightness();
|
~MainWindow();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void loadIcons();
|
void loadIcons();
|
Loading…
Reference in New Issue
Block a user