-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;
}
#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;
}
}
- 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();
}