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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/70/head
Michele Calgaro 5 months ago
parent 7589d48a41
commit aa69f1c2ff
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -655,7 +655,7 @@ Md5Widget::Md5Widget(TQWidget *parent, const char *name,KURL url):KDialogBase( p
f.open( IO_ReadOnly);
KMD5 checkfile;
checkfile.reset();
checkfile.update(*TQT_TQIODEVICE(&f));
checkfile.update(f);
mdSum=checkfile.hexDigest().data();
f.close();
TQWidget *page = new TQWidget(this);

@ -198,7 +198,7 @@ void KColumnsView::drawContents( TQPainter *P, int cx, int cy, int cw, int ch )
break;
// to avoid flickers we first paint to the linebuffer
Paint.begin( TQT_TQPAINTDEVICE(&LineBuffer), this );
Paint.begin( &LineBuffer, this );
KColumn *C = RedrawColumns.first();
Paint.translate( C->x(), 0 );

@ -264,7 +264,7 @@ bool KJotsBook::isBookFile(const TQString& filename)
{
if ( folder.open(IO_ReadWrite) )
{
TQTextStream st(TQT_TQIODEVICE(&folder));
TQTextStream st(&folder);
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
TQString buf = st.readLine().stripWhiteSpace();
@ -306,7 +306,7 @@ bool KJotsBook::openBook(const TQString& filename)
if ( file.exists() && file.open(IO_ReadWrite) ) //TODO: Implement read-only mode?
{
TQTextStream st(TQT_TQIODEVICE(&file));
TQTextStream st(&file);
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
TQString data = st.read();
@ -388,7 +388,7 @@ bool KJotsBook::openBook(const TQString& filename)
*/
bool KJotsBook::loadOldBook(TQFile &file)
{
TQTextStream st(TQT_TQIODEVICE(&file));
TQTextStream st(&file);
st.setEncoding( KJotsSettings::unicode() ? TQTextStream::UnicodeUTF8 : TQTextStream::Locale );
TQString buf = st.readLine();

@ -62,7 +62,7 @@ void Systemtray::updateBackgroundPixmap ( const TQPixmap & pixmap) {
//Stupid stupid stupid work around for annoying bug
//QXEmbed ignores setBackgroundOrigin(AncestorOrigin)....
TQPixmap bug = TQPixmap(emb->size());
bitBlt(TQT_TQPAINTDEVICE(&bug), 0, 0, TQT_TQPAINTDEVICE(const_cast<TQPixmap*>(&pixmap)), emb->parentWidget()->x()+emb->x(), emb->parentWidget()->y()+emb->y(), emb->width(), emb->height(),TQt::CopyROP, false);
bitBlt(&bug, 0, 0, const_cast<TQPixmap*>(&pixmap), emb->parentWidget()->x()+emb->x(), emb->parentWidget()->y()+emb->y(), emb->width(), emb->height(),TQt::CopyROP, false);
emb->setPaletteBackgroundPixmap (bug);
}

@ -162,7 +162,7 @@ void ThemeLocale::setLanguage(const TQStringList &languages)
if(m_theme->fileExists(file))
{
TQBuffer buffer(m_theme->readThemeFile(file));
tl_nl_load_domain(TQT_TQIODEVICE(&buffer), buffer.size(), &m_domain);
tl_nl_load_domain(&buffer, buffer.size(), &m_domain);
m_language = *it;
return;
}

@ -66,7 +66,7 @@ void Profile::loadFromFile(const TQString &fileName)
curPAA = 0;
TQFile xmlFile(fileName);
TQXmlInputSource source(TQT_TQIODEVICE(&xmlFile));
TQXmlInputSource source(&xmlFile);
TQXmlSimpleReader reader;
reader.setContentHandler(this);
reader.parse(source);

@ -58,7 +58,7 @@ void Remote::loadFromFile(const TQString &fileName)
curRB = 0;
TQFile xmlFile(fileName);
TQXmlInputSource source(TQT_TQIODEVICE(&xmlFile));
TQXmlInputSource source(&xmlFile);
TQXmlSimpleReader reader;
reader.setContentHandler(this);
reader.parse(source);

Loading…
Cancel
Save