equal
deleted
inserted
replaced
44 #include "SettingsToolbarSnippet.h" |
44 #include "SettingsToolbarSnippet.h" |
45 #include "ActionButton.h" |
45 #include "ActionButton.h" |
46 #include "ActionButtonSnippet.h" |
46 #include "ActionButtonSnippet.h" |
47 #include "mostvisitedpageview.h" |
47 #include "mostvisitedpageview.h" |
48 #include "mostvisitedsnippet.h" |
48 #include "mostvisitedsnippet.h" |
|
49 #include "TitleUrlContainerSnippet.h" |
49 #include "UrlSearchSnippet.h" |
50 #include "UrlSearchSnippet.h" |
50 #include "EditorSnippet.h" |
51 #include "EditorSnippet.h" |
51 |
52 |
52 #include <QDebug> |
53 #include <QDebug> |
53 |
54 |
157 else if (className == "UrlSearchSnippet") { |
158 else if (className == "UrlSearchSnippet") { |
158 return GUrlSearchSnippet::instance(elementId, m_chrome, element); |
159 return GUrlSearchSnippet::instance(elementId, m_chrome, element); |
159 } |
160 } |
160 else if (className == "TextEditSnippet") { |
161 else if (className == "TextEditSnippet") { |
161 return EditorSnippet::instance(elementId, m_chrome, element); |
162 return EditorSnippet::instance(elementId, m_chrome, element); |
|
163 } |
|
164 else if (className == "TitleUrlContainerSnippet") { |
|
165 return TitleUrlContainerSnippet::instance(elementId, m_chrome, element); |
162 } |
166 } |
163 else { |
167 else { |
164 ChromeSnippet* result = new ChromeSnippet(elementId, m_chrome, 0, element); |
168 ChromeSnippet* result = new ChromeSnippet(elementId, m_chrome, 0, element); |
165 result->setChromeWidget(new QGraphicsWidget()); |
169 result->setChromeWidget(new QGraphicsWidget()); |
166 return result; |
170 return result; |