ginebra2/WindowToolbarSnippet.cpp
changeset 15 73c48011b8c7
parent 6 1c3b8676e58c
equal deleted inserted replaced
13:491a1d15372f 15:73c48011b8c7
    31     WindowToolbarSnippet::WindowToolbarSnippet(const QString& elementId, ChromeWidget * chrome,
    31     WindowToolbarSnippet::WindowToolbarSnippet(const QString& elementId, ChromeWidget * chrome,
    32                                                const QWebElement & element)
    32                                                const QWebElement & element)
    33         : DualButtonToolbarSnippet(elementId, chrome, element)
    33         : DualButtonToolbarSnippet(elementId, chrome, element)
    34     {
    34     {
    35         m_type = TOOLBAR_WINDOWS_VIEW;
    35         m_type = TOOLBAR_WINDOWS_VIEW;
       
    36         connect(m_chrome, SIGNAL(aspectChanged(int)) , this, SLOT(onAspectChanged()));
    36     }
    37     }
    37 
    38 
    38     WindowToolbarSnippet::~WindowToolbarSnippet()
    39     WindowToolbarSnippet::~WindowToolbarSnippet()
    39     {
    40     {
       
    41     }
       
    42     
       
    43     void WindowToolbarSnippet::onAspectChanged( ) {
       
    44         	 
       
    45         updateOwnerArea();      
    40     }
    46     }
    41 
    47 
    42     WindowToolbarSnippet * WindowToolbarSnippet::instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element)
    48     WindowToolbarSnippet * WindowToolbarSnippet::instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element)
    43     {
    49     {
    44         WindowToolbarSnippet * that = new WindowToolbarSnippet(elementId, chrome, element);
    50         WindowToolbarSnippet * that = new WindowToolbarSnippet(elementId, chrome, element);