summaryrefslogtreecommitdiffstats
path: root/buildtools/qmake/createscopedlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /buildtools/qmake/createscopedlg.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/qmake/createscopedlg.cpp')
-rw-r--r--buildtools/qmake/createscopedlg.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/buildtools/qmake/createscopedlg.cpp b/buildtools/qmake/createscopedlg.cpp
index 439ddd70..4f65dd17 100644
--- a/buildtools/qmake/createscopedlg.cpp
+++ b/buildtools/qmake/createscopedlg.cpp
@@ -13,7 +13,7 @@
#include <klineedit.h>
#include <kurlrequester.h>
-#include <qcheckbox.h>
+#include <tqcheckbox.h>
#include <kfile.h>
#include <kcombobox.h>
#include <kmessagebox.h>
@@ -26,12 +26,12 @@
#include "scope.h"
#include "trollprojectwidget.h"
-CreateScopeDlg::CreateScopeDlg( QMakeScopeItem* item, QWidget* parent, const char* name, bool modal, WFlags fl )
+CreateScopeDlg::CreateScopeDlg( QMakeScopeItem* item, TQWidget* parent, const char* name, bool modal, WFlags fl )
: CreateScopeDlgBase( parent, name, modal, fl ), m_item( item )
{
incUrl->setMode( KFile::File | KFile::LocalOnly );
incUrl->setCaption( i18n( "Choose existing .pri file or give a new filename for creation" ) );
- incUrl->setURL( QString("") );
+ incUrl->setURL( TQString("") );
incUrl->completionObject() ->setDir( item->scope->projectDir() );
incUrl->fileDialog()->setURL( KURL::fromPathOrURL( item->scope->projectDir() ) );
}
@@ -55,15 +55,15 @@ void CreateScopeDlg::accept()
case 2:
if ( !incUrl->url().isEmpty() )
{
- QString file = incUrl->url();
+ TQString file = incUrl->url();
if ( !incUrl->url().endsWith( ".pri" ) )
file += ".pri";
if( file.find("/") == -1 )
file = m_item->scope->projectDir()+"/"+file;
// We need to create the file, because getRelativePath checks for existent paths
- if( !QFile::exists(file) )
+ if( !TQFile::exists(file) )
{
- QFile temp(file);
+ TQFile temp(file);
if( temp.open(IO_WriteOnly) )
temp.close();
}
@@ -78,20 +78,20 @@ void CreateScopeDlg::accept()
new QMakeScopeItem( m_item, s->scopeName(), s );
else
{
- QListViewItem* item = m_item->firstChild();
+ TQListViewItem* item = m_item->firstChild();
while( item->nextSibling() )
item = item->nextSibling();
QMakeScopeItem* newitem = new QMakeScopeItem( m_item, s->scopeName(), s );
newitem->moveItem( item );
}
- QDialog::accept();
+ TQDialog::accept();
}
else
{
if ( KMessageBox::warningYesNo( this, i18n( "You did not specify all needed information. "
"The scope will not be created.<br>Do you want to abort the scope creation?" ),
i18n( "Missing information" ) ) == KMessageBox:: Yes )
- QDialog::reject();
+ TQDialog::reject();
}
}