summaryrefslogtreecommitdiffstats
path: root/kresources/configdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kresources/configdialog.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kresources/configdialog.cpp')
-rw-r--r--kresources/configdialog.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kresources/configdialog.cpp b/kresources/configdialog.cpp
index 3b88ff4b7..bbebc47a3 100644
--- a/kresources/configdialog.cpp
+++ b/kresources/configdialog.cpp
@@ -25,43 +25,43 @@
#include <klineedit.h>
#include <kmessagebox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
#include "factory.h"
#include "configdialog.h"
using namespace KRES;
-ConfigDialog::ConfigDialog( QWidget *parent, const QString& resourceFamily,
- /*const QString& type,*/ Resource* resource, /*KConfig *config, */const char *name )
+ConfigDialog::ConfigDialog( TQWidget *parent, const TQString& resourceFamily,
+ /*const TQString& type,*/ Resource* resource, /*KConfig *config, */const char *name )
: KDialogBase( parent, name, true, i18n( "Resource Configuration" ),
Ok|Cancel, Ok, false )/*, mConfig( config )*/, mResource( resource )
{
Factory *factory = Factory::self( resourceFamily );
- QFrame *main = makeMainWidget();
+ TQFrame *main = makeMainWidget();
- QVBoxLayout *mainLayout = new QVBoxLayout( main, 0, spacingHint() );
+ TQVBoxLayout *mainLayout = new TQVBoxLayout( main, 0, spacingHint() );
- QGroupBox *generalGroupBox = new QGroupBox( 2, Qt::Horizontal, main );
+ TQGroupBox *generalGroupBox = new TQGroupBox( 2, Qt::Horizontal, main );
generalGroupBox->layout()->setSpacing( spacingHint() );
generalGroupBox->setTitle( i18n( "General Settings" ) );
- new QLabel( i18n( "Name:" ), generalGroupBox );
+ new TQLabel( i18n( "Name:" ), generalGroupBox );
mName = new KLineEdit( generalGroupBox );
- mReadOnly = new QCheckBox( i18n( "Read-only" ), generalGroupBox );
+ mReadOnly = new TQCheckBox( i18n( "Read-only" ), generalGroupBox );
mName->setText( mResource->resourceName() );
mReadOnly->setChecked( mResource->readOnly() );
mainLayout->addWidget( generalGroupBox );
- QGroupBox *resourceGroupBox = new QGroupBox( 2, Qt::Horizontal, main );
+ TQGroupBox *resourceGroupBox = new TQGroupBox( 2, Qt::Horizontal, main );
resourceGroupBox->layout()->setSpacing( spacingHint() );
resourceGroupBox->setTitle( i18n( "%1 Resource Settings" )
.arg( factory->typeName( resource->type() ) ) );
@@ -74,12 +74,12 @@ ConfigDialog::ConfigDialog( QWidget *parent, const QString& resourceFamily,
mConfigWidget->setInEditMode( false );
mConfigWidget->loadSettings( mResource );
mConfigWidget->show();
- connect( mConfigWidget, SIGNAL( setReadOnly( bool ) ),
- SLOT( setReadOnly( bool ) ) );
+ connect( mConfigWidget, TQT_SIGNAL( setReadOnly( bool ) ),
+ TQT_SLOT( setReadOnly( bool ) ) );
}
- connect( mName, SIGNAL( textChanged(const QString &)),
- SLOT( slotNameChanged(const QString &)));
+ connect( mName, TQT_SIGNAL( textChanged(const TQString &)),
+ TQT_SLOT( slotNameChanged(const TQString &)));
slotNameChanged( mName->text() );
setMinimumSize( sizeHint() );
@@ -91,7 +91,7 @@ void ConfigDialog::setInEditMode( bool value )
mConfigWidget->setInEditMode( value );
}
-void ConfigDialog::slotNameChanged( const QString &text)
+void ConfigDialog::slotNameChanged( const TQString &text)
{
enableButtonOK( !text.isEmpty() );
}