x-tools/Source/application.h
2024-03-19 13:59:02 +08:00

35 lines
958 B
C++

/***************************************************************************************************
* Copyright 2018-2024 Qsaker(qsaker@foxmail.com). All rights reserved.
*
* The file is encoded using "utf8 with bom", it is a part of QtSwissArmyKnife project.
*
* QtSwissArmyKnife is licensed according to the terms in the file LICENCE in the root of the source
* code directory.
**************************************************************************************************/
#ifndef APPLICATION_H
#define APPLICATION_H
#include <QApplication>
#include <QSplashScreen>
class Application : public QApplication
{
Q_OBJECT
public:
explicit Application(int argc, char **argv);
~Application() override = default;
void showSplashScreenMessage(const QString &msg);
signals:
void activeMainWindow();
private:
QSplashScreen *m_splashScreen{nullptr};
private:
static void setupPalette(const QString &fileName);
};
#endif