summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qt_mac_p.h
diff options
context:
space:
mode:
authorCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-04-27 11:26:42 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-04-27 11:30:51 (GMT)
commit4580c2e9c2bbcb911f9e1cecd4551054598d256d (patch)
treeb38eb05baac4864e309921b843b8246ffd4ab087 /src/gui/kernel/qt_mac_p.h
parent9cea45515ef283c9a870c6f515da50d31addafcf (diff)
downloadQt-4580c2e9c2bbcb911f9e1cecd4551054598d256d.zip
Qt-4580c2e9c2bbcb911f9e1cecd4551054598d256d.tar.gz
Qt-4580c2e9c2bbcb911f9e1cecd4551054598d256d.tar.bz2
QTabWidget documentMode not working correctly on Mac
This feature was implemented in Carbon and was never ported to Cocoa. The major problem is the fact that Cocoa draws a line under the titlebar, regardless of what we say. The only way to avoid drawing that line is by adding a native toolbar and ask it not to draw its baseline. If there is not toolbar, as it happens in this case, there is no way to prevent that line from being drawn. So instead we paint over that line and hope for the best. Task-number: QTBUG-8159 Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/kernel/qt_mac_p.h')
-rw-r--r--src/gui/kernel/qt_mac_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qt_mac_p.h b/src/gui/kernel/qt_mac_p.h
index 7bfb257..3341ce1 100644
--- a/src/gui/kernel/qt_mac_p.h
+++ b/src/gui/kernel/qt_mac_p.h
@@ -57,6 +57,7 @@
#ifdef __OBJC__
#include <Cocoa/Cocoa.h>
+#include <objc/runtime.h>
#endif
#include <CoreServices/CoreServices.h>