Qt 4.8
Functions
qprinterinfo_win.cpp File Reference
#include "qprinterinfo.h"
#include "qprinterinfo_p.h"
#include <qstringlist.h>
#include <qt_windows.h>

Go to the source code of this file.

Functions

QPrinter::PaperSize mapDevmodePaperSize (int s)
 

Function Documentation

◆ mapDevmodePaperSize()

QPrinter::PaperSize mapDevmodePaperSize ( int  s)

Definition at line 110 of file qprintengine_win.cpp.

Referenced by QWin32PrintEngine::property(), and QWin32PrintEnginePrivate::updateCustomPaperSize().

111 {
112  int i = 0;
113  while ((dmMapping[i].winSizeName > 0) && (dmMapping[i].winSizeName != s))
114  i++;
115  return dmMapping[i].qtSizeName;
116 }
static const struct @249 dmMapping[]
int winSizeName