Changeset 40145 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 16, 2012 11:05:02 AM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichTextLabel.cpp
r40142 r40145 20 20 /* Global includes: */ 21 21 #include <QVBoxLayout> 22 #include <QUrl> 22 23 23 24 /* Local includes: */ … … 49 50 { 50 51 return m_pTextEdit->toHtml(); 52 } 53 54 /* Register image: */ 55 void QIRichTextLabel::registerImage(const QImage &image, const QString &strName) 56 { 57 /* Register passed image in internal text-document: */ 58 m_pTextEdit->document()->addResource(QTextDocument::ImageResource, QUrl(strName), QVariant(image)); 51 59 } 52 60 -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichTextLabel.h
r40142 r40145 38 38 QString text() const; 39 39 40 /* Register image: */ 41 void registerImage(const QImage &image, const QString &strName); 42 40 43 public slots: 41 44
Note:
See TracChangeset
for help on using the changeset viewer.