Revert "Properly focus BufferView on first click"
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 11 Jan 2009 13:47:12 +0000 (14:47 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 11 Jan 2009 13:47:12 +0000 (14:47 +0100)
Turns out that the side effect of the input line losing focus on bufferswitch
seems to be more confusing than the issue fixed by this commit, so I revert this.

This reverts commit a35e9270e608bfbc5b21ba47d49b3139f06b13e9.

src/qtui/mainwin.h
src/uisupport/bufferview.cpp
src/uisupport/bufferview.h

index 2d80e64..1419652 100644 (file)
@@ -67,7 +67,6 @@ class MainWin
     BufferView *allBuffersView() const;
 
     inline QSystemTrayIcon *systemTrayIcon() const;
     BufferView *allBuffersView() const;
 
     inline QSystemTrayIcon *systemTrayIcon() const;
-    inline BufferWidget *bufferWidget() const;
 
     virtual bool event(QEvent *event);
 
 
     virtual bool event(QEvent *event);
 
@@ -170,8 +169,4 @@ QSystemTrayIcon *MainWin::systemTrayIcon() const {
   return _trayIcon;
 }
 
   return _trayIcon;
 }
 
-BufferWidget *MainWin::bufferWidget() const {
-  return _bufferWidget;
-}
-
 #endif
 #endif
index 7455269..c06e7d2 100644 (file)
@@ -86,7 +86,6 @@ BufferView::BufferView(QWidget *parent)
 {
   connect(this, SIGNAL(collapsed(const QModelIndex &)), SLOT(on_collapse(const QModelIndex &)));
   connect(this, SIGNAL(expanded(const QModelIndex &)), SLOT(on_expand(const QModelIndex &)));
 {
   connect(this, SIGNAL(collapsed(const QModelIndex &)), SLOT(on_collapse(const QModelIndex &)));
   connect(this, SIGNAL(expanded(const QModelIndex &)), SLOT(on_expand(const QModelIndex &)));
-  connect(this, SIGNAL(clicked(const QModelIndex &)), SLOT(on_clicked(const QModelIndex &)));
 
   setSelectionMode(QAbstractItemView::ExtendedSelection);
 
 
   setSelectionMode(QAbstractItemView::ExtendedSelection);
 
@@ -355,11 +354,6 @@ void BufferView::on_configChanged() {
   return;
 }
 
   return;
 }
 
-void BufferView::on_clicked(const QModelIndex &index) {
-  Q_UNUSED(index);
-  setFocus(Qt::MouseFocusReason);
-}
-
 void BufferView::on_collapse(const QModelIndex &index) {
   storeExpandedState(index.data(NetworkModel::NetworkIdRole).value<NetworkId>(), false);
 }
 void BufferView::on_collapse(const QModelIndex &index) {
   storeExpandedState(index.data(NetworkModel::NetworkIdRole).value<NetworkId>(), false);
 }
index 12bb902..4e83369 100644 (file)
@@ -78,7 +78,6 @@ private slots:
 
   void on_collapse(const QModelIndex &index);
   void on_expand(const QModelIndex &index);
 
   void on_collapse(const QModelIndex &index);
   void on_expand(const QModelIndex &index);
-  void on_clicked(const QModelIndex &index);
   void on_configChanged();
 
 private:
   void on_configChanged();
 
 private: