From d1fec0ad1cf34abde6d6029cf1e49c3e9540a30f Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 28 Aug 2009 14:16:01 +0200 Subject: Add test for the styled close button --- .../auto/uiloader/baseline/css_tab_closebutton.ui | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 tests/auto/uiloader/baseline/css_tab_closebutton.ui diff --git a/tests/auto/uiloader/baseline/css_tab_closebutton.ui b/tests/auto/uiloader/baseline/css_tab_closebutton.ui new file mode 100644 index 0000000..82bd2b5 --- /dev/null +++ b/tests/auto/uiloader/baseline/css_tab_closebutton.ui @@ -0,0 +1,128 @@ + + + Form + + + + 0 + 0 + 400 + 300 + + + + Form + + + *{} + +#tabWidget QTabBar::close-button +{ + background: blue; + border: 2px dotted red; + subcontrol-position: top; +} + + +#tabWidget_2 QTabBar::close-button +{ + image: url(images/checkbox_checked.png); + subcontrol-position: left; +} + +#tabWidget_2 QTabBar::close-button:hover +{ + image: url(images/checkbox_unchecked_hover.png); +} + + +#tabWidget_3 QTabBar::close-button +{ + border-image: url(images/pushbutton.png) 3px; + border-width:3px; +} + + + + + + + + + true + + + + Tab 1 + + + + + + Test the close button in the tabbar + + + true + + + + + + + + Tab 2 + + + + + + + + QTabWidget::East + + + 0 + + + true + + + + Tab 1 + + + + + Tab 2 + + + + + + + + QTabWidget::South + + + 0 + + + true + + + + Tab 1 + + + + + Tab 2 + + + + + + + + + -- cgit v0.12