diff options
| author | Peter Penz <[email protected]> | 2009-03-10 19:59:22 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-03-10 19:59:22 +0000 |
| commit | 6c81158a2f0029a3b00554e4fa18388a3d52313d (patch) | |
| tree | dac3c0cf8afb54a972d7e1ca56542f800f309bce /src/panels/information/informationpanel.cpp | |
| parent | 045fca17eff062b6937ace1e1d07f926b6b6bc39 (diff) | |
allow to disable the preview of the Information Panel
svn path=/trunk/KDE/kdebase/apps/; revision=937927
Diffstat (limited to 'src/panels/information/informationpanel.cpp')
| -rw-r--r-- | src/panels/information/informationpanel.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp index 2b3124b3c..96f158020 100644 --- a/src/panels/information/informationpanel.cpp +++ b/src/panels/information/informationpanel.cpp @@ -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 |
