aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perforce
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2009-04-30 12:50:52 +0200
committerdt <qtc-committer@nokia.com>2009-04-30 12:50:52 +0200
commit540ddcd562728b2be4bb8cb72c5c999d1341d1f4 (patch)
tree2d3b247dbab36d9f8279d9e03adaa29f20a3e101 /src/plugins/perforce
parent4e6e5408939bc33b8ecac67bc4e1dc4ac1f3c64c (diff)
Add a next/prev shortcut (F6 for now) for outputpanes.
This one has some magic inside to always use the current outputpane. This solves the issue that I don't want Search and Build Issues list to have its own set of next/prev shortcuts. todo is a better definition of next for the build issues and/or a way to restrict it only to errors.
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r--src/plugins/perforce/perforceoutputwindow.cpp25
-rw-r--r--src/plugins/perforce/perforceoutputwindow.h6
2 files changed, 31 insertions, 0 deletions
diff --git a/src/plugins/perforce/perforceoutputwindow.cpp b/src/plugins/perforce/perforceoutputwindow.cpp
index 0ed35c401c..93cdc5442c 100644
--- a/src/plugins/perforce/perforceoutputwindow.cpp
+++ b/src/plugins/perforce/perforceoutputwindow.cpp
@@ -159,3 +159,28 @@ int PerforceOutputWindow::priorityInStatusBar() const
{
return -1;
}
+
+bool PerforceOutputWindow::canNext()
+{
+ return false;
+}
+
+bool PerforceOutputWindow::canPrevious()
+{
+ return false;
+}
+
+void PerforceOutputWindow::goToNext()
+{
+
+}
+
+void PerforceOutputWindow::goToPrev()
+{
+
+}
+
+bool PerforceOutputWindow::canNavigate()
+{
+ return false;
+}
diff --git a/src/plugins/perforce/perforceoutputwindow.h b/src/plugins/perforce/perforceoutputwindow.h
index d88d5b5778..da17a5d3f6 100644
--- a/src/plugins/perforce/perforceoutputwindow.h
+++ b/src/plugins/perforce/perforceoutputwindow.h
@@ -61,6 +61,12 @@ public:
bool hasFocus();
void setFocus();
+ bool canNext();
+ bool canPrevious();
+ void goToNext();
+ void goToPrev();
+ bool canNavigate();
+
public slots:
void append(const QString &txt, bool doPopup = false);