Windows: Increase the max length of a system tray tooltip.
It's 128 on Qt4, so lets maintain that limit. On older Windows versions (< WIN2K) 64 will be used. Change-Id: I96156c6f142e6e095227cc5a13f2b653408df968 Task-number: QTBUG-33461 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
a252f434e6
commit
8f22ae5c1e
@ -242,7 +242,7 @@ void QSystemTrayIconSys::setIconContents(NOTIFYICONDATA &tnd)
|
|||||||
tnd.hIcon = hIcon;
|
tnd.hIcon = hIcon;
|
||||||
const QString tip = q->toolTip();
|
const QString tip = q->toolTip();
|
||||||
if (!tip.isNull())
|
if (!tip.isNull())
|
||||||
qStringToLimitedWCharArray(tip, tnd.szTip, 64);
|
qStringToLimitedWCharArray(tip, tnd.szTip, sizeof(tnd.szTip)/sizeof(wchar_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int iconFlag( QSystemTrayIcon::MessageIcon icon )
|
static int iconFlag( QSystemTrayIcon::MessageIcon icon )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user