Opened 15 years ago

Closed 15 years ago

#143 closed defect (fixed)

Linguist build fails.

Reported by: rudi Owned by:
Priority: major Milestone: Qt 4.6.2
Component: Tools Version:
Severity: low Keywords:
Cc:

Description

tools\linguist\linguist\mainwindow.cpp

doesn't honour QT_NO_PRINTER. There are several locations in the source where m_printer gets accessed.

Change History (5)

comment:1 by Dmitry A. Kuminov, 15 years ago

This must be the result of merging 4.6.1 because in 4.5.1 beta 4 for OS/2 we didn't have printing support but Linguist worked. Anyway, r662 should fix that, please check.

comment:2 by rudi, 15 years ago

No, that's not enough. They decided not declare the member variable m_printer at all in case QT_NO_PRINTER is defined (mainwindow.h). Thus we have to add an #ifdef around line 261 and completely disable MainWindow::printer(), which is only referenced by MainWindow::print().

comment:3 by Dmitry A. Kuminov, 15 years ago

Ah it was actually my typo (missing #else case which returns 0 instead of m_printer). Anyway, I redid in a slightly different way in r663.

comment:4 by rudi, 15 years ago

O.K, works "out of the box" now.

comment:5 by Dmitry A. Kuminov, 15 years ago

Resolution: fixed
Status: newclosed

Ok.

Note: See TracTickets for help on using tickets.