some minor tweaks
[quassel.git] / src / qtgui / bufferview.h
index 561cae7..b7b923e 100644 (file)
 class BufferView : public QTreeView {
   Q_OBJECT
   
-  public:
-    BufferView(QWidget *parent = 0);
-    void init();
-    void setModel(QAbstractItemModel *model);
-    void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QStringList nets);
+public:
+  BufferView(QWidget *parent = 0);
+  void init();
+  void setModel(QAbstractItemModel *model);
+  void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QStringList nets);
   
-    void dragEnterEvent(QDragEnterEvent *);
-
-  protected:
-    void rowsInserted (const QModelIndex & parent, int start, int end);
+  //void dragEnterEvent(QDragEnterEvent *);
+  //void dragLeaveEvent(QDragLeaveEvent *);
+  
+public slots:
+  void select(const QModelIndex &);
+    
+signals:
+  void eventDropped(QDropEvent *);
+  void selectionChanged(const QModelIndex &, QItemSelectionModel::SelectionFlags);
+  //void dragEnter();
+  //void dragLeave();
+  
+protected:
+  void dropEvent(QDropEvent *);
+  void rowsInserted (const QModelIndex & parent, int start, int end);
 };