|
|
|
@ -68,14 +68,16 @@ void TrayWindow::setAvailableUpdates( int n )
|
|
|
|
|
m_updates = n;
|
|
|
|
|
kdDebug() << "TrayWindow obtained " << n << endl;
|
|
|
|
|
|
|
|
|
|
setPixmap( m_updates == 0 ?
|
|
|
|
|
loadSizedIcon( u8( "adept_notifier_ok" ), width() ) :
|
|
|
|
|
loadSizedIcon( u8( "adept_notifier_warning" ), width() ) );
|
|
|
|
|
|
|
|
|
|
if ( m_updates == 0 )
|
|
|
|
|
if ( m_updates == 0 ) {
|
|
|
|
|
if (isShown()) {
|
|
|
|
|
loadSizedIcon( u8( "adept_notifier_ok" ), width() );
|
|
|
|
|
}
|
|
|
|
|
hide();
|
|
|
|
|
else
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
show();
|
|
|
|
|
loadSizedIcon( u8( "adept_notifier_warning" ), width() );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TQToolTip::remove(this);
|
|
|
|
|
TQToolTip::add(this, n == 0 ? i18n( "No updates needed." )
|
|
|
|
@ -90,7 +92,7 @@ void TrayWindow::mouseReleaseEvent(TQMouseEvent *ev)
|
|
|
|
|
KSystemTray::mouseReleaseEvent(ev);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ApportTrayWindow::mousePressEvent(TQMouseEvent *ev)
|
|
|
|
|
void ApportTrayWindow::mousePressEvent(TQMouseEvent * )
|
|
|
|
|
{
|
|
|
|
|
emit clicked();
|
|
|
|
|
hide();
|
|
|
|
@ -102,7 +104,7 @@ void ApportTrayWindow::resizeEvent ( TQResizeEvent * )
|
|
|
|
|
setPixmap( loadSizedIcon(u8("apport"), width()) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RebootTrayWindow::mousePressEvent(TQMouseEvent *ev)
|
|
|
|
|
void RebootTrayWindow::mousePressEvent(TQMouseEvent * )
|
|
|
|
|
{
|
|
|
|
|
emit clicked();
|
|
|
|
|
}
|
|
|
|
|