Allow printer names to contain hyphens in QPrinterInfo test.

Change-Id: I473627413d2f1cd5637704f2948eb07a264be49e
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Jason McDonald 2012-02-21 12:52:15 +10:00 committed by Qt by Nokia
parent 7d44f45fb7
commit f8c3074faa

View File

@ -110,7 +110,7 @@ QString tst_QPrinterInfo::getDefaultPrinterFromSystem()
return QString();
}
QRegExp defaultReg("default.*: *([a-zA-Z0-9_]+)");
QRegExp defaultReg("default.*: *([a-zA-Z0-9_-]+)");
defaultReg.indexIn(output);
QString printer = defaultReg.cap(1);
macFixNameFormat(&printer);