Dialog box with settings for StarDict.
authorPrzemyslaw Wojtysiak <pwojtysiak88@gmail.com>
Wed, 6 Oct 2010 08:49:13 +0000 (10:49 +0200)
committerPrzemyslaw Wojtysiak <pwojtysiak88@gmail.com>
Wed, 6 Oct 2010 08:49:13 +0000 (10:49 +0200)
src/plugins/stardict/StarDialog.cpp

index b6b4e78..9d32f9b 100644 (file)
@@ -80,10 +80,14 @@ void StarDialog::initializeUI() {
         setWindowTitle(tr("StarDict Settings"));
 
         infoLabel->setText(tr("Plugin: ") + plugin->type().toUpper() +"\n" +
-                       tr("From: ") + plugin->langFrom() + "\n" +
-                       tr("To: ") + plugin->langTo() + "\n" +
-                       tr("Description: ") + plugin->name() + "\n" +
-                       plugin->infoNote());
+                           tr("Book name: ") + plugin->settings()->value("bookname") + "\n" +
+                           tr("Version: ") + plugin->settings()->value("version") + "\n" +
+                           tr("Word count: ") + plugin->settings()->value("wordcount") + "\n" +
+                           tr("Author: ") + plugin->settings()->value("author") + "\n" +
+                           tr("E-mail: ") + plugin->settings()->value("email") + "\n" +
+                           tr("Website: ") + plugin->settings()->value("website") + "\n" +
+                           tr("Description: ") + plugin->settings()->value("description") + "\n" +
+                           tr("Date: ") + plugin->settings()->value("date"));
         mainVerticalLayout->addWidget(infoLabel);
     }