Ignore:
Timestamp:
Jan 30, 2013, 11:49:18 AM (11 years ago)
Author:
garnier
Message:

delete element sur double click

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_dialog.cc

    r272 r299  
    3232GWt_dialog::GWt_dialog(
    3333                       WString titre,
    34                        std::string message,
     34                       WString message,
    3535                       iconType icon,
    3636                       bool modal,
     
    7878   
    7979    // changement des "\n" par des <br>
    80     size_t pos = message.find("\n", 0);
     80    size_t pos = message.toUTF8().find("\n", 0);
    8181   
    8282    while(pos != std::string::npos) {
    83         vLayout->addWidget(new Wt::WText(WString::fromUTF8(message.substr(0,pos))));
    84         message = message.substr(pos+1);
    85         pos = message.find("\n");
     83        vLayout->addWidget(new Wt::WText(WString::fromUTF8(message.toUTF8 ().substr(0,pos))));
     84        message = message.toUTF8 ().substr(pos+1);
     85        pos = message.toUTF8 ().find("\n");
    8686        vLayout->addWidget(new Wt::WBreak());
    8787    }
    88     vLayout->addWidget(new Wt::WText(WString::fromUTF8(message)));
     88    vLayout->addWidget(new Wt::WText(message));
    8989   
    9090   
Note: See TracChangeset for help on using the changeset viewer.