<kcfg>
<kcfgfile name="dolphinrc"/>
<group name="InformationPanel">
+ <entry name="showPreview" type="Bool">
+ <label context="@label">Show preview</label>
+ <default>true</default>
+ </entry>
<entry name="showRating" type="Bool">
<label context="@label">Show rating</label>
<default>true</default>
KMenu popup(this);
+ QAction* previewAction = popup.addAction(i18nc("@action:inmenu", "Preview"));
+ previewAction->setIcon(KIcon("view-preview"));
+ previewAction->setCheckable(true);
+ previewAction->setChecked(InformationPanelSettings::showPreview());
+
QAction* ratingAction = popup.addAction(i18nc("@action:inmenu", "Rating"));
+ ratingAction->setIcon(KIcon("rating"));
ratingAction->setCheckable(true);
ratingAction->setChecked(InformationPanelSettings::showRating());
QAction* commentAction = popup.addAction(i18nc("@action:inmenu", "Comment"));
+ commentAction->setIcon(KIcon("text-plain"));
commentAction->setCheckable(true);
commentAction->setChecked(InformationPanelSettings::showComment());
return;
}
- if (action == ratingAction) {
+ if (action == previewAction) {
+ // TODO
+ } else if (action == ratingAction) {
// TODO
} else if (action == commentAction) {
// TODO