diff --git a/icons/splash.png b/icons/splash.png new file mode 100644 index 00000000..03fde653 Binary files /dev/null and b/icons/splash.png differ diff --git a/resources.qrc b/resources.qrc index 282ad1e1..bcd2aa0f 100644 --- a/resources.qrc +++ b/resources.qrc @@ -89,5 +89,6 @@ icons/old-arrow.png icons/old-downarrow.png icons/custom_trans.svg + icons/splash.png diff --git a/src/initializing.cc b/src/initializing.cc index 1489d902..488f4a5f 100644 --- a/src/initializing.cc +++ b/src/initializing.cc @@ -8,6 +8,7 @@ Initializing::Initializing( QWidget * parent, bool showOnStartup ): QDialog( parent ) { ui.setupUi( this ); + setWindowFlags( Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMinimizeButtonHint ); @@ -28,7 +29,7 @@ Initializing::Initializing( QWidget * parent, bool showOnStartup ): QDialog( par void Initializing::indexing( QString const & dictionaryName ) { - ui.operation->setText( tr( "Please wait while indexing dictionary" ) ); + ui.operation->setText( tr( "Indexing..." ) ); ui.dictionary->setText( dictionaryName ); ui.dictionary->show(); ui.progressBar->show(); diff --git a/src/ui/initializing.ui b/src/ui/initializing.ui index 493119d1..2408e02f 100644 --- a/src/ui/initializing.ui +++ b/src/ui/initializing.ui @@ -1,65 +1,133 @@ - + + Initializing - - + + Qt::ApplicationModal - + 0 0 - 326 - 84 + 680 + 422 + + + 0 + 0 + + - 326 - 0 + 680 + 422 - + + + 680 + 422 + + + GoldenDict-ng - Initializing - + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + - - - Please wait while indexing dictionary + + + + 0 + 0 + - - Qt::AlignCenter + + + 680 + 382 + - - - - - - - 75 - true - - - - Dictionary Name - - + false - - Qt::AlignCenter + + - + + :/icons/splash.png + + true - - + + + + + + 0 + 0 + + + + Indexing... + + + Qt::AlignCenter + + + + + + + + 0 + 0 + + + + + true + + + + Dictionary Name + + + Qt::AlignCenter + + + true + + + + + + + + 0 - + -1 @@ -69,6 +137,8 @@ - + + +