Changeset 502:4c67de476ea3 in qutecom-2.2
- Timestamp:
- Feb 23, 2010 12:39:31 AM (3 years ago)
- Branch:
- default
- Location:
- wengophone/src/presentation/qt
- Files:
-
- 5 edited
-
QtBrowserWidget.cpp (modified) (1 diff)
-
QtToolBar.cpp (modified) (1 diff)
-
chat/QtChatHistoryWidget.cpp (modified) (6 diffs)
-
chat/QtChatHistoryWidget.h (modified) (2 diffs)
-
chat/QtChatTheme.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wengophone/src/presentation/qt/QtBrowserWidget.cpp
r491 r502 167 167 //} 168 168 }*/ 169 else if(surl.contains(ANCHOR_SECRET_PERMANENT))170 {171 openwengo_secret_permanent_signal();172 }173 else if(surl.contains(ANCHOR_SFR_FR))174 {175 QDesktopServices::openUrl(QUrl("http://www.sfr.fr"));176 }177 else if(surl.contains(ANCHOR_MON_COMPTE))178 {179 QDesktopServices::openUrl(QUrl("http://www.sfr.fr/acces/index.jsp"));180 }181 else if(surl.contains(ANCHOR_REPONDEUR))182 {183 QDesktopServices::openUrl(QUrl("https://moncompte-neufbox.sfr.fr/moncompte-webapp/moncompte/servicesWeb/consulterMessagerie.action"));184 }185 169 } -
wengophone/src/presentation/qt/QtToolBar.cpp
r499 r502 607 607 #if defined(OS_MACOSX) 608 608 EnumToolBarMode::ToolBarMode toolBarMode = EnumToolBarMode::ToolBarModeIconsOnly; 609 #el if609 #else 610 610 Config & config = ConfigManager::getInstance().getCurrentConfig(); 611 611 std::string text = config.getToolBarMode(); -
wengophone/src/presentation/qt/chat/QtChatHistoryWidget.cpp
r499 r502 73 73 QUrl url_css("data:text/css;charset=utf-8;base64,"+file.readAll().toBase64()); 74 74 page()->settings()->setUserStyleSheetUrl(url_css); 75 //QString css = _theme->getStyleSheet();76 //document()->setDefaultStyleSheet(css);77 78 //QFile file_css(list_base.at(i)+"main.css");79 //file_css.open(QIODevice::ReadOnly);80 //QUrl url_css("data:text/css;charset=utf-8;base64,"+css.toLatin1().toBase64());81 //page()->settings()->setUserStyleSheetUrl(url_css);82 75 } 83 76 … … 163 156 else 164 157 _data += html; 165 166 setHtml(_data,QUrl("file://"+_theme->getCurrentThemePath())); 167 //scrollToBottom(); 158 159 updateHtml(); 168 160 } 169 161 … … 182 174 183 175 _data += html; 184 setHtml(_data,QUrl("file://"+_theme->getCurrentThemePath())); 185 //ensureCursorVisible();176 177 updateHtml(); 186 178 } 187 179 … … 190 182 } 191 183 192 QVariant QtChatHistoryWidget::loadResource(int type, const QUrl& url) {193 /*if (type != QTextDocument::ImageResource || url.scheme() != "avatar") {184 /*QVariant QtChatHistoryWidget::loadResource(int type, const QUrl& url) { 185 if (type != QTextDocument::ImageResource || url.scheme() != "avatar") { 194 186 return QTextBrowser::loadResource(type, url); 195 187 } … … 218 210 } 219 211 220 return QVariant(pixmap); */221 } 212 return QVariant(pixmap); 213 }*/ 222 214 223 215 void QtChatHistoryWidget::scrollToBottom() { … … 239 231 scrollToBottom(); 240 232 } 233 234 void QtChatHistoryWidget::updateHtml() 235 { 236 #if defined(OS_WINDOWS) 237 setHtml(_data,QUrl(_theme->getCurrentThemePath())); 238 #else 239 setHtml(_data,QUrl("file://"+_theme->getCurrentThemePath())); 240 #endif 241 } -
wengophone/src/presentation/qt/chat/QtChatHistoryWidget.h
r499 r502 63 63 * Overloaded to implement avatar loading 64 64 */ 65 virtual QVariant loadResource(int type, const QUrl& url);65 //virtual QVariant loadResource(int type, const QUrl& url); 66 66 67 67 void setAvatarPixmap(const QString& name, const QPixmap& pixmap); … … 81 81 82 82 private: 83 void updateHtml(); 84 83 85 QString _data; 84 86 -
wengophone/src/presentation/qt/chat/QtChatTheme.cpp
r499 r502 71 71 if (baseDir.isEmpty()) { 72 72 Config & config = ConfigManager::getInstance().getCurrentConfig(); 73 baseDir = QString::fromUtf8(config.getResourcesDir().c_str()) 74 + "/chat/"; 73 baseDir = QString::fromUtf8(config.getResourcesDir().c_str()); 74 75 #if defined(OS_WINDOWS) 76 baseDir = baseDir.replace("\\","/"); 77 #endif 78 baseDir += "/chat/"; 75 79 } 76 80 return baseDir;
Note: See TracChangeset
for help on using the changeset viewer.
