* demo/viewer/browser_widget.cc: prev/next binded to Ctrl+Left/Right.
---
scribo/ChangeLog | 6 ++++++
scribo/demo/viewer/browser_widget.cc | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index f2160fa..4fa6c77 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,11 @@
2010-08-06 Arthur Crepin-Leblond <crepin(a)lrde.epita.fr>
+ Add arrows shortcuts.
+
+ * demo/viewer/browser_widget.cc: prev/next binded to Ctrl+Left/Right.
+
+2010-08-06 Arthur Crepin-Leblond <crepin(a)lrde.epita.fr>
+
Add shortcuts in Qt interface.
* demo/viewer/browser_widget.cc: Change arrows icon.
diff --git a/scribo/demo/viewer/browser_widget.cc b/scribo/demo/viewer/browser_widget.cc
index dd0bc1c..7e01789 100644
--- a/scribo/demo/viewer/browser_widget.cc
+++ b/scribo/demo/viewer/browser_widget.cc
@@ -36,6 +36,8 @@ BrowserWidget::BrowserWidget(QDirModel* files, QString dir)
prev->setIcon(style()->standardIcon(QStyle::SP_ArrowLeft));
next->setIcon(style()->standardIcon(QStyle::SP_ArrowRight));
+ next->setShortcut(QKeySequence("Ctrl+right"));
+ prev->setShortcut(QKeySequence("Ctrl+left"));
QLabel* title = new QLabel(tr("Images"));
title->setAlignment(Qt::AlignHCenter);
--
1.5.6.5
Show replies by date