Prevent ChatView from scrolling up 1px on buffer switch, fixes #544
[quassel.git] / src / qtui / bufferwidget.h
index 75027cb..3efb87a 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel Project                          *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -36,7 +36,10 @@ public:
   BufferWidget(QWidget *parent);
   ~BufferWidget();
 
+  virtual bool eventFilter(QObject *watched, QEvent *event);
+
   inline ChatViewSearchBar *searchBar() const { return ui.searchBar; }
+  void addActionsToMenu(QMenu *, const QPointF &pos);
 
 protected:
   virtual AbstractChatView *createChatView(BufferId);
@@ -47,6 +50,9 @@ protected slots:
 
 private slots:
   void scrollToHighlight(QGraphicsItem *highlightItem);
+  void zoomIn();
+  void zoomOut();
+  void zoomOriginal();
 
 private:
   Ui::BufferWidget ui;