Updated linux stylesheet

Default linux style uses now the provided SVG buttons for the floating widget title bar close button
This commit is contained in:
Uwe Kindler
2020-06-18 09:21:46 +02:00
parent e2cebd9dcf
commit 3de877fe56
3 changed files with 67 additions and 10 deletions

View File

@@ -45,7 +45,7 @@ namespace ads
{
using tTabLabel = CElidingLabel;
using tCloseButton = QPushButton;
using tCloseButton = QToolButton;
/**
* @brief Private data class of public interface CFloatingWidgetTitleBar
@@ -81,7 +81,7 @@ void FloatingWidgetTitleBarPrivate::createLayout()
CloseButton = new tCloseButton();
CloseButton->setObjectName("floatingTitleCloseButton");
CloseButton->setFlat(true);
CloseButton->setAutoRaise(true);
// The standard icons do does not look good on high DPI screens
QIcon CloseIcon;
@@ -190,8 +190,7 @@ void CFloatingWidgetTitleBar::setTitle(const QString &Text)
//============================================================================
void CFloatingWidgetTitleBar::updateStyle()
{
internal::repolishStyle(this);
internal::repolishStyle(d->TitleLabel);
internal::repolishStyle(this, internal::RepolishDirectChildren);
}
} // namespace ads