mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Replace deprecated QRexExp API
Qt 4.6 saw QRegExp::numCaptures() change to QRegExp::captureCount().
This commit is contained in:
parent
ade4c7bd0b
commit
e7056f6447
@ -192,12 +192,12 @@ void QgsValueMapConfigDlg::loadFromCSVButtonPushed()
|
||||
QString l = s.readLine().trimmed();
|
||||
|
||||
QString key, val;
|
||||
if ( re0.indexIn( l ) >= 0 && re0.numCaptures() == 2 )
|
||||
if ( re0.indexIn( l ) >= 0 && re0.captureCount() == 2 )
|
||||
{
|
||||
key = re0.cap( 1 ).trimmed();
|
||||
val = re0.cap( 2 ).trimmed();
|
||||
}
|
||||
else if ( re1.indexIn( l ) >= 0 && re1.numCaptures() == 2 )
|
||||
else if ( re1.indexIn( l ) >= 0 && re1.captureCount() == 2 )
|
||||
{
|
||||
key = re1.cap( 1 ).trimmed();
|
||||
val = re1.cap( 2 ).trimmed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user