summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/formwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/formwindow.cpp')
-rw-r--r--kdevdesigner/designer/formwindow.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kdevdesigner/designer/formwindow.cpp b/kdevdesigner/designer/formwindow.cpp
index 1c404d91..b34a49e1 100644
--- a/kdevdesigner/designer/formwindow.cpp
+++ b/kdevdesigner/designer/formwindow.cpp
@@ -198,7 +198,7 @@ void FormWindow::init()
this, TQT_SLOT( modificationChanged( bool ) ) );
buffer = 0;
- TQWidget *w = WidgetFactory::create( WidgetDatabase::idFromClassName( "TQFrame" ), this );
+ TQWidget *w = WidgetFactory::create( WidgetDatabase::idFromClassName( TQFRAME_OBJECT_NAME_STRING ), this );
setMainContainer( w );
propertyWidget = w;
targetContainer = 0;
@@ -355,7 +355,7 @@ void FormWindow::insertWidget()
bool useSizeHint = !oldRectValid || ( currRect.width() < 2 && currRect.height() < 2 );
Orientation orient = Horizontal;
TQString n = WidgetDatabase::className( currTool );
- if ( useSizeHint && ( n == "Spacer" || n == "TQSlider" || n == "Line" || n == "TQScrollBar" ) ) {
+ if ( useSizeHint && ( n == "Spacer" || n == TQSLIDER_OBJECT_NAME_STRING || n == "Line" || n == TQSCROLLBAR_OBJECT_NAME_STRING ) ) {
TQPopupMenu m( mainWindow() );
m.insertItem( i18n( "&Horizontal" ) );
int ver = m.insertItem( i18n( "&Vertical" ) );
@@ -594,7 +594,7 @@ void FormWindow::handleMousePress( TQMouseEvent *e, TQWidget *w )
} else { // ...widget selected
// only if widget has a layout (it is a layout meta widget or a laid out container!), unselect its childs
if ( WidgetFactory::layoutType( w ) != WidgetFactory::NoLayout ) {
- TQObjectList *l = w->queryList( "TQWidget" );
+ TQObjectList *l = w->queryList( TQWIDGET_OBJECT_NAME_STRING );
setPropertyShowingBlocked( TRUE );
for ( TQObject *o = l->first(); o; o = l->next() ) {
if ( !o->isWidgetType() )
@@ -1160,7 +1160,7 @@ void FormWindow::handleKeyPress( TQKeyEvent *e, TQWidget *w )
}
}
if ( !e->isAccepted() ) {
- TQObjectList *l = queryList( "TQWidget" );
+ TQObjectList *l = queryList( TQWIDGET_OBJECT_NAME_STRING );
if ( !l )
return;
if ( l->find( w ) != -1 )
@@ -1365,7 +1365,7 @@ void FormWindow::endRectDraw()
void FormWindow::selectWidgets()
{
- TQObjectList *l = mainContainer()->queryList( "TQWidget" );
+ TQObjectList *l = mainContainer()->queryList( TQWIDGET_OBJECT_NAME_STRING );
if ( l ) {
for ( TQObject *o = l->first(); o; o = l->next() ) {
if ( ( (TQWidget*)o )->isVisibleTo( this ) &&
@@ -1420,7 +1420,7 @@ void FormWindow::redo()
void FormWindow::raiseChildSelections( TQWidget *w )
{
- TQObjectList *l = w->queryList( "TQWidget" );
+ TQObjectList *l = w->queryList( TQWIDGET_OBJECT_NAME_STRING );
if ( !l || !l->first() ) {
delete l;
return;
@@ -1436,7 +1436,7 @@ void FormWindow::raiseChildSelections( TQWidget *w )
void FormWindow::updateChildSelections( TQWidget *w )
{
- TQObjectList *l = w->queryList( "TQWidget" );
+ TQObjectList *l = w->queryList( TQWIDGET_OBJECT_NAME_STRING );
if ( l ) {
for ( TQObject *o = l->first(); o; o = l->next() ) {
if ( o->isWidgetType() &&
@@ -1451,7 +1451,7 @@ void FormWindow::checkSelectionsForMove( TQWidget *w )
{
checkedSelectionsForMove = TRUE;
- TQObjectList *l = w->parentWidget()->queryList( "TQWidget", 0, FALSE, FALSE );
+ TQObjectList *l = w->parentWidget()->queryList( TQWIDGET_OBJECT_NAME_STRING, 0, FALSE, FALSE );
moving.clear();
if ( l ) {
TQPtrDictIterator<WidgetSelection> it( usedSelections );
@@ -1613,7 +1613,7 @@ void FormWindow::resizeEvent( TQResizeEvent *e )
void FormWindow::windowsRepaintWorkaroundTimerTimeout()
{
#if defined(Q_WS_WIN32)
- TQObjectList *l = queryList( "TQWidget" );
+ TQObjectList *l = queryList( TQWIDGET_OBJECT_NAME_STRING );
for ( TQObject *o = l->first(); o; o = l->next() ) {
flickerfree_update( (TQWidget*)o );
}
@@ -1771,7 +1771,7 @@ void FormWindow::showOrderIndicators()
{
hideOrderIndicators();
orderIndicators.setAutoDelete( TRUE );
- TQObjectList *l = mainContainer()->queryList( "TQWidget" );
+ TQObjectList *l = mainContainer()->queryList( TQWIDGET_OBJECT_NAME_STRING );
stackedWidgets = MetaDataBase::tabOrder( this );
if ( l ) {
int order = 1;
@@ -1903,7 +1903,7 @@ void FormWindow::checkAccels()
{
CHECK_MAINWINDOW;
TQMap<TQChar, TQWidgetList > accels;
- TQObjectList *l = mainContainer()->queryList( "TQWidget" );
+ TQObjectList *l = mainContainer()->queryList( TQWIDGET_OBJECT_NAME_STRING );
if ( l ) {
for ( TQObject *o = l->first(); o; o = l->next() ) {
if ( ( (TQWidget*)o )->isVisibleTo( this ) &&
@@ -1978,7 +1978,7 @@ void FormWindow::selectAll()
{
checkedSelectionsForMove = FALSE;
blockSignals( TRUE );
- TQObjectList *l = mainContainer()->queryList( "TQWidget" );
+ TQObjectList *l = mainContainer()->queryList( TQWIDGET_OBJECT_NAME_STRING );
if ( l ) {
for ( TQObject *o = l->first(); o; o = l->next() ) {
if ( ( (TQWidget*)o )->isVisibleTo( this ) &&
@@ -2181,7 +2181,7 @@ bool FormWindow::hasInsertedChildren( TQWidget *w ) const
w = WidgetFactory::containerOfWidget( w );
if ( !w )
return FALSE;
- TQObjectList *l = w->queryList( "TQWidget" );
+ TQObjectList *l = w->queryList( TQWIDGET_OBJECT_NAME_STRING );
if ( !l || !l->first() ) {
delete l;
return FALSE;
@@ -2376,7 +2376,7 @@ bool FormWindow::unify( TQObject *w, TQString &s, bool changeIt )
TQPtrList<TQAction> al;
TQAction *a = 0;
for ( a = actions.first(); a; a = actions.next() ) {
- TQObjectList *l = a->queryList( "TQAction" );
+ TQObjectList *l = a->queryList( TQACTION_OBJECT_NAME_STRING );
al.append( a );
for ( TQObject *ao = l->first(); ao; ao = l->next() )
al.append( (TQAction*)ao );
@@ -2409,7 +2409,7 @@ bool FormWindow::unify( TQObject *w, TQString &s, bool changeIt )
}
if ( ::qt_cast<TQMainWindow*>(mainContainer()) ) {
if ( !found ) {
- TQObjectList *l = mainContainer()->queryList( "TQDockWindow", 0, TRUE );
+ TQObjectList *l = mainContainer()->queryList( TQDOCKWINDOW_OBJECT_NAME_STRING, 0, TRUE );
for ( TQObject *o = l->first(); o; o = l->next() ) {
if ( o != w &&
qstrcmp( o->name(), s.latin1() ) == 0 ) {
@@ -2447,7 +2447,7 @@ bool FormWindow::isDatabaseWidgetUsed() const
{
#ifndef QT_NO_SQL
TQStringList dbClasses;
- dbClasses << "TQDataTable"; // add more here
+ dbClasses << TQDATATABLE_OBJECT_NAME_STRING; // add more here
TQPtrDictIterator<TQWidget> it( insertedWidgets );
for ( ; it.current(); ++it ) {
TQString c( it.current()->className() );
@@ -2663,7 +2663,7 @@ TQAction *FormWindow::findAction( const TQString &name )
for ( TQAction *a = actionList().first(); a; a = actionList().next() ) {
if ( TQString( a->name() ) == name )
return a;
- TQAction *ac = (TQAction*)a->child( name.latin1(), "TQAction" );
+ TQAction *ac = (TQAction*)a->child( name.latin1(), TQACTION_OBJECT_NAME_STRING );
if ( ac )
return ac;
}
@@ -2672,7 +2672,7 @@ TQAction *FormWindow::findAction( const TQString &name )
void FormWindow::killAccels( TQObject *top )
{
- TQObjectList *l = top->queryList( "TQAccel" );
+ TQObjectList *l = top->queryList( TQACCEL_OBJECT_NAME_STRING );
if ( !l )
return;
for ( TQObject *o = l->first(); o; o = l->next() )