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:
parent
7d44f45fb7
commit
f8c3074faa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user