Examples of indexIn()


Examples of com.trolltech.qt.core.QRegExp.indexIn()

            QAbstractItemModel model = sourceModel();
            boolean matchFound = false;

            for(int i=0; i < model.columnCount(); i++){
              Object data = model.data(sourceModel().index(sourceRow, i, sourceParent));
              matchFound |= data != null && filter.indexIn(data.toString()) != -1;
            }
            return matchFound;
        }

        @Override
View Full Code Here

Examples of com.trolltech.qt.core.QRegExp.indexIn()

            Object rightData = sourceModel().data(right);

            QRegExp emailPattern = new QRegExp("([\\w\\.]*@[\\w\\.]*)");

            String leftString = leftData.toString();
            if(left.column() == 1 && emailPattern.indexIn(leftString) != -1)
                leftString = emailPattern.cap(1);

            String rightString = rightData.toString();
            if(right.column() == 1 && emailPattern.indexIn(rightString) != -1)
                rightString = emailPattern.cap(1);
View Full Code Here

Examples of com.trolltech.qt.core.QRegExp.indexIn()

            String leftString = leftData.toString();
            if(left.column() == 1 && emailPattern.indexIn(leftString) != -1)
                leftString = emailPattern.cap(1);

            String rightString = rightData.toString();
            if(right.column() == 1 && emailPattern.indexIn(rightString) != -1)
                rightString = emailPattern.cap(1);

            result = leftString.compareTo(rightString) < 0;
            return result;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.