summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kdevdesigner/shared/domtool.cpp2
-rw-r--r--kdevdesigner/shared/widgetdatabase.cpp6
-rw-r--r--kdevdesigner/uilib/database.cpp4
-rw-r--r--kdevdesigner/uilib/qwidgetfactory.cpp42
-rw-r--r--languages/cpp/debugger/debuggertracingdialog.cpp2
-rw-r--r--languages/lib/interfaces/kdevpcsimporter.cpp1
-rw-r--r--lib/interfaces/extras/kdevcompileroptions.cpp2
-rw-r--r--lib/widgets/kdevhtmlpart.h1
-rw-r--r--lib/widgets/propeditor/propertyeditor.cpp2
-rw-r--r--lib/widgets/propeditor/qeditlistbox.cpp2
-rw-r--r--parts/ctags2/ctags2_createtagfile.cpp2
-rw-r--r--parts/ctags2/ctags2_selecttagfile.cpp1
-rw-r--r--parts/filecreate/filecreate_listitem.cpp2
-rw-r--r--parts/fileview/filegroupswidget.cpp3
-rw-r--r--parts/fileview/filetreewidget.cpp3
-rw-r--r--vcs/clearcase/clearcasefileinfoprovider.cpp1
-rw-r--r--vcs/cvsservice/cvspart.h1
-rw-r--r--vcs/cvsservice/cvspartimpl.h1
18 files changed, 43 insertions, 35 deletions
diff --git a/kdevdesigner/shared/domtool.cpp b/kdevdesigner/shared/domtool.cpp
index 1696aa52..ef995e44 100644
--- a/kdevdesigner/shared/domtool.cpp
+++ b/kdevdesigner/shared/domtool.cpp
@@ -184,7 +184,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def
if ( n.tagName() == "comment" )
comment = n.firstChild().toText().data();
} else if ( e.tagName() == "cstring" ) {
- v = TQVariant( TQCString( e.firstChild().toText().data() ) );
+ v = TQVariant( TQCString( e.firstChild().toText().data().ascii() ) );
} else if ( e.tagName() == "number" ) {
bool ok = TRUE;
v = TQVariant( e.firstChild().toText().data().toInt( &ok ) );
diff --git a/kdevdesigner/shared/widgetdatabase.cpp b/kdevdesigner/shared/widgetdatabase.cpp
index 10cdc334..6419b9b6 100644
--- a/kdevdesigner/shared/widgetdatabase.cpp
+++ b/kdevdesigner/shared/widgetdatabase.cpp
@@ -832,8 +832,8 @@ void WidgetDatabase::append( WidgetDatabaseRecord *r )
TQString WidgetDatabase::widgetGroup( const TQString &g )
{
- if ( wGroups->find( g ) == -1 )
- wGroups->append( g );
+ if ( wGroups->find( g.ascii() ) == -1 )
+ wGroups->append( g.ascii() );
return g;
}
@@ -866,7 +866,7 @@ int WidgetDatabase::numWidgetGroups()
bool WidgetDatabase::isGroupVisible( const TQString &g )
{
setupDataBase( -1 );
- return invisibleGroups->find( g ) == -1;
+ return invisibleGroups->find( g.ascii() ) == -1;
}
int WidgetDatabase::addCustomWidget( WidgetDatabaseRecord *r )
diff --git a/kdevdesigner/uilib/database.cpp b/kdevdesigner/uilib/database.cpp
index c9621604..0097605b 100644
--- a/kdevdesigner/uilib/database.cpp
+++ b/kdevdesigner/uilib/database.cpp
@@ -60,9 +60,9 @@ void DatabaseSupport::initPreview( const TQString &connection, const TQString &t
con = TQSqlDatabase::database( connection );
else
con = TQSqlDatabase::database();
- frm = new TQSqlForm( o, table );
+ frm = new TQSqlForm( o, table.ascii() );
for ( TQMap<TQString, TQString>::Iterator it = dbControls.begin(); it != dbControls.end(); ++it ) {
- TQObject *chld = parent->child( it.key(), "TQWidget" );
+ TQObject *chld = parent->child( it.key().ascii(), "TQWidget" );
if ( !chld )
continue;
frm->insert( (TQWidget*)chld, *it );
diff --git a/kdevdesigner/uilib/qwidgetfactory.cpp b/kdevdesigner/uilib/qwidgetfactory.cpp
index 2d40a7da..c9513043 100644
--- a/kdevdesigner/uilib/qwidgetfactory.cpp
+++ b/kdevdesigner/uilib/qwidgetfactory.cpp
@@ -177,9 +177,9 @@ static TQImage loadImageData( const TQString& format, ulong len, TQByteArray dat
dataTmp[3] = ( len & 0x000000ff );
TQByteArray baunzip = qUncompress( dataTmp );
len = baunzip.size();
- img.loadFromData( (const uchar*)baunzip.data(), len, format.left(format.find('.')) );
+ img.loadFromData( (const uchar*)baunzip.data(), len, format.left(format.find('.')).ascii() );
} else {
- img.loadFromData( (const uchar*)data.data(), data.size(), format );
+ img.loadFromData( (const uchar*)data.data(), data.size(), format.ascii() );
}
return img;
}
@@ -364,7 +364,7 @@ TQWidget *TQWidgetFactory::create( TQIODevice *dev, TQObject *connector, TQWidge
for ( TQMap<TQString, TQStringList>::Iterator it = widgetFactory->dbTables.begin();
it != widgetFactory->dbTables.end(); ++it ) {
- TQDataTable *table = (TQDataTable*)widgetFactory->toplevel->child( it.key(), "TQDataTable" );
+ TQDataTable *table = (TQDataTable*)widgetFactory->toplevel->child( it.key().ascii(), "TQDataTable" );
if ( !table )
continue;
if ( widgetFactory->noDatabaseWidgets.find( table->name() ) !=
@@ -391,8 +391,8 @@ TQWidget *TQWidgetFactory::create( TQIODevice *dev, TQObject *connector, TQWidge
for ( TQMap<TQString, TQString>::Iterator it = widgetFactory->buddies.begin();
it != widgetFactory->buddies.end(); ++it ) {
- TQLabel *label = (TQLabel*)widgetFactory->toplevel->child( it.key(), "TQLabel" );
- TQWidget *buddy = (TQWidget*)widgetFactory->toplevel->child( *it, "TQWidget" );
+ TQLabel *label = (TQLabel*)widgetFactory->toplevel->child( it.key().ascii(), "TQLabel" );
+ TQWidget *buddy = (TQWidget*)widgetFactory->toplevel->child( (*it).ascii(), "TQWidget" );
if ( label && buddy )
label->setBuddy( buddy );
}
@@ -451,7 +451,7 @@ TQWidget *TQWidgetFactory::createFromUiFile( TQDomDocument doc, TQObject *connec
TQDomElement widget;
while ( !e.isNull() ) {
if ( e.tagName() == "class" ) {
- d->translationContext = e.firstChild().toText().data();
+ d->translationContext = e.firstChild().toText().data().ascii();
} else if ( e.tagName() == "widget" ) {
widget = e;
} else if ( e.tagName() == "pixmapinproject" ) {
@@ -1808,13 +1808,13 @@ TQWidgetFactory::LayoutType TQWidgetFactory::layoutType( TQLayout *layout ) cons
void TQWidgetFactory::setProperty( TQObject* obj, const TQString &prop,
TQVariant value )
{
- int offset = obj->metaObject()->findProperty( prop, TRUE );
+ int offset = obj->metaObject()->findProperty( prop.ascii(), TRUE );
if ( offset != -1 ) {
if ( prop == "geometry" && obj == toplevel ) {
toplevel->resize( value.toRect().size() );
} else if ( prop == "accel" ) {
- obj->setProperty( prop, value.toKeySequence() );
+ obj->setProperty( prop.ascii(), value.toKeySequence() );
} else {
if ( value.type() == TQVariant::String ||
value.type() == TQVariant::CString ) {
@@ -1827,7 +1827,7 @@ void TQWidgetFactory::setProperty( TQObject* obj, const TQString &prop,
TQStringList::split( '|', value.asString() );
TQStringList::ConstIterator f = flagsStr.begin();
while ( f != flagsStr.end() ) {
- flagsCStr.append( *f );
+ flagsCStr.append( (*f).ascii() );
++f;
}
value = TQVariant( metaProp->keysToValue(flagsCStr) );
@@ -1837,7 +1837,7 @@ void TQWidgetFactory::setProperty( TQObject* obj, const TQString &prop,
}
}
}
- obj->setProperty( prop, value );
+ obj->setProperty( prop.ascii(), value );
}
} else {
if ( obj->isWidgetType() ) {
@@ -2068,12 +2068,12 @@ void TQWidgetFactory::loadConnections( const TQDomElement &e, TQObject *connecto
while ( !n2.isNull() ) {
if ( n2.tagName() == "sender" ) {
TQString name = n2.firstChild().toText().data();
- if ( name == "this" || qstrcmp( toplevel->name(), name ) == 0 ) {
+ if ( name == "this" || qstrcmp( toplevel->name(), name.ascii() ) == 0 ) {
conn.sender = toplevel;
} else {
if ( name == "this" )
name = toplevel->name();
- TQObjectList *l = toplevel->queryList( 0, name, FALSE );
+ TQObjectList *l = toplevel->queryList( 0, name.ascii(), FALSE );
if ( l ) {
if ( l->first() )
conn.sender = l->first();
@@ -2083,13 +2083,13 @@ void TQWidgetFactory::loadConnections( const TQDomElement &e, TQObject *connecto
if ( !conn.sender )
conn.sender = findAction( name );
} else if ( n2.tagName() == "signal" ) {
- conn.signal = n2.firstChild().toText().data();
+ conn.signal = n2.firstChild().toText().data().ascii();
} else if ( n2.tagName() == "receiver" ) {
TQString name = n2.firstChild().toText().data();
- if ( name == "this" || qstrcmp( toplevel->name(), name ) == 0 ) {
+ if ( name == "this" || qstrcmp( toplevel->name(), name.ascii() ) == 0 ) {
conn.receiver = toplevel;
} else {
- TQObjectList *l = toplevel->queryList( 0, name, FALSE );
+ TQObjectList *l = toplevel->queryList( 0, name.ascii(), FALSE );
if ( l ) {
if ( l->first() )
conn.receiver = l->first();
@@ -2097,7 +2097,7 @@ void TQWidgetFactory::loadConnections( const TQDomElement &e, TQObject *connecto
}
}
} else if ( n2.tagName() == "slot" ) {
- conn.slot = n2.firstChild().toText().data();
+ conn.slot = n2.firstChild().toText().data().ascii();
}
n2 = n2.nextSibling().toElement();
}
@@ -2159,7 +2159,7 @@ void TQWidgetFactory::loadConnections( const TQDomElement &e, TQObject *connecto
n = n.nextSibling().toElement();
continue;
}
- TQObject::connect( sender, s, receiver, s2 );
+ TQObject::connect( sender, s.ascii(), receiver, s2.ascii() );
}
n = n.nextSibling().toElement();
}
@@ -2172,7 +2172,7 @@ void TQWidgetFactory::loadTabOrder( const TQDomElement &e )
while ( !n.isNull() ) {
if ( n.tagName() == "tabstop" ) {
TQString name = n.firstChild().toText().data();
- TQObjectList *l = toplevel->queryList( 0, name, FALSE );
+ TQObjectList *l = toplevel->queryList( 0, name.ascii(), FALSE );
if ( l ) {
if ( l->first() ) {
TQWidget *w = (TQWidget*)l->first();
@@ -2466,7 +2466,7 @@ void TQWidgetFactory::loadToolBars( const TQDomElement &e )
Qt::Dock dock = (Qt::Dock)n.attribute( "dock" ).toInt();
tb = new TQToolBar( TQString::null, mw, dock );
tb->setLabel( n.attribute( "label" ) );
- tb->setName( n.attribute( "name" ) );
+ tb->setName( n.attribute( "name" ).ascii() );
TQDomElement n2 = n.firstChild().toElement();
while ( !n2.isNull() ) {
if ( n2.tagName() == "action" ) {
@@ -2496,7 +2496,7 @@ void TQWidgetFactory::loadMenuBar( const TQDomElement &e )
if ( n.tagName() == "item" ) {
TQPopupMenu *popup = new TQPopupMenu( mw );
loadPopupMenu( popup, n );
- popup->setName( n.attribute( "name" ) );
+ popup->setName( n.attribute( "name" ).ascii() );
mb->insertItem( translate( n.attribute( "text" ) ), popup );
} else if ( n.tagName() == "property" ) {
setProperty( mb, n.attribute( "name" ), n.firstChild().toElement() );
@@ -2517,7 +2517,7 @@ void TQWidgetFactory::loadPopupMenu( TQPopupMenu *p, const TQDomElement &e )
TQDomElement n2 = n.nextSibling().toElement();
if ( n2.tagName() == "item") { // load submenu
TQPopupMenu *popup = new TQPopupMenu( mw );
- popup->setName( n2.attribute( "name" ) );
+ popup->setName( n2.attribute( "name" ).ascii() );
if ( a ) {
p->setAccel( a->accel(), p->insertItem( a->iconSet(),
translate( n2.attribute( "text" ).utf8().data() ),
diff --git a/languages/cpp/debugger/debuggertracingdialog.cpp b/languages/cpp/debugger/debuggertracingdialog.cpp
index 41eb7896..6bf70f3b 100644
--- a/languages/cpp/debugger/debuggertracingdialog.cpp
+++ b/languages/cpp/debugger/debuggertracingdialog.cpp
@@ -102,3 +102,5 @@ namespace GDBDebugger
}
}
+
+#include "debuggertracingdialog.moc"
diff --git a/languages/lib/interfaces/kdevpcsimporter.cpp b/languages/lib/interfaces/kdevpcsimporter.cpp
index fb204328..c4b4e664 100644
--- a/languages/lib/interfaces/kdevpcsimporter.cpp
+++ b/languages/lib/interfaces/kdevpcsimporter.cpp
@@ -33,4 +33,3 @@ TQWidget * KDevPCSImporter::createSettingsPage( TQWidget * /*parent*/, const cha
{
return 0;
}
-
diff --git a/lib/interfaces/extras/kdevcompileroptions.cpp b/lib/interfaces/extras/kdevcompileroptions.cpp
index d62130f9..22c701f1 100644
--- a/lib/interfaces/extras/kdevcompileroptions.cpp
+++ b/lib/interfaces/extras/kdevcompileroptions.cpp
@@ -4,3 +4,5 @@ KDevCompilerOptions::KDevCompilerOptions( TQObject * parent, const char * name )
:TQObject(parent, name)
{
}
+
+#include "kdevcompileroptions.moc"
diff --git a/lib/widgets/kdevhtmlpart.h b/lib/widgets/kdevhtmlpart.h
index 465fb0a3..4a03eec9 100644
--- a/lib/widgets/kdevhtmlpart.h
+++ b/lib/widgets/kdevhtmlpart.h
@@ -14,7 +14,6 @@ Customized KHTML part for KDevelop.
class KAction;
class KToolBarPopupAction;
-class KParts::ReadOnlyPart;
struct DocumentationHistoryEntry {
KURL url;
diff --git a/lib/widgets/propeditor/propertyeditor.cpp b/lib/widgets/propeditor/propertyeditor.cpp
index c9e6e85d..3cd974db 100644
--- a/lib/widgets/propeditor/propertyeditor.cpp
+++ b/lib/widgets/propeditor/propertyeditor.cpp
@@ -90,7 +90,7 @@ public:
valueToDraw = m_property->value();
TQColorGroup icg(cg);
#ifndef PURE_QT
- icg.setColor(TQColorGroup::Background, backgroundColor());
+ icg.setColor(TQColorGroup::Background, backgroundColor(column));
#else
icg.setColor(TQColorGroup::Background, white);
#endif
diff --git a/lib/widgets/propeditor/qeditlistbox.cpp b/lib/widgets/propeditor/qeditlistbox.cpp
index e1b09e4e..db40e8e7 100644
--- a/lib/widgets/propeditor/qeditlistbox.cpp
+++ b/lib/widgets/propeditor/qeditlistbox.cpp
@@ -399,3 +399,5 @@ QEditListBox::CustomEditor::CustomEditor( TQComboBox *combo )
m_lineEdit = dynamic_cast<KLineEdit*>( combo->lineEdit() );
assert( m_lineEdit );
}
+
+#include "qeditlistbox.moc"
diff --git a/parts/ctags2/ctags2_createtagfile.cpp b/parts/ctags2/ctags2_createtagfile.cpp
index 5193d8cd..e066a136 100644
--- a/parts/ctags2/ctags2_createtagfile.cpp
+++ b/parts/ctags2/ctags2_createtagfile.cpp
@@ -50,4 +50,6 @@ TQString CreateTagFile::directory( )
return dirToTag->url();
}
+#include "ctags2_createtagfile.moc"
+
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
diff --git a/parts/ctags2/ctags2_selecttagfile.cpp b/parts/ctags2/ctags2_selecttagfile.cpp
index adb3ee78..c1a8d617 100644
--- a/parts/ctags2/ctags2_selecttagfile.cpp
+++ b/parts/ctags2/ctags2_selecttagfile.cpp
@@ -43,5 +43,6 @@ TQString SelectTagFile::tagsfilePath( )
return tagFile->url();
}
+#include "ctags2_selecttagfile.moc"
// kate: space-indent off; indent-width 4; tab-width 4; show-tabs off;
diff --git a/parts/filecreate/filecreate_listitem.cpp b/parts/filecreate/filecreate_listitem.cpp
index b6467505..86075af8 100644
--- a/parts/filecreate/filecreate_listitem.cpp
+++ b/parts/filecreate/filecreate_listitem.cpp
@@ -64,7 +64,7 @@ namespace FileCreate {
void ListItem::paintCell( TQPainter* p, const TQColorGroup& cg, int column, int width, int align )
{
- TQBrush brush( isSelected() ? cg.highlight() : backgroundColor() );
+ TQBrush brush( isSelected() ? cg.highlight() : backgroundColor(column) );
if( column == 1 ){
// m_filetypeRenderer->setWidth(width);
diff --git a/parts/fileview/filegroupswidget.cpp b/parts/fileview/filegroupswidget.cpp
index a31cb963..14f1d50c 100644
--- a/parts/fileview/filegroupswidget.cpp
+++ b/parts/fileview/filegroupswidget.cpp
@@ -224,7 +224,8 @@ void FileGroupsWidget::slotItemExecuted(TQListViewItem *item)
void FileGroupsWidget::slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p)
{
- KPopupMenu popup(i18n("File Groups"), this);
+ KPopupMenu popup(this);
+ popup.insertTitle(i18n("File Groups"));
/// @todo Add, remove groups
int customizeId = popup.insertItem(i18n("Customize..."));
popup.setWhatsThis(customizeId, i18n("<b>Customize</b><p>Opens <b>Customize File Groups</b> dialog where the groups can be managed."));
diff --git a/parts/fileview/filetreewidget.cpp b/parts/fileview/filetreewidget.cpp
index 6f049370..f5aa0ff4 100644
--- a/parts/fileview/filetreewidget.cpp
+++ b/parts/fileview/filetreewidget.cpp
@@ -203,7 +203,8 @@ void FileTreeWidget::slotContextMenu( KListView *, TQListViewItem* item, const T
{
kdDebug(9017) << "FileTreeWidget::slotContextMenu(...)" << endl;
- KPopupMenu popup( i18n("File Tree"), this );
+ KPopupMenu popup( this );
+ popup.insertTitle( i18n("File Tree") );
// If an item is selected, fill the file context with selected files' list
if (item)
diff --git a/vcs/clearcase/clearcasefileinfoprovider.cpp b/vcs/clearcase/clearcasefileinfoprovider.cpp
index 8d43d48d..1e18f8e1 100644
--- a/vcs/clearcase/clearcasefileinfoprovider.cpp
+++ b/vcs/clearcase/clearcasefileinfoprovider.cpp
@@ -64,3 +64,4 @@ TQStringList ClearcaseFileinfoProvider::registeredEntryList() const
return l;
}
+#include "clearcasefileinfoprovider.moc"
diff --git a/vcs/cvsservice/cvspart.h b/vcs/cvsservice/cvspart.h
index df1aed51..b774d682 100644
--- a/vcs/cvsservice/cvspart.h
+++ b/vcs/cvsservice/cvspart.h
@@ -24,7 +24,6 @@ class TQPopupMenu;
class TQDir;
class KDialogBase;
class KURL;
-class KURL::List;
class KAction;
class CvsProcessWidget;
diff --git a/vcs/cvsservice/cvspartimpl.h b/vcs/cvsservice/cvspartimpl.h
index a6a8a6a9..93da0ec3 100644
--- a/vcs/cvsservice/cvspartimpl.h
+++ b/vcs/cvsservice/cvspartimpl.h
@@ -22,7 +22,6 @@
class CvsServicePart;
class KDialogBase;
class KURL;
-class KURL::List;
class CvsProcessWidget;
class KDevMainWindow;
class KDevCore;