mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
generic: adjust to KUrl changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
93413c817c
commit
d8ad4c9854
4 changed files with 6 additions and 6 deletions
|
@ -38,7 +38,7 @@ static const char* VALUE_SUFFIX = "value";
|
||||||
static KUrl stripPass(const KUrl &url_)
|
static KUrl stripPass(const KUrl &url_)
|
||||||
{
|
{
|
||||||
KUrl url = url_;
|
KUrl url = url_;
|
||||||
url.setPass(QString());
|
url.setPassword(QString());
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,10 +94,10 @@ void SerializedUrlMap::setConfigGroup(const KConfigGroup& group)
|
||||||
|
|
||||||
KUrl SerializedUrlMap::value(const KUrl& key_) const
|
KUrl SerializedUrlMap::value(const KUrl& key_) const
|
||||||
{
|
{
|
||||||
QString pass = key_.pass();
|
QString pass = key_.password();
|
||||||
KUrl key = stripPass(key_);
|
KUrl key = stripPass(key_);
|
||||||
KUrl url = d->mMap.value(key);
|
KUrl url = d->mMap.value(key);
|
||||||
url.setPass(pass);
|
url.setPassword(pass);
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -279,7 +279,7 @@ void RemoteDesktopsModel::servicesChanged()
|
||||||
KUrl url;
|
KUrl url;
|
||||||
removeAllItemsFromSources(RemoteDesktop::Zeroconf);
|
removeAllItemsFromSources(RemoteDesktop::Zeroconf);
|
||||||
foreach(const KDNSSDService &service, zeroconfBrowser->services()) {
|
foreach(const KDNSSDService &service, zeroconfBrowser->services()) {
|
||||||
url.setProtocol(m_protocols[service.type].toLower());
|
url.setScheme(m_protocols[service.type].toLower());
|
||||||
url.setHost(service.hostname);
|
url.setHost(service.hostname);
|
||||||
url.setPort(service.port);
|
url.setPort(service.port);
|
||||||
|
|
||||||
|
|
|
@ -563,7 +563,7 @@ void KSnapshot::closeEvent( QCloseEvent * e )
|
||||||
saveDialogSize(cg);
|
saveDialogSize(cg);
|
||||||
|
|
||||||
KUrl url = filename;
|
KUrl url = filename;
|
||||||
url.setPass(QString()); //krazy:exclude=nullstrassign for old broken gcc
|
url.setPassword(QString()); //krazy:exclude=nullstrassign for old broken gcc
|
||||||
conf.writePathEntry("filename", url.url());
|
conf.writePathEntry("filename", url.url());
|
||||||
|
|
||||||
conf.sync();
|
conf.sync();
|
||||||
|
|
|
@ -1414,7 +1414,7 @@ bool Part::openUrl(const KUrl &_url)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
KUrl url( _url );
|
KUrl url( _url );
|
||||||
if ( url.hasRef() )
|
if ( url.hasFragment() )
|
||||||
{
|
{
|
||||||
const QString dest = url.fragment();
|
const QString dest = url.fragment();
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue