projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5953948
)
Fix window icon for inactive state
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 14 Feb 2009 22:06:55 +0000
(23:06 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Sat, 14 Feb 2009 22:06:55 +0000
(23:06 +0100)
src/qtui/mainwin.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/mainwin.cpp
b/src/qtui/mainwin.cpp
index
9c23443
..
df44431
100644
(file)
--- a/
src/qtui/mainwin.cpp
+++ b/
src/qtui/mainwin.cpp
@@
-199,13
+199,18
@@
MainWin::~MainWin() {
s.setValue("MainWinState", saveState());
}
-// FIXME
void MainWin::updateIcon() {
+#ifdef Q_WS_MAC
+ const int size = 128;
+#else
+ const int size = 48;
+#endif
+
QPixmap icon;
if(Client::isConnected())
- icon = DesktopIcon("quassel",
IconLoader::SizeEnormous
);
+ icon = DesktopIcon("quassel",
size
);
else
- icon = DesktopIcon("quassel_
disconnected", IconLoader::SizeEnormous
);
+ icon = DesktopIcon("quassel_
inactive", size
);
setWindowIcon(icon);
qApp->setWindowIcon(icon);
}