~ubuntu-branches/ubuntu/lucid/ktorrent/lucid

« back to all changes in this revision

Viewing changes to ktorrent/queuemanagerwidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-04-06 08:32:32 UTC
  • mfrom: (1.1.26 upstream)
  • Revision ID: james.westby@ubuntu.com-20090406083232-rpyq88977lfpgnfo
Tags: 3.2.1+dfsg.1-0ubuntu1
* New upstream release (LP: #356230):
  - Add libtag1-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
                        model->moveUp(r);
86
86
                        if (r > 0)
87
87
                                r--;
88
 
                        m_torrents->selectionModel()->setCurrentIndex(model->index(r,0),QItemSelectionModel::Select|QItemSelectionModel::Rows);
 
88
                        m_torrents->selectionModel()->setCurrentIndex(model->index(r,0),QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows);
89
89
                }
90
90
        }
91
91
        
98
98
                        model->moveDown(r);
99
99
                        if (r < model->rowCount(QModelIndex()) - 1)
100
100
                                r++;
101
 
                        m_torrents->selectionModel()->setCurrentIndex(model->index(r,0),QItemSelectionModel::Select|QItemSelectionModel::Rows);
 
101
                        m_torrents->selectionModel()->setCurrentIndex(model->index(r,0),QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows);
102
102
                }
103
103
        }
104
104
        
109
109
                {
110
110
                        int r = cur.row();
111
111
                        model->moveTop(r);
112
 
                        m_torrents->selectionModel()->setCurrentIndex(model->index(0,0),QItemSelectionModel::Select|QItemSelectionModel::Rows);
 
112
                        m_torrents->selectionModel()->setCurrentIndex(model->index(0,0),QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows);
113
113
                }
114
114
        }
115
115
        
121
121
                        int r = cur.row();
122
122
                        model->moveBottom(r);
123
123
                        r = model->rowCount(QModelIndex()) - 1;
124
 
                        m_torrents->selectionModel()->setCurrentIndex(model->index(r,0),QItemSelectionModel::Select|QItemSelectionModel::Rows);
 
124
                        m_torrents->selectionModel()->setCurrentIndex(model->index(r,0),QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows);
125
125
                }
126
126
        }
127
127
        
131
131
                if (cur.isValid())
132
132
                {
133
133
                        model->queue(cur.row());
134
 
                        m_torrents->selectionModel()->setCurrentIndex(cur,QItemSelectionModel::Select|QItemSelectionModel::Rows);
 
134
                        m_torrents->selectionModel()->setCurrentIndex(cur,QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows);
135
135
                }
136
136
        }
137
137