summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-02-02 11:12:15 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2010-02-02 11:12:15 (GMT)
commit36c0ffcae4f209d6524e943b3edd09c2c5890536 (patch)
tree833d81b3c0d7b50d310e49a3f190d7b41df7f9ae
parente4835d58381cd33fe067b05bfd6301d2246e3e67 (diff)
downloadQt-36c0ffcae4f209d6524e943b3edd09c2c5890536.zip
Qt-36c0ffcae4f209d6524e943b3edd09c2c5890536.tar.gz
Qt-36c0ffcae4f209d6524e943b3edd09c2c5890536.tar.bz2
Remove PrintDialog frame on Mac
On the mac, toplevel windows should not have a frame. This patch simply removes the frame on mac only. Reviewed-by: trond
-rw-r--r--src/gui/widgets/qprintpreviewwidget.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/qprintpreviewwidget.cpp b/src/gui/widgets/qprintpreviewwidget.cpp
index 747a227..45b15ef 100644
--- a/src/gui/widgets/qprintpreviewwidget.cpp
+++ b/src/gui/widgets/qprintpreviewwidget.cpp
@@ -151,7 +151,11 @@ class GraphicsView : public QGraphicsView
public:
GraphicsView(QWidget* parent = 0)
: QGraphicsView(parent)
- {}
+ {
+#ifdef Q_WS_MAC
+ setFrameStyle(QFrame::NoFrame);
+#endif
+ }
signals:
void resized();