Qt 3 Support Members for QUrlThe following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code. Public Functions
Static Public Members
Protected Functions
Member Function Documentationvoid QUrl::addPath ( const QString & p )Use setPath() instead. bool QUrl::cdUp ()Use resolved("..") instead. For example, if you have code like QUrl url("http://example.com/Developer/"); url.cdUp(); you can rewrite it as QUrl url("http://example.com/Developer/"); url = url.resolved(".."); void QUrl::decode ( QString & url ) [static]Use fromPercentEncoding() instead. QString QUrl::dirPath () constUse QFileInfo(path()).absolutePath() or QFileInfo(path()) instead. void QUrl::encode ( QString & url ) [static]Use toPercentEncoding() instead. QString QUrl::fileName () constUse QFileInfo(path()).fileName() instead. See also setFileName(). bool QUrl::hasHost () constUse !host().isEmpty() instead. bool QUrl::hasPassword () constUse !password().isEmpty() instead. bool QUrl::hasPath () constUse !path().isEmpty() instead. bool QUrl::hasPort () constUse port() != -1 instead. bool QUrl::hasRef () constUse !fragment().isEmpty() instead. bool QUrl::hasUser () constUse !userName().isEmpty() instead. bool QUrl::isRelativeUrl ( const QString & url ) [static]Use isRelative() instead. QString QUrl::protocol () constUse scheme() instead. See also setProtocol(). QString QUrl::query () constUse encodedQuery() instead. See also setQuery(). QString QUrl::ref () constUse fragment() instead. See also setRef(). void QUrl::reset () [protected]Use clear() instead. void QUrl::setFileName ( const QString & txt )Use setPath() instead. See also fileName(). void QUrl::setProtocol ( const QString & s )Use setScheme() instead. See also protocol(). void QUrl::setQuery ( const QString & txt )Use setEncodedQuery() instead. See also query(). void QUrl::setRef ( const QString & txt )Use setFragment() instead. See also ref(). void QUrl::setUser ( const QString & s )Use setUserName() instead. See also user(). QString QUrl::user () constUse userName() instead. See also setUser(). QUrl::operator QString () constUse toString() instead. X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |