diff --git a/bin/themes/chrome/images/tab-left-arrow.png b/bin/themes/chrome/images/tab-left-arrow.png new file mode 100644 index 000000000..fcc62a2c5 Binary files /dev/null and b/bin/themes/chrome/images/tab-left-arrow.png differ diff --git a/bin/themes/chrome/images/tab-right-arrow.png b/bin/themes/chrome/images/tab-right-arrow.png new file mode 100644 index 000000000..89b5aeb83 Binary files /dev/null and b/bin/themes/chrome/images/tab-right-arrow.png differ diff --git a/bin/themes/chrome/main.css b/bin/themes/chrome/main.css index 7f25ba749..9562803b6 100644 --- a/bin/themes/chrome/main.css +++ b/bin/themes/chrome/main.css @@ -108,6 +108,18 @@ width: 0px; } +#tabbar-button-right +{ + qproperty-icon: url(images/tab-right-arrow.png); + qproperty-fixedsize: 15px 25px; +} + +#tabbar-button-left +{ + qproperty-icon: url(images/tab-left-arrow.png); + qproperty-fixedsize: 15px 25px; +} + #tabwidget-button-opentabs { qproperty-multiIcon: url(images/tabs-list-button.png); diff --git a/bin/themes/default/images/tab-left-arrow.png b/bin/themes/default/images/tab-left-arrow.png new file mode 100644 index 000000000..fcc62a2c5 Binary files /dev/null and b/bin/themes/default/images/tab-left-arrow.png differ diff --git a/bin/themes/default/images/tab-right-arrow.png b/bin/themes/default/images/tab-right-arrow.png new file mode 100644 index 000000000..89b5aeb83 Binary files /dev/null and b/bin/themes/default/images/tab-right-arrow.png differ diff --git a/bin/themes/default/main.css b/bin/themes/default/main.css index 1825d4a2a..5a048ae0b 100644 --- a/bin/themes/default/main.css +++ b/bin/themes/default/main.css @@ -123,6 +123,18 @@ width: 0px; } +#tabbar-button-right +{ + qproperty-icon: url(images/tab-right-arrow.png); + qproperty-fixedsize: 15px 25px; +} + +#tabbar-button-left +{ + qproperty-icon: url(images/tab-left-arrow.png); + qproperty-fixedsize: 15px 25px; +} + #tabwidget-button-opentabs::menu-indicator { background: url(images/transp.png); diff --git a/bin/themes/linux/images/tab-left-arrow.png b/bin/themes/linux/images/tab-left-arrow.png new file mode 100644 index 000000000..fcc62a2c5 Binary files /dev/null and b/bin/themes/linux/images/tab-left-arrow.png differ diff --git a/bin/themes/linux/images/tab-right-arrow.png b/bin/themes/linux/images/tab-right-arrow.png new file mode 100644 index 000000000..89b5aeb83 Binary files /dev/null and b/bin/themes/linux/images/tab-right-arrow.png differ diff --git a/bin/themes/linux/main.css b/bin/themes/linux/main.css index 1819fa4ab..46f6e36be 100644 --- a/bin/themes/linux/main.css +++ b/bin/themes/linux/main.css @@ -85,6 +85,18 @@ width: 0px; } +#tabbar-button-right +{ + qproperty-icon: url(images/tab-right-arrow.png); + qproperty-fixedsize: 15px 25px; +} + +#tabbar-button-left +{ + qproperty-icon: url(images/tab-left-arrow.png); + qproperty-fixedsize: 15px 25px; +} + #tabwidget-button-opentabs { qproperty-icon: url(images/tabs-list-button.png); diff --git a/bin/themes/mac/images/tab-left-arrow.png b/bin/themes/mac/images/tab-left-arrow.png new file mode 100644 index 000000000..fcc62a2c5 Binary files /dev/null and b/bin/themes/mac/images/tab-left-arrow.png differ diff --git a/bin/themes/mac/images/tab-right-arrow.png b/bin/themes/mac/images/tab-right-arrow.png new file mode 100644 index 000000000..89b5aeb83 Binary files /dev/null and b/bin/themes/mac/images/tab-right-arrow.png differ diff --git a/bin/themes/mac/main.css b/bin/themes/mac/main.css index 71a181d82..83b34ae2c 100644 --- a/bin/themes/mac/main.css +++ b/bin/themes/mac/main.css @@ -103,6 +103,18 @@ width: 0px; } +#tabbar-button-right +{ + qproperty-icon: url(images/tab-right-arrow.png); + qproperty-fixedsize: 15px 25px; +} + +#tabbar-button-left +{ + qproperty-icon: url(images/tab-left-arrow.png); + qproperty-fixedsize: 15px 25px; +} + #tabwidget-button-opentabs { qproperty-multiIcon: url(images/tabs-list-button.png); diff --git a/bin/themes/windows/images/tab-left-arrow.png b/bin/themes/windows/images/tab-left-arrow.png new file mode 100644 index 000000000..fcc62a2c5 Binary files /dev/null and b/bin/themes/windows/images/tab-left-arrow.png differ diff --git a/bin/themes/windows/images/tab-right-arrow.png b/bin/themes/windows/images/tab-right-arrow.png new file mode 100644 index 000000000..89b5aeb83 Binary files /dev/null and b/bin/themes/windows/images/tab-right-arrow.png differ diff --git a/bin/themes/windows/main.css b/bin/themes/windows/main.css index 124cb221b..fec4970f2 100644 --- a/bin/themes/windows/main.css +++ b/bin/themes/windows/main.css @@ -113,6 +113,18 @@ width: 0px; } +#tabbar-button-right +{ + qproperty-icon: url(images/tab-right-arrow.png); + qproperty-fixedsize: 15px 25px; +} + +#tabbar-button-left +{ + qproperty-icon: url(images/tab-left-arrow.png); + qproperty-fixedsize: 15px 25px; +} + #tabwidget-button-opentabs { qproperty-icon: url(images/tabs-list-button.png); diff --git a/src/lib/tools/combotabbar.cpp b/src/lib/tools/combotabbar.cpp index 0b9da7ef8..5ab692415 100644 --- a/src/lib/tools/combotabbar.cpp +++ b/src/lib/tools/combotabbar.cpp @@ -974,6 +974,7 @@ void TabBarHelper::paintEvent(QPaintEvent* event) QTabBar::paintEvent(event); } +#if 0 if (m_scrollArea) { const int tearWidth = 15; const int maxAlpha = 200; @@ -1002,6 +1003,7 @@ void TabBarHelper::paintEvent(QPaintEvent* event) p.fillRect(QRect(globalTopRight, QSize(tearWidth, height())), fade); } } +#endif } void TabBarHelper::mousePressEvent(QMouseEvent* event) @@ -1111,11 +1113,13 @@ TabBarScrollWidget::TabBarScrollWidget(QTabBar* tabBar, QWidget* parent) m_scrollArea->setWidget(m_tabBar); m_leftScrollButton = new ToolButton(this); + m_leftScrollButton->setAutoRaise(true); m_leftScrollButton->setObjectName("tabbar-button-left"); connect(m_leftScrollButton, SIGNAL(pressed()), this, SLOT(scrollStart())); connect(m_leftScrollButton, SIGNAL(released()), this, SLOT(scrollStop())); m_rightScrollButton = new ToolButton(this); + m_rightScrollButton->setAutoRaise(true); m_rightScrollButton->setObjectName("tabbar-button-right"); connect(m_rightScrollButton, SIGNAL(pressed()), this, SLOT(scrollStart())); connect(m_rightScrollButton, SIGNAL(released()), this, SLOT(scrollStop()));