ginebra2/SettingsToolbarSnippet.cpp
changeset 12 afcd8e6d025b
parent 3 0954f5dd2cd0
child 16 3c88a81ff781
--- a/ginebra2/SettingsToolbarSnippet.cpp	Wed Sep 01 13:56:21 2010 -0400
+++ b/ginebra2/SettingsToolbarSnippet.cpp	Fri Sep 17 12:11:40 2010 -0400
@@ -35,6 +35,7 @@
         : DualButtonToolbarSnippet(elementId, chrome, element),
           m_action1(0), m_action2(0)
     {      
+        connect(m_chrome, SIGNAL(aspectChanged(int)) , this, SLOT(onAspectChanged()));
     }
 
     SettingsToolbarSnippet::~SettingsToolbarSnippet()
@@ -44,7 +45,11 @@
         if(m_action2)
             delete m_action2;
     }
-
+    void SettingsToolbarSnippet::onAspectChanged( ) {
+       	
+        updateOwnerArea();
+          
+    }
     SettingsToolbarSnippet * SettingsToolbarSnippet::instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element)
     {
         SettingsToolbarSnippet * that = new SettingsToolbarSnippet( elementId, chrome, element );