Hi, I'm trying to add picture support to the jabber plugin and it works fine, except that it isn't visible in the qt4-gui. I have added the patch below to the gui to make it support more image formats, but it seems that is not enough.
I've tested the qt program http://doc.qt.digia.com/qt/widgets-imageviewer.html and it also fails to load the picture saved by the jabber plugin, unless I rename it to remove the extension .pic. Does anyone see any problem with dropping the .pic suffix and modifying the 1.8 upgrade function to drop the .pic suffix when moving existing pictures (except for people running master)? // Erik diff --git a/qt4-gui/src/userdlg/info.cpp b/qt4-gui/src/userdlg/info.cpp index dd5957d..cc23af6 100644 --- a/qt4-gui/src/userdlg/info.cpp +++ b/qt4-gui/src/userdlg/info.cpp @@ -32,6 +32,7 @@ #include <QHeaderView> #include <QLabel> #include <QMovie> +#include <QPicture> #include <QPixmap> #include <QPushButton> #include <QTreeWidget> @@ -1282,7 +1283,13 @@ void UserPages::Info::loadPagePicture(const Licq::User* u) myPictureClearButton->setEnabled(!m_sFilename.isNull()); if (m == NULL) - lblPicture->setText(s); + { + QPicture picture; + if (!m_sFilename.isNull() && picture.load(m_sFilename)) + lblPicture->setPicture(picture); + else + lblPicture->setText(s); + } else { lblPicture->setMovie(m); -- Erik Johansson Home Page: http://ejohansson.se/ PGP Key: http://ejohansson.se/erik.asc -- --- You received this message because you are subscribed to the Google Groups "Licq Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
