Qt:Документация 4.3.2/qurl-qt3
Материал из Wiki.crossplatform.ru
Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] Qt 3 Support Members for QUrl
Описанные ниже члены класса являются частью слоя поддержки Qt 3. Они введены для поддержки старого кода в Qt 4. Мы советуем не использовать их во вновь создаваемом коде.
[править] Открытые функции
- void addPath ( const QString & p )
- bool cdUp ()
- QString dirPath () const
- QString fileName () const
- bool hasHost () const
- bool hasPassword () const
- bool hasPath () const
- bool hasPort () const
- bool hasRef () const
- bool hasUser () const
- QString protocol () const
- QString query () const
- QString ref () const
- void setFileName ( const QString & txt )
- void setProtocol ( const QString & s )
- void setQuery ( const QString & txt )
- void setRef ( const QString & txt )
- void setUser ( const QString & s )
- QString user () const
- operator QString () const
[править] Статические открытые члены
- void decode ( QString & url )
- void encode ( QString & url )
- bool isRelativeUrl ( const QString & url )
[править] Защищенные функции
- void reset ()
[править] Описание функций-членов
[править] void QUrl::addPath ( const QString & p )
Use setPath() instead.
[править] bool QUrl::cdUp ()
Use resolved("..") instead.
Например, если у вас есть код
QUrl url("http://www.trolltech.com/Developer/"); url.cdUp();
вы можете записать его в виде
QUrl url("http://www.trolltech.com/Developer/"); url = url.resolved("..");
[править] void QUrl::decode ( QString & url ) [static]
Use fromPercentEncoding() instead.
[править] QString QUrl::dirPath () const
Use QFileInfo( path()).absolutePath() or QFileInfo( path()) instead.
[править] void QUrl::encode ( QString & url ) [static]
Use toPercentEncoding() instead.
[править] QString QUrl::fileName () const
Use QFileInfo( path()).fileName() instead.
See also setFileName().
[править] bool QUrl::hasHost () const
Use ! host(). isEmpty() instead.
[править] bool QUrl::hasPassword () const
Use ! password(). isEmpty() instead.
[править] bool QUrl::hasPath () const
Use ! path(). isEmpty() instead.
[править] bool QUrl::hasPort () const
Use port() != -1 instead.
[править] bool QUrl::hasRef () const
Use ! fragment(). isEmpty() instead.
[править] bool QUrl::hasUser () const
Use ! userName(). isEmpty() instead.
[править] bool QUrl::isRelativeUrl ( const QString & url ) [static]
Use isRelative() instead.
[править] QString QUrl::protocol () const
Use scheme() instead.
See also setProtocol().
[править] QString QUrl::query () const
Use encodedQuery() instead.
See also setQuery().
[править] QString QUrl::ref () const
Use 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 () const
Use userName() instead.
See also setUser().
[править] QUrl::operator QString () const
Use toString() instead.
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|