diff options
author | Jens Bache-Wiig <jbache@trolltech.com> | 2010-02-02 11:12:15 (GMT) |
---|---|---|
committer | Jens Bache-Wiig <jbache@trolltech.com> | 2010-02-02 11:12:15 (GMT) |
commit | 36c0ffcae4f209d6524e943b3edd09c2c5890536 (patch) | |
tree | 833d81b3c0d7b50d310e49a3f190d7b41df7f9ae /src/gui/widgets/qprintpreviewwidget.cpp | |
parent | e4835d58381cd33fe067b05bfd6301d2246e3e67 (diff) | |
download | Qt-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
Diffstat (limited to 'src/gui/widgets/qprintpreviewwidget.cpp')
-rw-r--r-- | src/gui/widgets/qprintpreviewwidget.cpp | 6 |
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(); |