]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/information/informationpanel.cpp
Using the "document-properties" icon for the Properties entry of the RMB context...
[dolphin.git] / src / panels / information / informationpanel.cpp
index 2b3124b3cff09427867029b6adae886bdd49f4ec..96f158020b30a9b768ff3b556389601b2edd88e0 100644 (file)
@@ -229,11 +229,18 @@ void InformationPanel::contextMenuEvent(QContextMenuEvent* event)
 
     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());
 
@@ -304,7 +311,9 @@ void InformationPanel::contextMenuEvent(QContextMenuEvent* event)
         return;
     }
 
-    if (action == ratingAction) {
+    if (action == previewAction) {
+        // TODO
+    } else if (action == ratingAction) {
         // TODO
     } else if (action == commentAction) {
         // TODO