[PC-BSD Commits] r17264 - pcbsd/current/src-qt4/pc-mounttray
svn at pcbsd.org
svn at pcbsd.org
Wed Jun 13 07:56:32 PDT 2012
Author: kenmoore
Date: 2012-06-13 14:56:29 +0000 (Wed, 13 Jun 2012)
New Revision: 17264
Modified:
pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp
Log:
Add the device to the pc-mounttray item tooltips
Modified: pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp 2012-06-13 12:47:30 UTC (rev 17263)
+++ pcbsd/current/src-qt4/pc-mounttray/mountTray.cpp 2012-06-13 14:56:29 UTC (rev 17264)
@@ -176,7 +176,7 @@
}else if(act==1){
//Device connected (add new device entry)
if( findDeviceInList(device) == -1 ){
- device->setToolTip(tr("Unmounted - May be removed"));
+ device->setToolTip(device->whatsThis()+" "+tr("unmounted")+" - "+tr("May be removed"));
devList << device;
numAvail++;
status = TRUE;
@@ -185,7 +185,7 @@
}else if(act==2){
//Mount device
if( mountDevice(device) ){
- device->setToolTip( tr("Mounted")+" - "+MOUNTDIR+device->text() );
+ device->setToolTip( device->whatsThis()+" "+tr("mounted")+" - "+MOUNTDIR+device->text() );
numMount++;
status = TRUE;
}
@@ -193,7 +193,7 @@
}else if(act==3){
//Unmount device
if( unmountDevice(device) ){
- device->setToolTip(tr("Unmounted - May be removed"));
+ device->setToolTip(device->whatsThis()+" "+tr("unmounted")+" - "tr("May be removed"));
numMount--;
status = TRUE;
}
More information about the Commits
mailing list