m_preview->setVisible(isChecked);
InformationPanelSettings::setShowPreview(isChecked);
} else if (action == configureAction) {
- QPointer<FileMetaDataConfigurationDialog> dialog =
- new FileMetaDataConfigurationDialog(this);
+ FileMetaDataConfigurationDialog* dialog = new FileMetaDataConfigurationDialog();
dialog->setDescription(i18nc("@label::textbox",
- "Configure which data should be shown in the Information Panel."));
+ "Configure which data should be shown in the tooltip."));
dialog->setItems(m_metaDataWidget->items());
- dialog->exec();
- delete dialog;
- }
-
- if (!m_item.isNull() && m_item.nepomukUri().isValid()) {
- showItem(m_item);
+ dialog->setAttribute(Qt::WA_DeleteOnClose);
+ dialog->show();
+ dialog->raise();
+ dialog->activateWindow();
+ connect(dialog, SIGNAL(destroyed()), this, SLOT(refreshMetaData()));
}
}
m_preview->setVisible(true);
}
+void InformationPanelContent::refreshMetaData()
+{
+ if (!m_item.isNull() && m_item.nepomukUri().isValid()) {
+ showItem(m_item);
+ }
+}
+
bool InformationPanelContent::applyPlace(const KUrl& url)
{
KFilePlacesModel* placesModel = DolphinSettings::instance().placesModel();
void slotPlayingStarted();
void slotPlayingStopped();
+ /**
+ * Is invoked after the file meta data configuration dialog has been
+ * closed and refreshs the visibility of the meta data.
+ */
+ void refreshMetaData();
+
private:
/**
* Checks whether the an URL is repesented by a place. If yes,