Changeset 299 in PSPA for Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_dialog.cc
- Timestamp:
- Jan 30, 2013, 11:49:18 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_dialog.cc
r272 r299 32 32 GWt_dialog::GWt_dialog( 33 33 WString titre, 34 std::string message,34 WString message, 35 35 iconType icon, 36 36 bool modal, … … 78 78 79 79 // changement des "\n" par des <br> 80 size_t pos = message. find("\n", 0);80 size_t pos = message.toUTF8().find("\n", 0); 81 81 82 82 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"); 86 86 vLayout->addWidget(new Wt::WBreak()); 87 87 } 88 vLayout->addWidget(new Wt::WText( WString::fromUTF8(message)));88 vLayout->addWidget(new Wt::WText(message)); 89 89 90 90
Note: See TracChangeset
for help on using the changeset viewer.