X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fnickmodel.cpp;h=14a804b35fe7c8b48a14268b9e86d53c182d3e92;hp=ad1884cad653bfa982b05bce2d901483a7e228e5;hb=a3a8e528916f4930bd731ed074bcdd190d4fe327;hpb=b173301cf898a31c19835f0512883b3ac15cdf55 diff --git a/src/client/nickmodel.cpp b/src/client/nickmodel.cpp index ad1884ca..14a804b3 100644 --- a/src/client/nickmodel.cpp +++ b/src/client/nickmodel.cpp @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -20,17 +20,16 @@ #include "nickmodel.h" -#include "ircchannel.h" - - -NickModel::NickModel(IrcChannel *channel) : QAbstractItemModel(channel) { - //QStringList list; list << "test1" << "test2"; - //setStringList(list); - -} - -NickModel::~NickModel() { - - +#include "networkmodel.h" + +/****************************************************************************************** + * NickModel + ******************************************************************************************/ +NickModel::NickModel(NetworkModel *parent) + : QSortFilterProxyModel(parent) +{ + setSourceModel(parent); + setDynamicSortFilter(true); + setSortCaseSensitivity(Qt::CaseInsensitive); }