Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e63754dc5af9f9ec95223fcea9485104 > files > 1942

python3-PyQt4-devel-4.8.3-2.fc14.x86_64.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QSystemLocale Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="../pyqt4ref.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QSystemLocale Class Reference<br /><sup><sup>[<a href="qtcore.html">QtCore</a> module]</sup></sup></h1><p>The QSystemLocale class can be used to finetune the system
locale of the user. <a href="#details">More...</a></p>

<h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qsystemlocale.html#QueryType-enum">QueryType</a></b> { LanguageId, CountryId, DecimalPoint, GroupSeparator, ..., PMText }</li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qsystemlocale.html#QSystemLocale">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qsystemlocale.html#QSystemLocale-2">__init__</a></b> (<i>self</i>, QSystemLocale)</li><li><div class="fn" />QLocale <b><a href="qsystemlocale.html#fallbackLocale">fallbackLocale</a></b> (<i>self</i>)</li><li><div class="fn" />QVariant <b><a href="qsystemlocale.html#query">query</a></b> (<i>self</i>, QueryType&#160;<i>type</i>, QVariant&#160;<i>in</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QSystemLocale class can be used to finetune the system
locale of the user.</p>
<p><b>Warning:</b> This class is only useful in very rare cases.
Usually <a href="qlocale.html">QLocale</a> offers all the
functionality required for application development.</p>
<p>QSystemLocale allows to override the values provided by the
system locale (<a href="qlocale.html#system">QLocale.system</a>()).</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="QueryType-enum" />QSystemLocale.QueryType</h3><p>Specifies the type of information queried by <a href="qsystemlocale.html#query">query</a>(). For each value the type of
information to return from the <a href="qsystemlocale.html#query">query</a>() method is listed.</p>
<table class="valuelist">
<tr class="odd">
<td />
</tr>
<tr>
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.LanguageId</tt></td>
<td class=" topAlign"><tt>0</tt></td>
<td class="topAlign">a uint specifying the language.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.CountryId</tt></td>
<td class=" topAlign"><tt>1</tt></td>
<td class="topAlign">a uint specifying the country.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.DecimalPoint</tt></td>
<td class=" topAlign"><tt>2</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the decimal point.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.GroupSeparator</tt></td>
<td class=" topAlign"><tt>3</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the group separator.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.ZeroDigit</tt></td>
<td class=" topAlign"><tt>4</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the zero digit.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.NegativeSign</tt></td>
<td class=" topAlign"><tt>5</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the minus sign.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.PositiveSign</tt></td>
<td class=" topAlign"><tt>23</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the plus sign.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.DateFormatLong</tt></td>
<td class=" topAlign"><tt>6</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the long date format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.DateFormatShort</tt></td>
<td class=" topAlign"><tt>7</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the short date format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.TimeFormatLong</tt></td>
<td class=" topAlign"><tt>8</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the long time format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.TimeFormatShort</tt></td>
<td class=" topAlign"><tt>9</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the short time format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.DayNameLong</tt></td>
<td class=" topAlign"><tt>10</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the name of a weekday. the in variant contains an
integer between 1 and 7 (Monday - Sunday)</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.DayNameShort</tt></td>
<td class=" topAlign"><tt>11</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the short name of a weekday. the in variant contains an
integer between 1 and 7 (Monday - Sunday)</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.MonthNameLong</tt></td>
<td class=" topAlign"><tt>12</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the name of a month. the in variant contains an integer
between 1 and 12</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.MonthNameShort</tt></td>
<td class=" topAlign"><tt>13</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the short name of a month. the in variant contains an
integer between 1 and 12</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.DateToStringLong</tt></td>
<td class=" topAlign"><tt>14</tt></td>
<td class="topAlign">converts the <a href="qdate.html">QDate</a>
stored in the in variant to a <a href="qstring.html">QString</a>
using the long date format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.DateToStringShort</tt></td>
<td class=" topAlign"><tt>15</tt></td>
<td class="topAlign">converts the <a href="qdate.html">QDate</a>
stored in the in variant to a <a href="qstring.html">QString</a>
using the short date format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.TimeToStringLong</tt></td>
<td class=" topAlign"><tt>16</tt></td>
<td class="topAlign">converts the <a href="qtime.html">QTime</a>
stored in the in variant to a <a href="qstring.html">QString</a>
using the long time format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.TimeToStringShort</tt></td>
<td class=" topAlign"><tt>17</tt></td>
<td class="topAlign">converts the <a href="qtime.html">QTime</a>
stored in the in variant to a <a href="qstring.html">QString</a>
using the short time format</td>
</tr>
<tr>
<td class="topAlign">
<tt>QSystemLocale.DateTimeFormatLong</tt></td>
<td class=" topAlign"><tt>18</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the long date time format</td>
</tr>
<tr>
<td class="topAlign">
<tt>QSystemLocale.DateTimeFormatShort</tt></td>
<td class=" topAlign"><tt>19</tt></td>
<td class="topAlign">a <a href="qstring.html">QString</a>
specifying the short date time format</td>
</tr>
<tr>
<td class="topAlign">
<tt>QSystemLocale.DateTimeToStringLong</tt></td>
<td class=" topAlign"><tt>20</tt></td>
<td class="topAlign">converts the <a href="qdatetime.html">QDateTime</a> in the in variant to a <a href="qstring.html">QString</a> using the long datetime format</td>
</tr>
<tr>
<td class="topAlign">
<tt>QSystemLocale.DateTimeToStringShort</tt></td>
<td class=" topAlign"><tt>21</tt></td>
<td class="topAlign">converts the <a href="qdatetime.html">QDateTime</a> in the in variant to a <a href="qstring.html">QString</a> using the short datetime format</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.MeasurementSystem</tt></td>
<td class=" topAlign"><tt>22</tt></td>
<td class="topAlign">a <a href="qlocale.html#MeasurementSystem-enum">QLocale.MeasurementSystem</a>
enum specifying the measurement system</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.AMText</tt></td>
<td class=" topAlign"><tt>24</tt></td>
<td class="topAlign">a string that represents the system AM
designator associated with a 12-hour clock.</td>
</tr>
<tr>
<td class="topAlign"><tt>QSystemLocale.PMText</tt></td>
<td class=" topAlign"><tt>25</tt></td>
<td class="topAlign">a string that represents the system PM
designator associated with a 12-hour clock.</td>
</tr>
</table>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QSystemLocale" />QSystemLocale.__init__ (<i>self</i>)</h3><p>Constructs a <a href="qsystemlocale.html">QSystemLocale</a>
object. The constructor will automatically install this object as
the system locale and remove any earlier installed system
locales.</p>


<h3 class="fn"><a name="QSystemLocale-2" />QSystemLocale.__init__ (<i>self</i>, <a href="qsystemlocale.html">QSystemLocale</a>)</h3><h3 class="fn"><a name="fallbackLocale" /><a href="qlocale.html">QLocale</a> QSystemLocale.fallbackLocale (<i>self</i>)</h3><p>Returns the fallback locale obtained from the system.</p>
<p>This function was introduced in Qt 4.6.</p>


<h3 class="fn"><a name="query" />QVariant QSystemLocale.query (<i>self</i>, <a href="qsystemlocale.html#QueryType-enum">QueryType</a>&#160;<i>type</i>, QVariant&#160;<i>in</i>)</h3><p>Generic query method for locale data. Provides indirection.
Denotes the <i>type</i> of the query with <i>in</i> as input data
depending on the query.</p>
<p>See also <a href="qsystemlocale.html#QueryType-enum">QSystemLocale.QueryType</a>.</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.8.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2011</td><td align="right" width="25%">Qt&#160;4.7.1</td></tr></table></div></address></body></html>