Replace Q_WS_MAC with Q_OS_MAC in QtPrintSupport
Change-Id: Ib19c87a72f74e28412a6060a83bf17d1d16a83ac Reviewed-by: John Layt <jlayt@kde.org>
This commit is contained in:
parent
79e64ede69
commit
0cb58c7c6d
@ -271,7 +271,7 @@ void QPrintPreviewDialogPrivate::init(QPrinter *_printer)
|
||||
QWidget *pageEdit = new QWidget(toolbar);
|
||||
QVBoxLayout *vboxLayout = new QVBoxLayout;
|
||||
vboxLayout->setContentsMargins(0, 0, 0, 0);
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
// We query the widgets about their size and then we fix the size.
|
||||
// This should do the trick for the laying out part...
|
||||
QSize pageNumEditSize, pageNumLabelSize;
|
||||
@ -281,7 +281,7 @@ void QPrintPreviewDialogPrivate::init(QPrinter *_printer)
|
||||
pageNumLabel->resize(pageNumLabelSize);
|
||||
#endif
|
||||
QFormLayout *formLayout = new QFormLayout;
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
// We have to change the growth policy in Mac.
|
||||
formLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
|
||||
#endif
|
||||
@ -560,7 +560,7 @@ void QPrintPreviewDialogPrivate::_q_print()
|
||||
{
|
||||
Q_Q(QPrintPreviewDialog);
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_WS_MAC)
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
|
||||
if (printer->outputFormat() != QPrinter::NativeFormat) {
|
||||
QString title;
|
||||
QString suffix;
|
||||
|
@ -152,7 +152,7 @@ public:
|
||||
GraphicsView(QWidget* parent = 0)
|
||||
: QGraphicsView(parent)
|
||||
{
|
||||
#ifdef Q_WS_MAC
|
||||
#ifdef Q_OS_MAC
|
||||
setFrameStyle(QFrame::NoFrame);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user