Changeset 19:5bda5f709d7b in SMSSender for src/ui/UIHelper.cpp


Ignore:
Timestamp:
Jun 20, 2009 11:53:22 AM (13 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@17
Message:
  • StrUtils? is now its own class
  • Replaced Glib::ustring by QString; std::map by QMap; std::set<> by QSet; std::set<std::string> by QStringList
  • Validation stub available in VCEditContact.
  • Renamed getters of properties to only the name of the property. (getId() became id())
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ui/UIHelper.cpp

    r18 r19  
    1515
    1616
    17 UIHelper * UIHelper::instance_=0;
    18 UIHelper* UIHelper::instance(){
    19     if (instance_ == 0)
    20         instance_ = new UIHelper;
    21     return instance_;
    22 }
    23 
    24 IBinary* UIHelper::QImageToBinary(const QImage& image) const {
     17IBinary* UIHelper::QImageToBinary(const QImage& image) {
    2518    QByteArray ba;
    2619    QBuffer buffer(&ba);
     
    3225}
    3326
    34 QImage* UIHelper::BinaryToQImage(const IBinary& data) const {
    35     if ((&data == NULL) || (data.getSize() == 0)) {
     27QImage* UIHelper::BinaryToQImage(const IBinary& binary) {
     28    if ((&binary == NULL) || (binary.size() == 0)) {
    3629        return NULL;
    3730    }
    38     QByteArray ba(data.getData(), data.getSize());
     31    QByteArray ba(binary.data(), binary.size());
    3932    QImage* image = new QImage();
    4033    image->loadFromData(ba);
Note: See TracChangeset for help on using the changeset viewer.