|
|
@ -58,8 +58,8 @@ AlarmDockWindow::AlarmDockWindow( const char *name )
|
|
|
|
|
|
|
|
|
|
|
|
// Set up icons
|
|
|
|
// Set up icons
|
|
|
|
KGlobal::iconLoader()->addAppDir( "korgac" );
|
|
|
|
KGlobal::iconLoader()->addAppDir( "korgac" );
|
|
|
|
mPixmapEnabled = loadIcon( "korgac" );
|
|
|
|
mPixmapEnabled = loadSizedIcon( "korgac", width() );
|
|
|
|
mPixmapDisabled = loadIcon( "korgac_disabled" );
|
|
|
|
mPixmapDisabled = loadSizedIcon( "korgac_disabled", width() );
|
|
|
|
|
|
|
|
|
|
|
|
setPixmap( alarmsEnabled ? mPixmapEnabled : mPixmapDisabled );
|
|
|
|
setPixmap( alarmsEnabled ? mPixmapEnabled : mPixmapDisabled );
|
|
|
|
|
|
|
|
|
|
|
@ -104,6 +104,17 @@ AlarmDockWindow::~AlarmDockWindow()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void AlarmDockWindow::resizeEvent ( QResizeEvent * )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// Honor Free Desktop specifications that allow for arbitrary system tray icon sizes
|
|
|
|
|
|
|
|
mPixmapEnabled = loadSizedIcon( "korgac", width() );
|
|
|
|
|
|
|
|
mPixmapDisabled = loadSizedIcon( "korgac_disabled", width() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KConfig *config = kapp->config();
|
|
|
|
|
|
|
|
bool alarmsEnabled = config->readBoolEntry( "Enabled", true );
|
|
|
|
|
|
|
|
setPixmap( alarmsEnabled ? mPixmapEnabled : mPixmapDisabled );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void AlarmDockWindow::slotUpdate( int reminders )
|
|
|
|
void AlarmDockWindow::slotUpdate( int reminders )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QToolTip::remove( this );
|
|
|
|
QToolTip::remove( this );
|
|
|
|