Ignore:
Timestamp:
02/13/14 02:23:11 (5 months ago)
Author:
yurkis <yurkis@…>
Branches:
master, releng/10.0.1, releng/10.0.2
Children:
0c4f3f3
Parents:
53829e6
Message:

About UI - Added package set displaying; Remove depricated unstable snapshot detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/about-gui/mainwindow.cpp

    r7d0456b r1a4fc7a  
    8888    Ver = pcbsd::Utils::runShellCommand("uname -r").at(0); 
    8989    ui->VersionLabel->setText(Ver+" ("+Arch+")"); 
    90     ui->UnstableLabel->setVisible(false); 
    91     Ver = Ver.trimmed(); 
    92     int idx = Ver.lastIndexOf("-"); 
    93     if (idx>=0) 
    94     { 
    95         QString SnapDate = Ver.mid(idx+1); 
    96         if (SnapDate.length() == 8) 
    97         { 
    98             int year = SnapDate.left(4).toInt(); 
    99             int month= SnapDate.mid(4,2).toInt(); 
    100             int day= SnapDate.right(2).toInt(); 
    101             QString SnapshotText = QString( 
    102                         tr("Testing snapshot %1. May be unstable!")).arg( 
    103                         QDate(year,month,day).toString(Qt::SystemLocaleShortDate)); 
    104             ui->UnstableLabel->setText(SnapshotText); 
    105             ui->UnstableLabel->setVisible(true); 
    106         } 
    107     } 
     90 
     91    QString PkgSet = pcbsd::Utils::getValFromPCBSDConf("PACKAGE_SET"); 
     92    if (PkgSet.toUpper().trimmed() == "EDGE") 
     93    { 
     94        PkgSet+=QString(" ") + tr("(unstable)"); 
     95    } 
     96    ui->PkgSetLabel->setText(PkgSet); 
     97 
    10898 
    10999    // CPU 
Note: See TracChangeset for help on using the changeset viewer.