ginebra2/RecentUrlToolbarSnippet.cpp
changeset 15 73c48011b8c7
parent 6 1c3b8676e58c
--- a/ginebra2/RecentUrlToolbarSnippet.cpp	Fri Sep 17 08:27:10 2010 +0300
+++ b/ginebra2/RecentUrlToolbarSnippet.cpp	Mon Oct 04 00:04:54 2010 +0300
@@ -25,7 +25,7 @@
 #include "ToolbarChromeItem.h"
 #include "ViewStack.h"
 #include "GWebContentView.h"
-#include "BookmarksManager.h"
+#include "HistoryManager.h"
 #include <QDebug>
 
 namespace GVA {
@@ -35,6 +35,7 @@
         : DualButtonToolbarSnippet(elementId, chrome, element),
           m_action1(0)
     {      
+        connect(m_chrome, SIGNAL(aspectChanged(int)) , this, SLOT(onAspectChanged()));    	
     }
 
     RecentUrlToolbarSnippet::~RecentUrlToolbarSnippet()
@@ -43,6 +44,10 @@
             delete m_action1;
     }
 
+     void RecentUrlToolbarSnippet::onAspectChanged( ) {
+    	 
+        updateOwnerArea();      
+     }     
     RecentUrlToolbarSnippet * RecentUrlToolbarSnippet::instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element)
     {
         RecentUrlToolbarSnippet * that = new RecentUrlToolbarSnippet( elementId, chrome, element );
@@ -94,8 +99,8 @@
             }
             else if (t->actionId == RECENTURL_VIEW_ACTION_CLEARALL) {
                 if( !action ) {
-					// Action is created/handled/owned by BookmarksManager
-                    QAction * a = WRT::BookmarksManager::getSingleton()->getActionClearHistory();
+					// Action is created/handled/owned by HistoryManager
+                    QAction * a = WRT::HistoryManager::getSingleton()->getActionClearHistory();
                     button->setDefaultAction(a);
                 }
             }