summaryrefslogtreecommitdiffstats
path: root/kteatime/toplevel.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-07-08 08:21:31 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-07-08 08:21:31 -0500
commitda2a24089061c8dd04f718ec5a5294b4a85276db (patch)
tree16fae1ac8c620f596d0387839f4aa89ad030822e /kteatime/toplevel.h
parent98d74ed28d210ff107acdc6cf42848540a0eb8e1 (diff)
downloadtdetoys-da2a24089061c8dd04f718ec5a5294b4a85276db.tar.gz
tdetoys-da2a24089061c8dd04f718ec5a5294b4a85276db.zip
Avoid excessively long startup time due to oversized tray icon creation when icon widget has not yet been shown
Diffstat (limited to 'kteatime/toplevel.h')
-rw-r--r--kteatime/toplevel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kteatime/toplevel.h b/kteatime/toplevel.h
index 45567e5..02d8c20 100644
--- a/kteatime/toplevel.h
+++ b/kteatime/toplevel.h
@@ -56,6 +56,7 @@ protected:
void mousePressEvent(TQMouseEvent *);
void timerEvent(TQTimerEvent *);
void resizeEvent(TQResizeEvent *);
+ void showEvent(TQShowEvent *);
private slots:
@@ -84,6 +85,9 @@ private slots:
void actionEnableToggled(bool on);
private:
+ void resizeTrayIcon();
+
+private:
static const int DEFAULT_TEA_TIME;