fix small bug(wildcard), and change some comments
[mdictionary] / src / plugins / xdxf / XdxfDictSelectDialog.cpp
index 0ef30f2..8abb1f6 100644 (file)
     Copyright 2010 Comarch S.A.
 
 *******************************************************************************/
-
 /*!
-  \file XdxfDictSelectDialog.cpp
-  \author Mateusz Półrola <mateusz.polrola@comarch.com>
-  */
+    \file XdxfDictSelectDialog.cpp
+    \author Mateusz Półrola <mateusz.polrola@comarch.com>
+*/
 
 #include "XdxfDictSelectDialog.h"
 
 XdxfDictSelectDialog::XdxfDictSelectDialog(QList<DownloadDict> dicts,
                                            QWidget *parent) :
-    QDialog(parent) {
-
-
+                    QDialog(parent) {
     setWindowTitle(tr("Select dictionary"));
 
     layout = new QVBoxLayout;
@@ -59,7 +56,6 @@ XdxfDictSelectDialog::XdxfDictSelectDialog(QList<DownloadDict> dicts,
     proxyModel->setDynamicSortFilter(true);
     proxyModel->setSourceModel(model);
 
-
     treeView = new QTreeView;
     treeView->setModel(proxyModel);
     treeView->setRootIsDecorated(false);
@@ -82,10 +78,8 @@ XdxfDictSelectDialog::XdxfDictSelectDialog(QList<DownloadDict> dicts,
         treeView->setColumnWidth(3, 150);
     #endif
 
-
     layout->addWidget(treeView);
 
-
     connect(langFrom, SIGNAL(currentIndexChanged(int)),
             this, SLOT(refreshDictList()));
 
@@ -106,7 +100,6 @@ XdxfDictSelectDialog::XdxfDictSelectDialog(QList<DownloadDict> dicts,
 
 
 void XdxfDictSelectDialog::initializeDicts() {
-
     //scan of all languages of dictionaries, using QSet to get only distinct languages
     QSet<QString> languagesFrom;
     QSet<QString> languagesTo;
@@ -142,6 +135,7 @@ void XdxfDictSelectDialog::initializeDicts() {
     }
 }
 
+
 void XdxfDictSelectDialog::refreshDictList() {
     //if selected language is "Any"(index 0), from filter string is set to empty string, proxy model uses empty string as special case and don't filter by this field.
     if(langTo->currentIndex() == 0)
@@ -155,6 +149,7 @@ void XdxfDictSelectDialog::refreshDictList() {
         proxyModel->setFrom(langFrom->currentText());
 }
 
+
 void XdxfDictSelectDialog::itemClicked(QModelIndex index) {
     _link = index.model()->data(index, Qt::UserRole).toString();
     accept();