Merge branch 'master' of ssh://drop.maemo.org/git/mdictionary
authorPiotrek <ppilar11@gmail.com>
Tue, 7 Sep 2010 11:53:32 +0000 (13:53 +0200)
committerPiotrek <ppilar11@gmail.com>
Tue, 7 Sep 2010 11:53:32 +0000 (13:53 +0200)
Conflicts:
data/xsl/style.css
data/xsl/xsl.xsl
src/mdictionary/gui/DictManagerWidget.cpp
src/plugins/xdxf/XdxfLoadDialog.cpp
src/plugins/xdxf/XdxfLoadDialog.h
src/plugins/xdxf/XdxfSettingsDialog.cpp

1  2 
data/xsl/style.css
src/mdictionary/gui/DictManagerWidget.cpp
src/mdictionary/gui/MenuWidget.cpp

@@@ -1,25 -1,8 +1,26 @@@
 -th.info {
 -      background-color        : #99FF99;     
++
 +div.tab {
 +       
 +       border-style            : solid;
 +       border-width            : thin;
 +       width                   : 100%
 +}
 +
 +div.info {
 +        font-weight            : bold;
 +        text-align             : center;
 +        border-style           : solid;
 +        border-width           : thin;
 +        margin                 : 2px 2px 2px 2px;                 
 +      background-color       : #99FF99;
  }
  
 -th.key {
 +div.key {
 +       font-weight             : bold;
 +       text-align              : center;
 +       border-style            : solid;
 +       border-width            : thin;
 +       margin                  : 2px 2px 2px 2px;   
         background-color        : #99CCFF; 
  }
  
@@@ -175,12 -176,15 +176,16 @@@ void DictManagerWidget::addNewDictButto
      #endif
  
     CommonDictInterface* selectedPlugin =
 +           DictTypeSelectDialog::addNewDict(guiInterface->getPlugins(),this);
 +   if(selectedPlugin) {
+            DictTypeSelectDialog::addNewDict(
+                    guiInterface->getPlugins(),
+                    this->parentWidget());
 -   if(selectedPlugin != NULL) {
         Settings* settings =
-                selectedPlugin->dictDialog()->addNewDictionary(this);
+                selectedPlugin->dictDialog()->addNewDictionary(this->parentWidget());
  
 -       if(settings != NULL) {
 +       if(settings) {
             CommonDictInterface* newDict = selectedPlugin->getNew(settings);
             if(newDict) {
                 delete settings;
@@@ -58,15 -60,19 +60,19 @@@ void MenuWidget::removeSubMenu(QString 
      }
  }
  
- QWidget* MenuWidget::createWidget(QWidget *) {
+ QWidget* MenuWidget::createWidget(QWidget *parent) {
      /*When we have request to create new widget we return tabWidget.
      When the menu is closing, tabWidget will receive hideEvent which will set
 -    its parent to NULL and prevent it from delete, so we can still use this
 +    its parent to 0 (NULL) and prevent it from delete, so we can still use this
      widget*/
+     if(applicationMenu==0) {
+         applicationMenu = parent;
+         Q_EMIT setApplicationMenu(applicationMenu);
+     }
      return tabWidget;
  }
  
  void MenuWidget::hideMenu() {
      tabWidget->parentWidget()->hide();
  }