mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Fixed compiler warnings.
This commit is contained in:
parent
24fe422a8b
commit
3044bf3972
1 changed files with 3 additions and 3 deletions
|
@ -970,7 +970,7 @@ void lcMainWindow::Print(QPrinter* Printer)
|
||||||
int PageCopies;
|
int PageCopies;
|
||||||
|
|
||||||
std::vector<std::pair<lcModel*, lcStep>> PageLayouts = lcGetActiveProject()->GetPageLayouts();
|
std::vector<std::pair<lcModel*, lcStep>> PageLayouts = lcGetActiveProject()->GetPageLayouts();
|
||||||
const int PageCount = PageLayouts.size();
|
const int PageCount = static_cast<int>(PageLayouts.size());
|
||||||
|
|
||||||
if (Printer->collateCopies())
|
if (Printer->collateCopies())
|
||||||
{
|
{
|
||||||
|
@ -1136,7 +1136,7 @@ void lcMainWindow::ShowRenderDialog()
|
||||||
void lcMainWindow::ShowPrintDialog()
|
void lcMainWindow::ShowPrintDialog()
|
||||||
{
|
{
|
||||||
#ifndef QT_NO_PRINTER
|
#ifndef QT_NO_PRINTER
|
||||||
int PageCount = lcGetActiveProject()->GetPageLayouts().size();
|
int PageCount = static_cast<int>(lcGetActiveProject()->GetPageLayouts().size());
|
||||||
|
|
||||||
QPrinter Printer(QPrinter::HighResolution);
|
QPrinter Printer(QPrinter::HighResolution);
|
||||||
Printer.setFromTo(1, PageCount + 1);
|
Printer.setFromTo(1, PageCount + 1);
|
||||||
|
@ -1733,7 +1733,7 @@ void lcMainWindow::TogglePrintPreview()
|
||||||
#ifndef QT_NO_PRINTER
|
#ifndef QT_NO_PRINTER
|
||||||
// todo: print preview inside main window
|
// todo: print preview inside main window
|
||||||
|
|
||||||
int PageCount = lcGetActiveProject()->GetPageLayouts().size();
|
int PageCount = static_cast<int>(lcGetActiveProject()->GetPageLayouts().size());
|
||||||
|
|
||||||
QPrinter Printer(QPrinter::ScreenResolution);
|
QPrinter Printer(QPrinter::ScreenResolution);
|
||||||
Printer.setFromTo(1, PageCount + 1);
|
Printer.setFromTo(1, PageCount + 1);
|
||||||
|
|
Loading…
Reference in a new issue