Replaced various '#define' with actual strings - part 5

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/16/head
Michele Calgaro 12 months ago
parent fefa0a04e3
commit dba614b5da
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -246,7 +246,7 @@ void KMagZoomView::drawContents ( TQPainter * p, int clipx, int clipy, int clipw
// show the pixel under mouse cursor // show the pixel under mouse cursor
if(m_showMouse) { if(m_showMouse) {
// paint the mouse cursor // paint the mouse cursor
paintMouseCursor(TQT_TQPAINTDEVICE(&clippedPixmap), calcMousePos (m_refreshSwitch)-TQPoint (areaToPaint.x(), areaToPaint.y())); paintMouseCursor(&clippedPixmap, calcMousePos (m_refreshSwitch)-TQPoint (areaToPaint.x(), areaToPaint.y()));
} }
TQPixmap zoomedPixmap; TQPixmap zoomedPixmap;
@ -889,7 +889,7 @@ TQPixmap KMagZoomView::getPixmap()
TQPixmap mousePixmap(m_grabbedPixmap); TQPixmap mousePixmap(m_grabbedPixmap);
// paint the mouse cursor w/o updating to a newer position // paint the mouse cursor w/o updating to a newer position
paintMouseCursor(TQT_TQPAINTDEVICE(&mousePixmap), calcMousePos(false)); paintMouseCursor(&mousePixmap, calcMousePos(false));
return(mousePixmap); return(mousePixmap);
} else { // no mouse cursor } else { // no mouse cursor

@ -339,7 +339,7 @@ bool PhraseBook::open (const KURL &url) {
// First: try to load it as a normal phrase book // First: try to load it as a normal phrase book
TQFile file(tempFile); TQFile file(tempFile);
TQXmlInputSource source (TQT_TQIODEVICE(&file)); TQXmlInputSource source (&file);
bool error = !decode (source); bool error = !decode (source);
// Second: if the file does not contain a phrase book, load it as // Second: if the file does not contain a phrase book, load it as

@ -160,7 +160,7 @@ void addWords (WordMap &map, WordMap add) {
void addWordsFromFile (WordMap &map, TQString filename, TQTextStream::Encoding encoding, TQTextCodec *codec) { void addWordsFromFile (WordMap &map, TQString filename, TQTextStream::Encoding encoding, TQTextCodec *codec) {
TQFile xmlfile(filename); TQFile xmlfile(filename);
TQXmlInputSource source (TQT_TQIODEVICE(&xmlfile)); TQXmlInputSource source (&xmlfile);
XMLParser parser; XMLParser parser;
TQXmlSimpleReader reader; TQXmlSimpleReader reader;
reader.setFeature ("http://trolltech.com/xml/features/report-start-end-entity", true); reader.setFeature ("http://trolltech.com/xml/features/report-start-end-entity", true);

@ -293,7 +293,7 @@ bool ContextMenuHandler::parseXmlFile(const TQString &xmlID)
ContextActionHandler handler(this); ContextActionHandler handler(this);
handler.setSearchID(xmlID); handler.setSearchID(xmlID);
parser.setContentHandler( &handler ); parser.setContentHandler( &handler );
return parser.parse( TQT_TQIODEVICE(&xmlFile) ); return parser.parse( &xmlFile );
} }

Loading…
Cancel
Save