Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4823462
registrynodetreemodelproxy.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
2 KB
Referenced Files
None
Subscribers
None
registrynodetreemodelproxy.cpp
View Options
/*******************************************************************************
* fred Copyright (c) 2011-2013 by Gillen Daniel <gillen.dan@pinguin.lu> *
* *
* Forensic Registry EDitor (fred) is a cross-platform M$ registry hive editor *
* with special feautures useful during forensic analysis. *
* *
* 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 3 of the License, or (at your option) *
* any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT *
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
* more details. *
* *
* You should have received a copy of the GNU General Public License along with *
* this program. If not, see <http://www.gnu.org/licenses/>. *
*******************************************************************************/
#include "registrynodetreemodelproxy.h"
RegistryNodeTreeModelProxy::RegistryNodeTreeModelProxy(QObject *p_parent) :
QSortFilterProxyModel(p_parent)
{
}
bool RegistryNodeTreeModelProxy::lessThan(const QModelIndex &left,
const QModelIndex &right) const
{
QVariant leftData=this->sourceModel()->data(left);
QVariant rightData=this->sourceModel()->data(right);
if(leftData.type()==QVariant::String && rightData.type()==QVariant::String) {
// Sort strings case insensitive
return leftData.toString().toLower()<rightData.toString().toLower();
} else {
return QSortFilterProxyModel::lessThan(left,right);
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, May 11, 3:14 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1230018
Default Alt Text
registrynodetreemodelproxy.cpp (2 KB)
Attached To
Mode
rFRED fred
Attached
Detach File
Event Timeline
Log In to Comment