goldendict-ng/initializing.hh
yifang.xiao 0365015ac6 clean code:
remove "#if QT_VERSION >= QT_VERSION_CHECK( 5, 0, 0 )" check ,the check should always be true based on current situation.
2021-12-13 22:45:33 +08:00

58 lines
940 B
C++

/* This file is (c) 2008-2012 Konstantin Isakov <ikm@goldendict.org>
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
#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
public:
Initializing( QWidget * parent, bool showOnStartup );
#if defined( Q_OS_WIN32 )
~Initializing();
#endif
public slots:
void indexing( QString const & dictionaryName );
private:
virtual void closeEvent( QCloseEvent * );
virtual void reject();
#if defined( Q_OS_WIN32 )
QStyle * oldBarStyle;
#endif
Ui::Initializing ui;
};
#endif