summaryrefslogtreecommitdiffstats
path: root/korganizer/korgac/alarmdockwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/korgac/alarmdockwindow.cpp')
-rw-r--r--korganizer/korgac/alarmdockwindow.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/korganizer/korgac/alarmdockwindow.cpp b/korganizer/korgac/alarmdockwindow.cpp
index f8f15addf..1f5d5b33c 100644
--- a/korganizer/korgac/alarmdockwindow.cpp
+++ b/korganizer/korgac/alarmdockwindow.cpp
@@ -58,8 +58,8 @@ AlarmDockWindow::AlarmDockWindow( const char *name )
// Set up icons
TDEGlobal::iconLoader()->addAppDir( "korgac" );
- mPixmapEnabled = loadSizedIcon( "korgac", width() );
- mPixmapDisabled = loadSizedIcon( "korgac_disabled", width() );
+ mPixmapEnabled = loadIcon( "korgac" );
+ mPixmapDisabled = loadIcon( "korgac_disabled" );
setPixmap( alarmsEnabled ? mPixmapEnabled : mPixmapDisabled );
@@ -104,7 +104,7 @@ AlarmDockWindow::~AlarmDockWindow()
{
}
-void AlarmDockWindow::resizeEvent ( TQResizeEvent * )
+void AlarmDockWindow::resizeTrayIcon ()
{
// Honor Free Desktop specifications that allow for arbitrary system tray icon sizes
mPixmapEnabled = loadSizedIcon( "korgac", width() );
@@ -115,6 +115,16 @@ void AlarmDockWindow::resizeEvent ( TQResizeEvent * )
setPixmap( alarmsEnabled ? mPixmapEnabled : mPixmapDisabled );
}
+void AlarmDockWindow::resizeEvent ( TQResizeEvent * )
+{
+ resizeTrayIcon();
+}
+
+void AlarmDockWindow::showEvent ( TQShowEvent * )
+{
+ resizeTrayIcon();
+}
+
void AlarmDockWindow::slotUpdate( int reminders )
{
TQToolTip::remove( this );