aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 22:19:23 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2020-01-28 22:19:23 +0200
commite5dd0243e9a7e4e17990d77694424b17c471734f (patch)
tree62e1ee19c1cc4797765719f43cea79b47ef73841
parentRemove non-const BookmarkItem::icon (diff)
downloadsmolbote-e5dd0243e9a7e4e17990d77694424b17c471734f.tar.xz
BookmarksToolbar: show text next to icon
-rw-r--r--src/bookmarks/bookmarkstoolbar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bookmarks/bookmarkstoolbar.cpp b/src/bookmarks/bookmarkstoolbar.cpp
index 11dd712..55710ca 100644
--- a/src/bookmarks/bookmarkstoolbar.cpp
+++ b/src/bookmarks/bookmarkstoolbar.cpp
@@ -15,6 +15,7 @@ BookmarksToolbar::BookmarksToolbar(const BookmarkModel *model, MainWindow *paren
: QToolBar(parent)
{
m_window = parent;
+ setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
const auto *root = model->root();
for(int i = 0; i < root->childCount(); ++i) {
@@ -52,7 +53,7 @@ void BookmarksToolbar::addFolder(const BookmarkItem *item, QMenu *where)
else if(child->type() == BookmarkItem::Folder) {
auto *action = addAction(child->data(BookmarkItem::Title).toString());
- //action->setIcon(child->icon());
+ action->setIcon(child->icon());
auto *menu = new QMenu(this);
addFolder(child, menu);