diff options
Diffstat (limited to 'src/gui/projectdlgs.cpp')
-rw-r--r-- | src/gui/projectdlgs.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/gui/projectdlgs.cpp b/src/gui/projectdlgs.cpp index 4ea18c0..1cb560f 100644 --- a/src/gui/projectdlgs.cpp +++ b/src/gui/projectdlgs.cpp @@ -24,23 +24,23 @@ #include <klineedit.h> #include <klocale.h> #include <kurlrequester.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqlayout.h> //BEGIN class NewProjectDlg -NewProjectDlg::NewProjectDlg( QWidget * parent ) - : KDialogBase( parent, "newprojectdlg", true, "New Project", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) +NewProjectDlg::NewProjectDlg( TQWidget * tqparent ) + : KDialogBase( tqparent, "newprojectdlg", true, "New Project", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) { m_pWidget = new NewProjectWidget(this); - connect( m_pWidget->projectNameEdit, SIGNAL(textChanged(const QString & )), this, SLOT(locationChanged(const QString& )) ); - connect( m_pWidget->projectLocationURL, SIGNAL(textChanged(const QString & )), this, SLOT(locationChanged(const QString& )) ); + connect( m_pWidget->projectNameEdit, TQT_SIGNAL(textChanged(const TQString & )), this, TQT_SLOT(locationChanged(const TQString& )) ); + connect( m_pWidget->projectLocationURL, TQT_SIGNAL(textChanged(const TQString & )), this, TQT_SLOT(locationChanged(const TQString& )) ); // Check if already valid dir - locationChanged( QString::null ); + locationChanged( TQString() ); - m_pWidget->projectLocationURL->setURL( QDir::homeDirPath() ); + m_pWidget->projectLocationURL->setURL( TQDir::homeDirPath() ); m_pWidget->projectLocationURL->setMode( KFile::Directory ); setMainWidget( m_pWidget ); @@ -62,10 +62,10 @@ void NewProjectDlg::reject() m_bAccepted = false; } -void NewProjectDlg::locationChanged( const QString & ) +void NewProjectDlg::locationChanged( const TQString & ) { m_location = m_pWidget->projectLocationURL->url(); - QDir subDir(m_location); + TQDir subDir(m_location); if ( !m_location.endsWith("/") ) m_location.append("/"); @@ -75,7 +75,7 @@ void NewProjectDlg::locationChanged( const QString & ) m_pWidget->locationLabel->setText( m_location ); - QDir dir(m_location); + TQDir dir(m_location); if ( dir.exists() || !subDir.exists() ) enableButtonOK(false); @@ -88,8 +88,8 @@ void NewProjectDlg::locationChanged( const QString & ) //BEGIN class CreateSubprojectDlg -CreateSubprojectDlg::CreateSubprojectDlg( QWidget * parent ) - : KDialogBase( parent, "Create Subproject Dialog", true, "Create Subproject", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) +CreateSubprojectDlg::CreateSubprojectDlg( TQWidget * tqparent ) + : KDialogBase( tqparent, "Create Subproject Dialog", true, "Create Subproject", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) { m_pWidget = new CreateSubprojectWidget(this); @@ -128,8 +128,8 @@ void CreateSubprojectDlg::reject() //BEGIN class LinkerOptionsDlg -LinkerOptionsDlg::LinkerOptionsDlg( LinkerOptions * linkingOptions, QWidget *parent ) - : KDialogBase( parent, "Linker Options Dialog", true, "Linker Options", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) +LinkerOptionsDlg::LinkerOptionsDlg( LinkerOptions * linkingOptions, TQWidget *tqparent ) + : KDialogBase( tqparent, "Linker Options Dialog", true, "Linker Options", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) { m_pLinkerOptions = linkingOptions; m_pWidget = new LinkerOptionsWidget(this); @@ -150,14 +150,14 @@ LinkerOptionsDlg::LinkerOptionsDlg( LinkerOptions * linkingOptions, QWidget *par //BEGIN Update library widgets const KURL::List availableInternal = pi->childOutputURLs( ProjectItem::LibraryType ); - const QStringList linkedInternal = m_pLinkerOptions->linkedInternal(); + const TQStringList linkedInternal = m_pLinkerOptions->linkedInternal(); KURL::List::const_iterator end = availableInternal.end(); for ( KURL::List::const_iterator it = availableInternal.begin(); it != end; ++it ) { - QString relativeURL = KURL::relativeURL( pi->url(), *it ); - QCheckListItem * item = new QCheckListItem( m_pWidget->m_pInternalLibraries, relativeURL, QCheckListItem::CheckBox ); - item->setOn( linkedInternal.contains(relativeURL) ); + TQString relativeURL = KURL::relativeURL( pi->url(), *it ); + TQCheckListItem * item = new TQCheckListItem( m_pWidget->m_pInternalLibraries, relativeURL, TQCheckListItem::CheckBox ); + item->setOn( linkedInternal.tqcontains(relativeURL) ); } m_pExternalLibraryRequester = new KURLRequester( 0l ); @@ -165,8 +165,8 @@ LinkerOptionsDlg::LinkerOptionsDlg( LinkerOptions * linkingOptions, QWidget *par delete m_pWidget->m_pExternalLibraries; m_pWidget->m_pExternalLibraries = new KEditListBox( i18n("Link libraries outside project"), m_pExternalLibraryRequester->customEditor(), m_pWidget ); - m_pWidget->m_pExternalLibraries->layout()->setMargin(11); - (dynamic_cast<QGridLayout*>(m_pWidget->layout()))->addMultiCellWidget( m_pWidget->m_pExternalLibraries, 7, 7, 0, 1 ); + m_pWidget->m_pExternalLibraries->tqlayout()->setMargin(11); + (dynamic_cast<TQGridLayout*>(m_pWidget->tqlayout()))->addMultiCellWidget( m_pWidget->m_pExternalLibraries, 7, 7, 0, 1 ); #if defined(KDE_MAKE_VERSION) # if KDE_VERSION >= KDE_MAKE_VERSION(3,4,0) @@ -192,10 +192,10 @@ void LinkerOptionsDlg::accept() { hide(); - QStringList linkedInternal; - for ( QListViewItemIterator internalIt( m_pWidget->m_pInternalLibraries ); internalIt.current(); ++internalIt ) + TQStringList linkedInternal; + for ( TQListViewItemIterator internalIt( m_pWidget->m_pInternalLibraries ); internalIt.current(); ++internalIt ) { - QCheckListItem * item = static_cast<QCheckListItem*>(internalIt.current()); + TQCheckListItem * item = static_cast<TQCheckListItem*>(internalIt.current()); if ( item->isOn() ) linkedInternal << item->text(); } @@ -218,8 +218,8 @@ void LinkerOptionsDlg::reject() //BEGIN class ProcessingOptionsDlg -ProcessingOptionsDlg::ProcessingOptionsDlg( ProjectItem * projectItem, QWidget *parent ) - : KDialogBase( parent, "Processing Options Dialog", true, "Processing Options", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) +ProcessingOptionsDlg::ProcessingOptionsDlg( ProjectItem * projectItem, TQWidget *tqparent ) + : KDialogBase( tqparent, "Processing Options Dialog", true, "Processing Options", KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) { m_pProjectItem = projectItem; m_pWidget = new ProcessingOptionsWidget(this); |