chore: update the file

This commit is contained in:
x-tools 2024-05-01 12:18:15 +08:00
parent f370b0f442
commit ddf8c7b409
4 changed files with 24 additions and 0 deletions

View File

@ -13,7 +13,11 @@
#include "xToolsSettings.h"
Application::Application(int argc, char **argv)
#ifdef X_TOOLS_ENABLE_PRIVATE_MODULE
: xToolsPrivateApplication(argc, argv)
#else
: xToolsApplication(argc, argv)
#endif
{
// Setup ui language.
const QString language = xToolsSettings::instance()->language();

View File

@ -8,9 +8,17 @@
**************************************************************************************************/
#pragma once
#ifdef X_TOOLS_ENABLE_PRIVATE_MODULE
#include "xToolsPrivateApplication.h"
#else
#include "xToolsApplication.h"
#endif
#ifdef X_TOOLS_ENABLE_PRIVATE_MODULE
class Application : public xToolsPrivateApplication
#else
class Application : public xToolsApplication
#endif
{
Q_OBJECT
public:

View File

@ -49,7 +49,11 @@
#endif
MainWindow::MainWindow(QWidget* parent)
#ifdef X_TOOLS_ENABLE_PRIVATE_MODULE
: xToolsPrivateMainWindow(parent)
#else
: xToolsMainWindow(parent)
#endif
{
#ifdef Q_OS_WIN
if (QSystemTrayIcon::isSystemTrayAvailable()) {

View File

@ -11,9 +11,17 @@
#include <QButtonGroup>
#include <QMetaEnum>
#ifdef X_TOOLS_ENABLE_PRIVATE_MODULE
#include "xToolsPrivateMainWindow.h"
#else
#include "xToolsMainWindow.h"
#endif
#ifdef X_TOOLS_ENABLE_PRIVATE_MODULE
class MainWindow : public xToolsPrivateMainWindow
#else
class MainWindow : public xToolsMainWindow
#endif
{
Q_OBJECT
public: