Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

void UIcon::showDelayedPopup ( const QString &  text,
QSystemTrayIcon::MessageIcon  icon = QSystemTrayIcon::Critical 
) [private, slot]

For for a delayed popup.

Parameters:
textThe text should be show
iconWhich icon (and style) use

Definition at line 240 of file UIcon.cpp.

References MessageIconTheDelayedPopup, TextOfTheDelayedPopup, TimerForTheDelayedPopup, and UIconIsListen.

Referenced by CatchAction(), dispatchParam(), and UIcon().

{
      //If not in listen mode is useless to continu
      if(UIconIsListen)
      {
            MessageIconTheDelayedPopup=icon;
            if(!TimerForTheDelayedPopup.isActive())
                  TimerForTheDelayedPopup.start();
            if(TextOfTheDelayedPopup.isEmpty())
                  TextOfTheDelayedPopup=text;
            else
            {
                  TextOfTheDelayedPopup+="\n";
                  TextOfTheDelayedPopup+=text;
            }
      }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index