mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
qdefs message changed everything from \n to <br>, helps for gray source as html
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@217 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
parent
ae35542193
commit
35d7359403
@ -145,7 +145,14 @@ static const int64_t GUI_VERSION=0x20121213;
|
|||||||
static int Message(MessageIndex index, string message,string source)
|
static int Message(MessageIndex index, string message,string source)
|
||||||
{
|
{
|
||||||
static QMessageBox* msgBox;
|
static QMessageBox* msgBox;
|
||||||
|
size_t pos;
|
||||||
|
|
||||||
|
//replace all \n with <br>
|
||||||
|
pos = 0;
|
||||||
|
while((pos = message.find("\n", pos)) != string::npos){
|
||||||
|
message.replace(pos, 1, "<br>");
|
||||||
|
pos += 1;
|
||||||
|
}
|
||||||
message.append(string("<p style=\"font-size:10px;color:grey;\">Source: ") + source + string("</p>"));
|
message.append(string("<p style=\"font-size:10px;color:grey;\">Source: ") + source + string("</p>"));
|
||||||
|
|
||||||
switch(index){
|
switch(index){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user