[kdevelop] compatibility with QT_NO_ASCII_CAST and automoc

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1216512 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 13 years ago
parent 5e2135048c
commit f9c30e41d2

@ -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 ) );

@ -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 )

@ -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 );

@ -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() ),

@ -102,3 +102,5 @@ namespace GDBDebugger
}
}
#include "debuggertracingdialog.moc"

@ -33,4 +33,3 @@ TQWidget * KDevPCSImporter::createSettingsPage( TQWidget * /*parent*/, const cha
{
return 0;
}

@ -4,3 +4,5 @@ KDevCompilerOptions::KDevCompilerOptions( TQObject * parent, const char * name )
:TQObject(parent, name)
{
}
#include "kdevcompileroptions.moc"

@ -14,7 +14,6 @@ Customized KHTML part for KDevelop.
class KAction;
class KToolBarPopupAction;
class KParts::ReadOnlyPart;
struct DocumentationHistoryEntry {
KURL url;

@ -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

@ -399,3 +399,5 @@ QEditListBox::CustomEditor::CustomEditor( TQComboBox *combo )
m_lineEdit = dynamic_cast<KLineEdit*>( combo->lineEdit() );
assert( m_lineEdit );
}
#include "qeditlistbox.moc"

@ -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;

@ -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;

@ -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);

@ -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."));

@ -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)

@ -64,3 +64,4 @@ TQStringList ClearcaseFileinfoProvider::registeredEntryList() const
return l;
}
#include "clearcasefileinfoprovider.moc"

@ -24,7 +24,6 @@ class TQPopupMenu;
class TQDir;
class KDialogBase;
class KURL;
class KURL::List;
class KAction;
class CvsProcessWidget;

@ -22,7 +22,6 @@
class CvsServicePart;
class KDialogBase;
class KURL;
class KURL::List;
class CvsProcessWidget;
class KDevMainWindow;
class KDevCore;

Loading…
Cancel
Save