Add a context menu to the toolbar to change the position of the text

Closes #1145.
This commit is contained in:
Gabriele
2014-10-18 15:18:58 +01:00
parent 442f45d42a
commit 0ebfea6c68
4 changed files with 112 additions and 0 deletions

View File

@@ -1952,6 +1952,14 @@ void Preferences::setRssFeedsAliases(const QStringList &rssAliases) {
setValue("Rss/streamAlias", rssAliases);
}
int Preferences::getToolbarTextPosition() const {
return value("Toolbar/textPosition", -1).toInt();
}
void Preferences::setToolbarTextPosition(const int position) {
setValue("Toolbar/textPosition", position);
}
QList<QByteArray> Preferences::getHostNameCookies(const QString &host_name) const {
QMap<QString, QVariant> hosts_table = value("Rss/hosts_cookies").toMap();
if (!hosts_table.contains(host_name)) return QList<QByteArray>();