Ignore:
Timestamp:
10/21/13 08:12:00 (14 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
4bf853e
Parents:
dca28eb
Message:

Remove the old life-preserver from the src-qt4/life-preserver dir, and replace it with src-qt4/life-preserver/lp-tray and src-qt4/life-preserver/lp-gui.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src-qt4/life-preserver/lp-tray/LPMessages.cpp

    re0c368d r6a2483b  
    1616// PUBLIC FUNCTIONS 
    1717// ------------------------------ 
    18 void LPMessages::setMessages(QString msg){ 
    19   if(msg.isEmpty()){ msg = tr("No recent messages"); } 
    20   ui->label_messages->setText(msg); 
     18void LPMessages::setMessages(QString msg, QString err){ 
     19  //standard messages 
     20  if(msg.isEmpty()){ ui->label_messages->setText(tr("No recent messages")); } 
     21  else{ ui->label_messages->setText(msg); } 
     22  //error messages 
     23  ui->label_errors->setText(err); 
     24  if(msg.isEmpty() && !err.isEmpty()){ 
     25    ui->label_messages->setVisible(false); 
     26  }else{ 
     27    ui->label_messages->setVisible(true); 
     28  } 
     29  ui->label_errors->setVisible( !err.isEmpty() ); 
    2130  //Make sure that the messages tab is visible 
    2231  ui->tabWidget->setCurrentWidget(ui->tab_messages); 
    23 } 
    24  
    25 void LPMessages::setErrors(QString err){ 
    26   ui->label_errors->setText(err); 
    27   ui->label_errors->setVisible( !err.isEmpty() ); 
    2832} 
    2933 
Note: See TracChangeset for help on using the changeset viewer.