Commit 438ec374 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Port deprecated QSet::fromList() -> constructor, QSet::toList() -> values()

parent 94efb577
......@@ -762,7 +762,7 @@ void KopeteContactListView::selectionChanged(const QItemSelection &selected, con
}
}
Kopete::ContactList::self()->setSelectedItems(contacts.toList(), groups.toList());
Kopete::ContactList::self()->setSelectedItems(contacts.values(), groups.values());
updateActions();
......
......@@ -55,12 +55,12 @@ Features::~Features()
QStringList Features::list() const
{
return _list.toList();
return _list.values();
}
void Features::setList(const QStringList &l)
{
_list = QSet<QString>::fromList(l);
_list = QSet<QString>(l.begin(), l.end());
}
void Features::setList(const QSet<QString> &l)
......@@ -75,7 +75,7 @@ void Features::addFeature(const QString& s)
bool Features::test(const QStringList &ns) const
{
return _list.contains(QSet<QString>::fromList(ns));
return _list.contains(QSet<QString>(ns.begin(), ns.end()));
}
bool Features::test(const QSet<QString> &ns) const
......
......@@ -537,7 +537,8 @@ void ICQProtocol::initLang()
void ICQProtocol::initEncodings()
{
QSet<int> availableMibs = QSet<int>::fromList( QTextCodec::availableMibs() );
const QList<int> mibs = QTextCodec::availableMibs();
QSet<int> availableMibs( mibs.begin(), mibs.end() );
addEncoding( availableMibs, 2026, i18n("Big5") );
addEncoding( availableMibs, 2101, i18n("Big5-HKSCS") );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment