Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QString QString::fromLatin1 ( const char *  str,
int  size = -1 
) [static]

Returns a QString initialized with the first size characters of the Latin-1 string str.

If size is -1 (the default), it is taken to be qstrlen(str).

See also:
toLatin1(), fromAscii(), fromUtf8(), fromLocal8Bit()

Definition at line 3148 of file qstring.cpp.

References QString().

Referenced by QDir::absolutePath(), QAccessibleObject::actionText(), Q3FileDialog::addFilter(), Q3Action::addTo(), QCoreApplication::applicationFilePath(), QLibraryInfo::buildKey(), QDir::cdUp(), Q3ComboBox::clear(), QFont::defaultFamily(), Q3Url::dirPath(), QRegExp::errorString(), QXmlDefaultHandler::errorString(), Q3FileDialog::fileNameEditDone(), Q3FileDialog::fileNameEditReturnPressed(), QUrl::fromAce(), fromLocal8Bit(), QDateTime::fromString(), QFileDialog::getExistingDirectory(), QFileDialog::getOpenFileName(), QFileDialog::getOpenFileNames(), QFileDialog::getSaveFileName(), Q3StyleSheet::init(), Q3ListBox::insertStrList(), Q3ComboBox::insertStrList(), Q3FileDialog::keyPressEvent(), QMetaEnum::keysToValue(), QFont::lastResortFamily(), QFont::lastResortFont(), QLibraryInfo::licensedProducts(), QTranslator::load(), Q3UriDrag::localFileToUri(), QHostInfo::lookupHost(), Q3FileDialog::okClicked(), operator=(), operator>>(), Q3TextStream::operator>>(), QPictureIO::pictureFormat(), Q3ProgressDialog::Q3ProgressDialog(), QDir::QDir(), QProgressDialog::QProgressDialog(), QTextLayout::QTextLayout(), QUuid::QUuid(), QFont::rawName(), QTextStream::read(), Q3ComboBox::removeItem(), Q3TimeEdit::sectionText(), Q3FileDialog::selectDirectoryOrFile(), QSqlRelationalTableModel::selectStatement(), QDomElement::setAttribute(), Q3FileDialog::setDir(), Q3FileDialog::setFilter(), Q3FileDialog::setFilters(), Q3ProgressBar::setIndicator(), Q3FileDialog::setSelectedFilter(), Q3FileDialog::setSelection(), Q3TimeEdit::sizeHint(), QPushButton::sizeHint(), QTest::toString(), QDate::toString(), QTime::toString(), QCoreApplication::translate(), QDoubleValidator::validate(), vsprintf(), and QFontDatabase::writingSystemName().

{
    return QString(fromLatin1_helper(str, size), 0);
}


Generated by  Doxygen 1.6.0   Back to index