About copy version info: fix styles

This commit is contained in:
shenleban tongying 2022-11-19 05:06:30 -05:00
parent b7e1648356
commit c08d584233
3 changed files with 21 additions and 26 deletions

View file

@ -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
);
});

View file

@ -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:

View file

@ -3226,7 +3226,7 @@ void MainWindow::visitForum()
void MainWindow::showAbout()
{
About about(&dictionaries, this);
About about(this, &dictionaries);
about.show();
about.exec();