Changeset 12941 for fact/Evidence/GUI.cc


Ignore:
Timestamp:
02/24/12 23:05:19 (13 years ago)
Author:
ogrimm
Message:
Less digits deplayed in widgets
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/Evidence/GUI.cc

    r12940 r12941  
    132132        setText(Text.section(' ', 1));
    133133  }
    134   else if (!ShowAsTime) setText(Text);
     134  else if (!ShowAsTime) {
     135    bool OK;
     136        double Num = Text.toDouble(&OK);
     137       
     138        if (OK) setText(QString::number(Num, 'g', 4));
     139        else setText(Text);
     140  }
    135141  else setText(QDateTime::fromTime_t(Text.toInt()).toString());
    136142
Note: See TracChangeset for help on using the changeset viewer.