1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

ComboTabBar: Remove blured background support

This commit is contained in:
David Rosca 2015-10-11 10:52:04 +02:00
parent 53e4512d31
commit e127000cb7
2 changed files with 0 additions and 17 deletions

View File

@ -46,7 +46,6 @@ ComboTabBar::ComboTabBar(QWidget* parent)
, m_mainBarOverFlowed(false)
, m_lastAppliedOverflow(false)
, m_usesScrollButtons(false)
, m_bluredBackground(false)
, m_blockCurrentChangedSignal(false)
{
QObject::setObjectName(QSL("tabbarwidget"));
@ -564,11 +563,6 @@ void ComboTabBar::setCloseButtonsToolTip(const QString &tip)
m_closeButtonsToolTip = tip;
}
void ComboTabBar::enableBluredBackground(bool enable)
{
m_bluredBackground = enable;
}
int ComboTabBar::mainTabBarWidth() const
{
return m_mainTabBar->width();
@ -630,15 +624,6 @@ void ComboTabBar::wheelEvent(QWheelEvent* event)
bool ComboTabBar::eventFilter(QObject* obj, QEvent* ev)
{
if (m_bluredBackground && ev->type() == QEvent::Paint &&
(obj == m_leftContainer || obj == m_rightContainer ||
obj == m_mainTabBarWidget || obj == m_pinnedTabBarWidget)) {
QPaintEvent* event = static_cast<QPaintEvent*>(ev);
QPainter p(qobject_cast<QWidget*>(obj));
p.setCompositionMode(QPainter::CompositionMode_Clear);
p.fillRect(event->rect(), QColor(0, 0, 0, 0));
}
if (obj == m_mainTabBar && ev->type() == QEvent::Resize) {
QResizeEvent* event = static_cast<QResizeEvent*>(ev);
if (event->oldSize().height() != event->size().height()) {

View File

@ -121,7 +121,6 @@ public:
void insertCloseButton(int index);
void setCloseButtonsToolTip(const QString &tip);
void enableBluredBackground(bool enable);
QTabBar::ButtonPosition iconButtonPosition();
QTabBar::ButtonPosition closeButtonPosition();
@ -202,7 +201,6 @@ private:
bool m_mainBarOverFlowed;
bool m_lastAppliedOverflow;
bool m_usesScrollButtons;
bool m_bluredBackground;
bool m_blockCurrentChangedSignal;
friend class TabBarHelper;