mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
About copy version info: fix styles
This commit is contained in:
parent
b7e1648356
commit
c08d584233
43
about.cc
43
about.cc
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "utils.hh"
|
||||
|
||||
About::About(std::vector< sptr< Dictionary::Class > > * dictonaries, QWidget * parent ): QDialog( parent )
|
||||
About::About( QWidget * parent, std::vector< sptr< Dictionary::Class > > * dictonaries ): QDialog( parent )
|
||||
{
|
||||
ui.setupUi( this );
|
||||
|
||||
|
@ -49,31 +49,26 @@ About::About(std::vector< sptr< Dictionary::Class > > * dictonaries, QWidget * p
|
|||
"Qt " + QLatin1String(qVersion()) + " " +
|
||||
QSysInfo::buildAbi() + "\n" +
|
||||
compilerVersion + "\n"
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
+ "Flags:"
|
||||
|
||||
#ifdef USE_XAPIAN
|
||||
+" USE_XAPIAN "
|
||||
#endif
|
||||
|
||||
#ifdef MAKE_ZIM_SUPPORT
|
||||
+" MAKE_ZIM_SUPPORT"
|
||||
#endif
|
||||
|
||||
#ifdef MAKE_EXTRA_TIFF_HANDLER
|
||||
+" MAKE_EXTRA_TIFF_HANDLER"
|
||||
#endif
|
||||
|
||||
#ifdef NO_EPWING_SUPPORT
|
||||
+" NO_EPWING_SUPPORT"
|
||||
#endif
|
||||
|
||||
#ifdef MAKE_CHINESE_CONVERSION_SUPPORT
|
||||
+" MAKE_CHINESE_CONVERSION_SUPPORT"
|
||||
#endif
|
||||
+ "Flags:"
|
||||
#ifdef USE_XAPIAN
|
||||
+" USE_XAPIAN "
|
||||
#endif
|
||||
|
||||
#ifdef MAKE_ZIM_SUPPORT
|
||||
+" MAKE_ZIM_SUPPORT"
|
||||
#endif
|
||||
|
||||
#ifdef MAKE_EXTRA_TIFF_HANDLER
|
||||
+" MAKE_EXTRA_TIFF_HANDLER"
|
||||
#endif
|
||||
|
||||
#ifdef NO_EPWING_SUPPORT
|
||||
+" NO_EPWING_SUPPORT"
|
||||
#endif
|
||||
|
||||
#ifdef MAKE_CHINESE_CONVERSION_SUPPORT
|
||||
+" MAKE_CHINESE_CONVERSION_SUPPORT"
|
||||
#endif
|
||||
);
|
||||
});
|
||||
|
||||
|
|
2
about.hh
2
about.hh
|
@ -14,7 +14,7 @@ class About: public QDialog
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
About(std::vector< sptr< Dictionary::Class > > * dictonaries, QWidget * parent = 0 );
|
||||
About( QWidget * parent, std::vector< sptr< Dictionary::Class > > * dictonaries);
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -3226,7 +3226,7 @@ void MainWindow::visitForum()
|
|||
|
||||
void MainWindow::showAbout()
|
||||
{
|
||||
About about(&dictionaries, this);
|
||||
About about(this, &dictionaries);
|
||||
|
||||
about.show();
|
||||
about.exec();
|
||||
|
|
Loading…
Reference in a new issue