From 4b75a98806fb7695f6a9308bddd09238690b6a14 Mon Sep 17 00:00:00 2001 From: nowrep Date: Wed, 1 Jan 2014 18:23:56 +0100 Subject: [PATCH] [WindowsTheme] Add extra icon for add-tab button when outside tabbar. --- .../windows/images/tabbar-addtab-outside.png | Bin 0 -> 223 bytes bin/themes/windows/main.css | 5 +++++ src/lib/webview/tabwidget.cpp | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 bin/themes/windows/images/tabbar-addtab-outside.png diff --git a/bin/themes/windows/images/tabbar-addtab-outside.png b/bin/themes/windows/images/tabbar-addtab-outside.png new file mode 100644 index 0000000000000000000000000000000000000000..a1e88e9b56dc9118bdca05e32742e2aed71c03e1 GIT binary patch literal 223 zcmV<503iQ~P)@(dz#$X^I!Lql9KJ%{Eqx!Cf`d{dlS3%v5#m;gG(|c%^&ju!?mzxJ z*z`vkW1=x8ruZ%enxy>3mRaI!M0qD98?>!*|+P2MR9i^1ibxoe< z6h#4mQVJmi&bhSX{rMilcs*_a98Q;!pO5=_$0@MZMu6+2_ER|C`*nBh-4J^>#OsetObjectName("tabwidget-button-opentabs"); + m_buttonListTabs2->setProperty("outside-tabbar", true); m_buttonListTabs2->setMenu(m_menuTabs); m_buttonListTabs2->setPopupMode(QToolButton::InstantPopup); m_buttonListTabs2->setToolTip(tr("List of tabs")); m_buttonListTabs2->setAutoRaise(true); m_buttonListTabs2->setFocusPolicy(Qt::NoFocus); + m_buttonAddTab2 = new AddTabButton(this, m_tabBar); + m_buttonAddTab2->setProperty("outside-tabbar", true); connect(m_buttonAddTab2, SIGNAL(clicked()), p_QupZilla, SLOT(addTab())); + m_tabBar->addMainBarWidget(m_buttonAddTab2, Qt::AlignRight); m_tabBar->addMainBarWidget(m_buttonListTabs2, Qt::AlignRight); m_buttonAddTab2->hide();