summaryrefslogtreecommitdiffstats
path: root/akregator/src/trayicon.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-23 02:17:48 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-06-23 02:18:48 -0500
commit5f8b00b9567d41d1f4681e2240528b9fce2d7b3b (patch)
tree507cae4a17c331c56aeaf5e9ef2978c13064af9b /akregator/src/trayicon.h
parentc830701a444a8f4f1ce8ce55fa7c1aff083ee5cc (diff)
downloadtdepim-5f8b00b9567d41d1f4681e2240528b9fce2d7b3b.tar.gz
tdepim-5f8b00b9567d41d1f4681e2240528b9fce2d7b3b.zip
Use the largest possible font for the unread display in kmail and akregator if the tray icon size is less than 22 pixels
This resolves Bug 1251
Diffstat (limited to 'akregator/src/trayicon.h')
-rw-r--r--akregator/src/trayicon.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/akregator/src/trayicon.h b/akregator/src/trayicon.h
index e491fdaca..7c854666e 100644
--- a/akregator/src/trayicon.h
+++ b/akregator/src/trayicon.h
@@ -35,27 +35,33 @@ namespace Akregator
class TrayIcon : public KSystemTray
{
Q_OBJECT
-
+
public:
static TrayIcon* getInstance();
static void setInstance(TrayIcon* trayIcon);
-
+
TrayIcon(TQWidget *parent = 0, const char *name = 0);
~TrayIcon();
-
+
TQPixmap takeScreenshot() const;
virtual void mousePressEvent(TQMouseEvent *);
+
public slots:
void settingsChanged();
void slotSetUnread(int unread);
void viewButtonClicked();
-
+
+ protected:
+ void resizeEvent(TQResizeEvent *);
+
signals:
void showPart();
private:
+ void setUnread(int unread, bool force);
+
static TrayIcon* m_instance;
-
+
TQPixmap m_defaultIcon;
TQImage m_lightIconImage;
int m_unread;