* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
BufferId bufferId2 = bufferList[0].second;
if (index.data(NetworkModel::ItemTypeRole) != NetworkModel::BufferItemType)
BufferId bufferId2 = bufferList[0].second;
if (index.data(NetworkModel::ItemTypeRole) != NetworkModel::BufferItemType)
if (index.data(NetworkModel::BufferTypeRole) != BufferInfo::QueryBuffer)
return QTreeView::dropEvent(event);
if (index.data(NetworkModel::BufferTypeRole) != BufferInfo::QueryBuffer)
return QTreeView::dropEvent(event);
BufferId bufferId1 = index.data(NetworkModel::BufferIdRole).value<BufferId>();
if (bufferId1 == bufferId2)
return QTreeView::dropEvent(event);
BufferId bufferId1 = index.data(NetworkModel::BufferIdRole).value<BufferId>();
if (bufferId1 == bufferId2)
return QTreeView::dropEvent(event);
void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{
QTreeView::dataChanged(topLeft, bottomRight);
void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
{
QTreeView::dataChanged(topLeft, bottomRight);
// determine how many items have been changed and if any of them is a networkitem
// which just swichted from active to inactive or vice versa
// determine how many items have been changed and if any of them is a networkitem
// which just swichted from active to inactive or vice versa