summaryrefslogtreecommitdiffstats
path: root/buildtools/qmake/trollprojectwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/qmake/trollprojectwidget.cpp')
-rw-r--r--buildtools/qmake/trollprojectwidget.cpp39
1 files changed, 12 insertions, 27 deletions
diff --git a/buildtools/qmake/trollprojectwidget.cpp b/buildtools/qmake/trollprojectwidget.cpp
index 3c35cb94..ca369c1f 100644
--- a/buildtools/qmake/trollprojectwidget.cpp
+++ b/buildtools/qmake/trollprojectwidget.cpp
@@ -1416,10 +1416,7 @@ void TrollProjectWidget::slotNewFile()
fcext = "h";
break;
case GroupItem::Forms:
- if ( !m_part->isTQt4Project() )
- fcext = "ui-widget";
- else
- fcext = "ui-widget-qt4";
+ fcext = "ui-widget";
break;
case GroupItem::Translations:
fcext = "ts";
@@ -1694,10 +1691,7 @@ void TrollProjectWidget::slotDetailsContextMenu( TDEListView *, TQListViewItem *
fcext = "h";
break;
case GroupItem::Forms:
- if ( !m_part->isTQt4Project() )
- fcext = "ui-widget";
- else
- fcext = "ui-widget-qt4";
+ fcext = "ui-widget";
break;
case GroupItem::Translations:
fcext = "ts";
@@ -1782,11 +1776,8 @@ void TrollProjectWidget::slotDetailsContextMenu( TDEListView *, TQListViewItem *
popup.setWhatsThis( idSubclassWidget, i18n( "<b>Subclass widget</b><p>Launches <b>Subclassing</b> wizard. "
"It allows to create a subclass from the class defined in .ui file. "
"There is also possibility to implement slots and functions defined in the base class." ) );
- if ( !m_part->isTQt4Project() )
- {
- idViewUIH = popup.insertItem( SmallIconSet( "qmake_ui_h" ), i18n( "Open ui.h File" ) );
- popup.setWhatsThis( idViewUIH, i18n( "<b>Open ui.h file</b><p>Opens .ui.h file associated with the selected .ui." ) );
- }
+ idViewUIH = popup.insertItem( SmallIconSet( "qmake_ui_h" ), i18n( "Open ui.h File" ) );
+ popup.setWhatsThis( idViewUIH, i18n( "<b>Open ui.h file</b><p>Opens .ui.h file associated with the selected .ui." ) );
idUISubclasses = popup.insertItem( SmallIconSet( "qmake_subclass" ), i18n( "List of Subclasses..." ) );
popup.setWhatsThis( idUISubclasses, i18n( "<b>List of subclasses</b><p>Shows subclasses list editor. "
"There is possibility to add or remove subclasses from the list." ) );
@@ -2340,21 +2331,15 @@ void TrollProjectWidget::setLastFocusedView( TrollProjectView view )
void TrollProjectWidget::runTQMakeRecursive( QMakeScopeItem* proj )
{
- if( m_part->isTQt4Project() )
+ if ( proj->scope->scopeType() == Scope::ProjectScope )
{
- m_part->startTQMakeCommand( proj->scope->projectDir(), true );
- }else
+ m_part->startTQMakeCommand( proj->scope->projectDir() );
+ }
+ QMakeScopeItem* item = static_cast<QMakeScopeItem*>( proj->firstChild() );
+ while ( item )
{
- if ( proj->scope->scopeType() == Scope::ProjectScope )
- {
- m_part->startTQMakeCommand( proj->scope->projectDir() );
- }
- QMakeScopeItem* item = static_cast<QMakeScopeItem*>( proj->firstChild() );
- while ( item )
- {
- runTQMakeRecursive( item );
- item = static_cast<QMakeScopeItem*>( item->nextSibling() );
- }
+ runTQMakeRecursive( item );
+ item = static_cast<QMakeScopeItem*>( item->nextSibling() );
}
}
@@ -2533,7 +2518,7 @@ TQMap<TQString,TQString> TrollProjectWidget::qmakeEnvironment() const
map[(*it).first] = (*it).second;
}
- if( !hasTQtDir && !m_part->isTQt4Project() && !DomUtil::readEntry(*m_part->projectDom(), "/kdevcppsupport/qt/root", "").isEmpty() )
+ if( !hasTQtDir && !DomUtil::readEntry(*m_part->projectDom(), "/kdevcppsupport/qt/root", "").isEmpty() )
{
map["TQTDIR="] = DomUtil::readEntry(*m_part->projectDom(), "/kdevcppsupport/qt/root", "");
map["PATH"] = map["PATH"].prepend( DomUtil::readEntry(*m_part->projectDom(), "/kdevcppsupport/qt/root", "") +"/bin" );