fix: remove unused windowsstyle.cc(.hh)

fix #512
This commit is contained in:
Xiao YiFang 2023-04-17 23:30:43 +08:00 committed by xiaoyifang
parent 0fd1319013
commit 75b0a92be7
3 changed files with 1 additions and 49 deletions

View file

@ -5,23 +5,6 @@
#include "initializing.hh"
#include <QCloseEvent>
#if defined( Q_OS_WIN32 )
#include <qt_windows.h>
#include <QOperatingSystemVersion>
WindowsStyle::WindowsStyle()
{
style = QStyleFactory::create( "windows" );
}
WindowsStyle & WindowsStyle::instance()
{
static WindowsStyle ws;
return ws;
}
#endif
Initializing::Initializing( QWidget * parent, bool showOnStartup ): QDialog( parent )
{
ui.setupUi( this );
@ -62,10 +45,3 @@ void Initializing::reject()
{
}
#if defined( Q_OS_WIN32 )
Initializing::~Initializing()
{
}
#endif

View file

@ -4,29 +4,8 @@
#ifndef __INITIALIZING_HH_INCLUDED__
#define __INITIALIZING_HH_INCLUDED__
#include <QDialog>
#include "ui_initializing.h"
#if defined( Q_OS_WIN32 )
#include <QtWidgets/QStyleFactory>
class WindowsStyle {
public:
/// The class is a singleton.
static WindowsStyle & instance();
QStyle * getStyle()
{ return style; }
private:
WindowsStyle();
QStyle * style;
};
#endif
class Initializing: public QDialog
{
Q_OBJECT
@ -34,9 +13,6 @@ class Initializing: public QDialog
public:
Initializing( QWidget * parent, bool showOnStartup );
#if defined( Q_OS_WIN32 )
~Initializing();
#endif
public slots:

View file

@ -33,6 +33,7 @@
#include <QRunnable>
#include <QThreadPool>
#include <QSslConfiguration>
#include <QStyleFactory>
#include <set>
#include <map>
@ -45,7 +46,6 @@
#include "ui_authentication.h"
#include "resourceschemehandler.hh"
#include "keyboardstate.hh"
#include "globalregex.hh"
#ifdef Q_OS_MAC