mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: refactor code to conform to style
This commit is contained in:
parent
c969418497
commit
27f15f26ea
13
src/main.cc
13
src/main.cc
|
@ -254,10 +254,10 @@ int main( int argc, char ** argv )
|
|||
|
||||
QHotkeyApplication app( "GoldenDict", newArgc, newArgv );
|
||||
|
||||
app.setApplicationName( "GoldenDict" );
|
||||
app.setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );
|
||||
QHotkeyApplication::setApplicationName( "GoldenDict-ng" );
|
||||
QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );
|
||||
#ifndef Q_OS_MAC
|
||||
app.setWindowIcon( QIcon( ":/icons/programicon.png" ) );
|
||||
QHotkeyApplication::setWindowIcon( QIcon( ":/icons/programicon.png" ) );
|
||||
#endif
|
||||
|
||||
#if defined(USE_BREAKPAD)
|
||||
|
@ -292,11 +292,10 @@ int main( int argc, char ** argv )
|
|||
|
||||
#endif
|
||||
|
||||
QStringList localSchemes={"gdlookup","gdau","gico","qrcx","bres","bword","gdprg","gdvideo","gdpicture","gdtts","ifr", "entry"};
|
||||
const QStringList localSchemes =
|
||||
{ "gdlookup", "gdau", "gico", "qrcx", "bres", "bword", "gdprg", "gdvideo", "gdpicture", "gdtts", "ifr", "entry" };
|
||||
|
||||
for (int i = 0; i < localSchemes.size(); ++i)
|
||||
{
|
||||
QString localScheme=localSchemes.at(i);
|
||||
for ( const auto & localScheme : localSchemes ) {
|
||||
QWebEngineUrlScheme webUiScheme(localScheme.toLatin1());
|
||||
webUiScheme.setFlags(QWebEngineUrlScheme::SecureScheme |
|
||||
QWebEngineUrlScheme::LocalScheme |
|
||||
|
|
Loading…
Reference in a new issue