|
|
|
@ -46,12 +46,12 @@ Image::Image(const TQString& filename_) : TQImage(filename_), m_linkOnly(false)
|
|
|
|
|
calculateID();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Image::Image(const TQImage& img_, const TQString& format_) : TQImage(img_), m_format(format_), m_linkOnly(false) {
|
|
|
|
|
Image::Image(const TQImage& img_, const TQString& format_) : TQImage(img_), m_format(format_.ascii()), m_linkOnly(false) {
|
|
|
|
|
calculateID();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Image::Image(const TQByteArray& data_, const TQString& format_, const TQString& id_)
|
|
|
|
|
: TQImage(data_), m_id(idClean(id_)), m_format(format_), m_linkOnly(false) {
|
|
|
|
|
: TQImage(data_), m_id(idClean(id_)), m_format(format_.ascii()), m_linkOnly(false) {
|
|
|
|
|
if(isNull()) {
|
|
|
|
|
m_id = TQString();
|
|
|
|
|
}
|
|
|
|
|