equal
deleted
inserted
replaced
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); |