diff --git a/src/ui/dictinfo.cc b/src/ui/dictinfo.cc index c19f931c..008e748f 100644 --- a/src/ui/dictinfo.cc +++ b/src/ui/dictinfo.cc @@ -1,6 +1,7 @@ #include "dictinfo.hh" -#include "langcoder.hh" #include "language.hh" +#include +#include "config.hh" #include @@ -83,3 +84,8 @@ void DictInfo::on_headwordsButton_clicked() { done( SHOW_HEADWORDS ); } + +void DictInfo::on_openIndexFolder_clicked() +{ + QDesktopServices::openUrl( QUrl::fromLocalFile( Config::getIndexDir() ) ); +} diff --git a/src/ui/dictinfo.hh b/src/ui/dictinfo.hh index 35c07822..39b642f4 100644 --- a/src/ui/dictinfo.hh +++ b/src/ui/dictinfo.hh @@ -32,6 +32,7 @@ private slots: void on_openFolder_clicked(); void on_OKButton_clicked(); void on_headwordsButton_clicked(); + void on_openIndexFolder_clicked(); }; #endif // DICTINFO_HH diff --git a/src/ui/dictinfo.ui b/src/ui/dictinfo.ui index 006e82dc..bb01984b 100644 --- a/src/ui/dictinfo.ui +++ b/src/ui/dictinfo.ui @@ -23,67 +23,6 @@ - - - - - - - - - - - Open folder - - - false - - - false - - - false - - - - - - - Translates from: - - - - - - - Total words: - - - - - - - Translates to: - - - - - - - true - - - Edit dictionary - - - - - - - Total articles: - - - @@ -94,8 +33,22 @@ - - + + + + Total words: + + + + + + + Translates from: + + + + + @@ -111,7 +64,52 @@ - + + + + + + + + + + + Total articles: + + + + + + + Open folder + + + + + + + true + + + Edit dictionary + + + + + + + Translates to: + + + + + + + Index filename: + + + + @@ -121,6 +119,13 @@ + + + + Open index folder + + + @@ -198,9 +203,6 @@ Headwords - - false -