Ignore:
Timestamp:
04/18/13 07:56:14 (20 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
aa082fc8
Parents:
92b4ba0
Message:

Get the mountTray saving/loading it's settings properly, and integrate those settings with the new Settings dlialog. You can now turn the disk space watcher off/on and set the refresh times/flags within the settings dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-mounttray/fsWatcher.cpp

    rbb6089a r891636a  
    44  //setup the timer 
    55  timer = new QTimer(); 
     6  timer->setSingleShot(TRUE); 
    67  QObject::connect(timer, SIGNAL(timeout()), this, SLOT(checkFS())); 
    78} 
     
    1112 
    1213void FSWatcher::start(int ms){  
    13     timer->start(ms);  
     14    timer->stop(); 
     15    timer->setInterval(ms); //max time between system checks 
     16    timer->start();  
    1417    QTimer::singleShot(2000,this,SLOT(checkFS()) ); //make sure to perform a check when it starts up 
    1518} 
     
    100103} 
    101104 
    102 //====== Private Slot ======= 
     105//====== Public Slot ======= 
    103106void FSWatcher::checkFS(){ 
    104107  QStringList devList = getFSmountpoints(); 
     
    117120    emit FSWarning(title,message); 
    118121  } 
     122  timer->start(); //reset the timer again 
    119123} 
    120124 
     125//===== Calculate Percentages ===== 
    121126int FSWatcher::calculatePercentage(int used, int total){ 
    122127  double U = used; 
Note: See TracChangeset for help on using the changeset viewer.