diff options
Diffstat (limited to 'kdeui/ktoolbar.cpp')
-rw-r--r-- | kdeui/ktoolbar.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kdeui/ktoolbar.cpp b/kdeui/ktoolbar.cpp index b569a2ec6..fec97dea1 100644 --- a/kdeui/ktoolbar.cpp +++ b/kdeui/ktoolbar.cpp @@ -88,6 +88,7 @@ public: m_enableContext = true; + m_parent = NULL; m_xmlguiClient = 0; oldPos = TQt::DockUnmanaged; @@ -225,7 +226,8 @@ KToolBar::~KToolBar() void KToolBar::init( bool readConfig, bool honorStyle ) { - d = new KToolBarPrivate; + d = new KToolBarPrivate(); + setFullSize( true ); d->m_honorStyle = honorStyle; context = 0; @@ -1915,8 +1917,9 @@ void KToolBar::loadState( const TQDomElement &element ) // Apply transparent-toolbar-moving setting (ok, this is global to the mainwindow, // but we do it only if there are toolbars...) // KDE4: move to KMainWindow - if ( transparentSetting() != !mw->opaqueMoving() ) + if ( transparentSetting() != !mw->opaqueMoving() ) { mw->setOpaqueMoving( !transparentSetting() ); + } } int KToolBar::dockWindowIndex() |