Merge branch 'Plasma/5.8'

wilder-pre-rebase
Martin Gräßlin 9 years ago
commit 47710307a8
  1. 3
      kstyle/breezeshadowhelper.cpp
  2. 6
      kstyle/breezeshadowhelper.h
  3. 15
      kstyle/breezestyle.cpp
  4. 7
      kstyle/breezestyle.h

@ -64,7 +64,8 @@ namespace Breeze
, _shmPool( Q_NULLPTR )
#endif
{
initializeWayland();
// delay till event dispatcher is running as Wayland is highly async
QMetaObject::invokeMethod(this, "initializeWayland", Qt::QueuedConnection);
}
//_______________________________________________________

@ -95,6 +95,9 @@ namespace Breeze
//* unregister widget
void objectDeleted( QObject* );
//* initializes the Wayland specific parts
void initializeWayland();
protected:
//* true if widget is a menu
@ -140,9 +143,6 @@ namespace Breeze
//* uninstall shadow on given widget for Wayland
void uninstallWaylandShadows( QWidget* ) const;
//* initializes the Wayland specific parts
void initializeWayland();
//* gets the shadow margins for the given widget
QMargins shadowMargins( QWidget* ) const;

@ -197,9 +197,24 @@ namespace Breeze
//______________________________________________________________
Style::~Style( void )
{
cleanup();
}
//______________________________________________________________
void Style::unpolish( QApplication* )
{
// NOTE: unpolish is not called in general on tear-down of Application
// only when a new QStyle is loaded by the QApplication unpolish is invoked
cleanup();
}
void Style::cleanup( void )
{
delete _shadowHelper;
_shadowHelper = nullptr;
delete _helper;
_helper = nullptr;
}
//______________________________________________________________

@ -92,7 +92,6 @@ namespace Breeze
//* needed to avoid warnings at compilation time
using ParentStyleClass::polish;
using ParentStyleClass::unpolish;
//* widget polishing
virtual void polish( QWidget* );
@ -100,6 +99,9 @@ namespace Breeze
//* widget unpolishing
virtual void unpolish( QWidget* );
//* application unpolishing
void unpolish( QApplication* ) override;
//* polish scrollarea
void polishScrollArea( QAbstractScrollArea* );
@ -471,6 +473,9 @@ namespace Breeze
private:
//* shared cleanup for unpolish and dtor
void cleanup();
//*@name scrollbar button types (for addLine and subLine )
//@{
ScrollBarButtonType _addLineButtons;

Loading…
Cancel
Save