MCPcopy Create free account
hub / github.com/KDE/krusader / chooseEncoding

Method chooseEncoding

app/GUI/krremoteencodingmenu.cpp:143–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void KrRemoteEncodingMenu::chooseEncoding(QString encoding)
144{
145 QUrl currentURL = ACTIVE_PANEL->virtualPath();
146
147 KConfig config(("kio_" + currentURL.scheme() + "rc").toLatin1());
148 QString host = currentURL.host();
149
150 QString charset = KCharsets::charsets()->encodingForName(encoding);
151
152 KConfigGroup group(&config, host);
153 group.writeEntry(DATA_KEY, charset);
154 config.sync();
155
156 // Update the io-slaves...
157 updateKIOSlaves();
158}
159
160void KrRemoteEncodingMenu::slotReload()
161{

Callers

nothing calls this directly

Calls 1

virtualPathMethod · 0.80

Tested by

no test coverage detected